Hello,
I am using the Jetson TK1 with 3.10.40-grinch-21.3.4 running Ubuntu 14.04.5 LTS. I would like to record audio using the microphone jack, but there seems to be a configuration issue with the device. I have confirmed that ‘aplay’ successfully plays audio through the output jack, so this is not the nature of the issue.
I’ve update the configuration parameters as specified in the following link to no avail:
https://devtalk.nvidia.com/default/topic/772401/audio-input-on-jetson-tk1/?offset=4
Executing ‘arecord -d 5 -c 1 -v foobar.wav’ returns:
Recording WAVE 'foobar.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
Plug PCM: Rate conversion PCM (48000, sformat=U8)
Converter: libspeex (builtin)
Protocol version: 10002
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : U8
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 8
buffer_size : 2730
period_size : 682
period_time : 85333
tstamp_mode : NONE
period_step : 1
avail_min : 682
period_event : 0
start_threshold : 1
stop_threshold : 2730
silence_threshold: 0
silence_size : 0
boundary : 178913280
Slave: Route conversion PCM (sformat=S8)
Transformation table:
0 <- 0*0.5 + 1*0.5
Its setup is:
stream : CAPTURE
access : MMAP_INTERLEAVED
format : U8
subformat : STD
channels : 1
rate : 48000
exact rate : 48000 (48000/1)
msbits : 8
buffer_size : 16384
period_size : 4096
period_time : 85333
tstamp_mode : NONE
period_step : 1
avail_min : 4096
period_event : 0
start_threshold : 6
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Slave: Hardware PCM card 1 'tegra-rt5639' device 0 subdevice 0
Its setup is:
stream : CAPTURE
access : MMAP_INTERLEAVED
format : S8
subformat : STD
channels : 2
rate : 48000
exact rate : 48000 (48000/1)
msbits : 8
buffer_size : 16384
period_size : 4096
period_time : 85333
tstamp_mode : NONE
period_step : 1
avail_min : 4096
period_event : 0
start_threshold : 6
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 1073741824
appl_ptr : 0
hw_ptr : 0
The file is written, and size seems to correlate with capture duration, but the contents are as follows and, needless to say, ‘aplay foobar.wav’ does not produce sound on the connected speakers:
0000000: 5249 4646 e45d 0000 5741 5645 666d 7420 RIFF.]..WAVEfmt
0000010: 1000 0000 0100 0100 401f 0000 401f 0000 ........@...@...
0000020: 0100 0800 6461 7461 c05d 0000 8080 8080 ....data.]......
0000030: 8080 8080 8080 8080 8080 8080 8080 8080 ................
0000040: 8080 8080 8080 8080 8080 8080 8080 8080 ................
0000050: 8080 8080 8080 8080 8080 8080 8080 8080 ................
I’ve found no information on troubleshooting if the suggested configuration changes fail, so I’m not sure how to proceed.