Dear monks,

I have a lot of mp3 files like bere.mp3 with the corresponding text file like bere.txt.

My goal is it to split the mp3 file at silence. If this is done correctly then each line of the text file should have its own mp3 file. In my example there should be 7 mp3 files as result.

I found the module Audio::FindChunks. According to its description it is exactly what I need.

I read the document of this module but I did not understand exactly each parameter. So I had to play try and error.

I took the split_file function of this module and played around with the following parameters.

# Splitting into runs of signal/noise max_tracks, min_signal_sec, min_silence_sec, ignore_signal_sec, min_si +lence_chunks_merge

But I did not get the correct result. Sometimes no split was happening. Sometimes the file was only splitted into 2 or 3 mp3 files. But I never did it to split it into 7 mp3 files.

Thank you for your help.

Greetings,

Dirk


In reply to 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.