In this tutorial, we will see two ways for recording audio coming from the microphone under Ubuntu/Linux Mint. If you have more suggestions, please use the comment form below.
First of all, make sure your microphone is connected to your computer and well configured. Also, make sure the mic is not muted by running this command:
Now check your microphone level and if it is muted, use the keyboard up arrow key to unmute it:
You can use sox to record your voice, it can be installed from the Ubuntu Software Center using this link:
Or install it from the terminal with this command:
sudo apt-get install sox
To start voice recording, enter this command:
sox -t alsa default output.wav
output.wav is the name of the audio file that will be generated, you can rename it to whatever you want.
You can also use "arecord" to capture microphone input. It can be installed using this link:
Or from the terminal using this command:
sudo apt-get install alsa-utils
To start voice recording, run this command:
To interrupt recording, press CTRL+C.