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.

Getting Started

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:

alsamixer

Now check your microphone level and if it is muted, use the keyboard up arrow key to unmute it:


   Method 1

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.

   Method 2

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:

arecord output.wav

To interrupt recording, press CTRL+C.
 
Top