Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 stackoverflow.com 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

From http://dabase.com/u/record_wav/

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .