Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
share|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
add comment

1 Answer

up vote 1 down vote accepted

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

share|improve this answer
    
Thank you. BTW, I found this one, digitalcardboard.com/blog/2009/08/25/the-sox-of-silence –  Xiè Jìléi Dec 24 '10 at 4:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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