I'm trying and trying, but I don't get it.

First thank you for the hint with audacity. This tool had even the possibility to do a silence/noise recognition. So I was able to see my mp3 file graphically and how audacity was splitting it. Look here: bere.png. My problem with audacity was then that I could not find out how to save the relevant (signals) parts in different mp3 files.

Here my interpretation of the parameters I used in Audio::FindChunks

So here my code:

use strict; use warnings; use Audio::FindChunks; Audio::FindChunks->new(filename => 'bere.mp3', min_silence_sec => 0.4, min_signal_sec => 0.5, above_thres_window => 5)->split_file({verbose=> +1});

But in this case I only get one file as result which is going from 0 - 4.6 seconds.

To your other question to do it manually. This is not really possible for me. I want to write a conjugation/vocabulary trainer for me to learn the Italian language. I bought a SW which can create mp3 files out of a text file. But it is too much work for me to always give as input a text file with only one vocabulary. Because this tool has no command line or other possibilities I decided to enter a huge text file and then afterwards split the huge mp3 file at the silence points and then give them the name of the corresponding line in the text file.

At the end my goal is it to have a lot of vocabularies. So a correct splitting at silence points is at the moment my biggest problem.

Every other hint how I could do it is welcome. My favourite solution is of course perl. But I'd also be happy about every other way to solve it.


In reply to Re^2: Split MP3 file at silence by Dirk80
in thread Split MP3 file at silence by Dirk80

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.