command-line utility to record from microphone

35,321

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

arecord -vv -fdat stackoverflow.wav
Share:
35,321

Related videos on Youtube

kirill
Author by

kirill

no info

Updated on September 18, 2022

Comments

  • kirill
    kirill over 1 year

    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%
    
  • Admin
    Admin over 12 years
    this command writes output file constantly with silence. Тhis is not something that I need
  • hendry
    hendry over 12 years
    Does your Mic work with Skype testing? Is it enabled via alsamixer?
  • Admin
    Admin over 12 years
    Yes Mic working with skype, enabled
  • Robin
    Robin about 9 years
    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
  • Rupertt Wind
    Rupertt Wind about 7 years
    @hendry: Did you even read the question. The asker wants something that only triggers when a sound is heard, and then records for a specific period of time.
  • user26742873
    user26742873 about 3 years
    @BjarkeFreund-Hansen lol I only noticed that this fact when I have find this solution great to me. The author failed to address what he wanted clearly in the title, and even Google "didn't even read the question" and led me here!