How to start/stop recording automatically when there is someone starts talking?

2

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

Xiè Jìléi

Posted 2010-12-24T03:45:07.873

Reputation: 14 766

I have developed a software that does exactly this , I am willing to provide it with certain cost if required. – Thunder – 2010-12-24T05:30:02.240

Answers

2

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

Ignacio Vazquez-Abrams

Posted 2010-12-24T03:45:07.873

Reputation: 100 516

Thank you. BTW, I found this one, http://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/

– Xiè Jìléi – 2010-12-24T04:59:48.313