I want to start recording when someone starts talking, and stop recording when it becomes silent.

I guess if there is stream audio processing tool like ImageMagick, so I can strip away blank sections like this:

$ rec -t wav - | wavefilter -strip-blank=3sec | lame - >record1.mp3

EDIT

This question is resolved by using:

$ rec -t wav - silence 1 0.1 3% -1 1.0 3% | lame - >record1.mp3
link|improve this question

I have developed a software that does exactly this , I am willing to provide it with certain cost if required. – Thunder Dec 24 '10 at 5:30
feedback

1 Answer

up vote 1 down vote accepted

The silence predicate of SoX can strip silence from the middle of an audio file.

link|improve this answer
Thank you. BTW, I found this one, digitalcardboard.com/blog/2009/08/25/the-sox-of-silence – Xie Jilei Dec 24 '10 at 4:59
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.