After reading this previous thread about setting up the microphone on Xavier https://devtalk.nvidia.com/default/topic/1047842/jetson-agx-xavier/xavier-audio-panel-header-j511-connection-to-microphone/, I connected the microphone on Xavier Audio Header panel and was able to capture a sound.
However, it has lots of white noise with a distorted tone.
This is an original mono tone sound I send to microphone.
https://github.com/lshin/foodtruck-cli/files/2928732/audacity-sound.wav.zip
Here is an audio file I could capture with arecord util.
https://github.com/lshin/foodtruck-cli/files/2928733/test-mic-s16-le.wav.zip
arecord -r 44100 -f S16_LE -c 2 -d 10 test-mic-s16-le.wav
Could anyone help me how to capture a clean sound from a microphone? Do I need any specific setting I have to configure?
Hello!
Looking at the recorded file I see …
$ file test-mic-s16-le.wav
test-mic-s16-le.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
So although you set ‘-c 2’ the recording only has a single channel. This is probably because pulseaudio is applying some default settings and converting to mono. To prevent pulseaudio from doing this, please can you try …
$ arecord -D hw:tegrasndt19xmob,0 -r 44100 -f S16_LE -c 2 -d 10 test-mic-s16-le.wav
I have tested this with the L4T rel31.1 release and was able to verify that the recording was as expected. I am attaching the recorded clip for reference.
Regards,
Jon
cap.wav.zip (899 KB)
Hi Jon,
Thanks for your reply.
It turns out that one Xavier has an issue but it could capture a sound perfectly on another Xavier.
I’m trying to reset some configurations that might cause some sound issue.
Best,
-Leo
it turned out that if to take audio cable from old workstation motherboard[rather case with front panel audio] it seems to fit conencting to jetson audio header and audio can be used with it.