Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for command-line utility that monitors the microphone, and if you start to speak, writes the file. Recording period should be adjusted.

Solution is:

   sox -t alsa default recording.wav silence 1 0.1 5% 1 1.0 5%
share|improve this question

migrated from Feb 1 '12 at 13:57

This question came from our site for professional and enthusiast programmers.

Please see the FAQs. That is not the type of questions we deal with here. – wallyk Feb 1 '12 at 6:51
up vote 5 down vote accepted


arecord -vv -fdat stackoverflow.wav
share|improve this answer
this command writes output file constantly with silence. Тhis is not something that I need – kirill Feb 1 '12 at 7:16
Does your Mic work with Skype testing? Is it enabled via alsamixer? – hendry Feb 1 '12 at 7:24
Yes Mic working with skype, enabled – kirill Feb 1 '12 at 11:12
I tried it and it is working > arecord -vv -fdat stackoverflow.wav I think the problem is that you are not selecting microphone in the settings, you have analog input instead change that and it should work – Robin Apr 7 '15 at 20:01

Your Answer


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.