ubuntu:sound:test_microphone
Table of Contents
Ubuntu - Sound - Test Microphone
List of all microphone devices
arecord -l
returns:
**** List of CAPTURE Hardware Devices **** card 0: Generic [HD-Audio Generic], device 0: ALC1220 Analog [ALC1220 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: Generic [HD-Audio Generic], device 2: ALC1220 Alt Analog [ALC1220 Alt Analog] Subdevices: 1/1 Subdevice #0: subdevice #0
Record a short 10 seconds audio
arecord -c 2 -r 44100 -f S32_LE -d 10 --device="hw:0,0" /tmp/test-mic.wav
Recorded audio via microphone specified by –device=“hw:0,0” as in card 0 and device 0 from the arecord -l output in the previous step.
Record a short 10 seconds audio
arecord -d 10 -f cd -t wav /tmp/test-mic1.wav
Confirm that the source was recorded correctly
aplay /tmp/test-mic1.wav
ubuntu/sound/test_microphone.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1