Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Record with microphone in command line on Ubuntu server

If you have a mic, and you want to Record the sounds near your mic, you will need two programs: arecord and lame.



Short explanation:
the arecord software records in signed 16bit little endian at 44100 hz and outputs in raw format, then lame transforms it to a mp3 file at 128kpbs and 44.1 khz. the -d parameter represents 600 seconds (10 minutes) recording time until it stops. for more info read the manual on both programs:

man arecord


man lame


You can playback the test.mp3 file with mpg123 like this:

sudo mpg123 test.mp3


if this doesn't work on first test, try adjusting your alsamixer.


This post first appeared on Ubuntu Tutorials, please read the originial post: here

Share the post

Record with microphone in command line on Ubuntu server

×

Subscribe to Ubuntu Tutorials

Get updates delivered right to your inbox!

Thank you for your subscription

×