[vc_row][vc_column][vc_column_text]If you want to capture input from microphone connected to your pcDuino computer, there is a simple way to do it. But prior to recording, you probably want to adjust the input volume of your microphone for optimal quality recording. With low input volume, your microphone may not pick up your voice properly, while too high an input volume may introduce a lot of background noise in the recording.
you can adjust microphone input volume by going to “Settings” -> “Sound” -> Input.
In order to record microphone input on Linux, you can use a tool set called alsa-utils which is developed for Advanced Linux Sound Architecture (ALSA). To install alsa-utils Ubuntu:
One of the command-line utilities contained in alsa-utils is arecord which captures microphone input to wav format.
To verify that microphone is successfully recognized on your system:
**** List of CAPTURE Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: CONEXANT Analog [CONEXANT Analog] Subdevices: 1/1 Subdevice #0: subdevice #0
To record microphone input as wav format:
Recording WAVE 'output.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
Without any argument, arecord will record microphone input to wav format with sample rate 8000 Hz, unsigned 8 bit depth, and single mono channel. arecord will continue to capture a stream of microphone input until it’s terminated by Ctrl+C.
If you want, you can customize output wav format as follows.
Recording WAVE 'output.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Recording WAVE 'output2.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
To play back a wav file, you can use another ALSA utility called aplay.
[/vc_column_text][vc_column_text]If you want to capture input from microphone connected to your pcDuino computer, there is a simple way to do it. But prior to recording, you probably want to adjust the input volume of your microphone for optimal quality recording. With low input volume, your microphone may not pick up your voice properly, while too high an input volume may introduce a lot of background noise in the recording.
you can adjust microphone input volume by going to “Settings” -> “Sound” -> Input.
In order to record microphone input on Linux, you can use a tool set called alsa-utils which is developed for Advanced Linux Sound Architecture (ALSA). To install alsa-utils Ubuntu:
One of the command-line utilities contained in alsa-utils is arecord which captures microphone input to wav format.
To verify that microphone is successfully recognized on your system:
**** List of CAPTURE Hardware Devices **** card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM] Subdevices: 1/1 Subdevice #0: subdevice #0
To record microphone input as wav format:
Recording WAVE 'output.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
Without any argument, arecord will record microphone input to wav format with sample rate 8000 Hz, unsigned 8 bit depth, and single mono channel. arecord will continue to capture a stream of microphone input until it’s terminated by Ctrl+C.
If you want, you can customize output wav format as follows.
Recording WAVE 'output.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Recording WAVE 'output2.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
To play back a wav file, you can use another ALSA utility called aplay.
[/vc_column_text][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.