From: Rahul R. <rah...@gm...> - 2013-08-18 02:02:39
|
Hi, This mail is in reference to a question I posted on StackOverflow recently. In short, I want to be able to print the start-stop times of silences in an audio file, which eventually gets cut into pieces with the silences discarded. The exact text I posted was the following: *I am trying to output the begin-timestamps of periods of silence (since there is background noise, by silence I mean a threshold) in a given audio file. Eventually, I want to split the audio file into smaller audio files, given these timestamps. It is important that no part of the original file be discarded.* *I tried * *sox in.wav out.wav silence 1 0.5 1% 1 2.0 1% : newfile : restart* *(courtesy http://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/)* *Although, it somewhat did the job, it also trimmed and discarded the periods of silence, which I do not want happening. * *Is 'silence' the right option, or is there a simpler way to accomplish what I need to do?* *Thanks.* To this, I got a reply telling me that I can only do this by modifying the source code. I tried hard for long but could not make out which file(s) I am supposed to modify. I hope that you can help me. Thanks, Rahul Rajaram. |