galen_guo 发表于 2020-6-8 22:29:27

MIC阵列采集失真的问题

使用MOD-MIC-4XAnalog阵列模组通过usb接到3308上,调用pcm_open设置为8通道,在使用pcm_read采集音频数据,发现原始数据有失真的情况。请问是什么原因呢?

8通道实际目前只使用4通道主采集+2通道回声采集,不接回采录制下来只有4通道数据,但是语音失真。

firefly_zhongw 发表于 2020-6-9 09:10:38

1. 如何判断原始数据失真的?
2. 用arecord命令录制会不会?

galen_guo 发表于 2020-6-9 11:23:16

# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: rockchiprk3308b , device 0: dailink-multicodecs multicodec-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Audio , device 0: USB Audio
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: UAC1Gadget , device 0: UAC1_PCM
Subdevices: 1/1
Subdevice #0: subdevice #0
card 7: Loopback , device 0: Loopback PCM
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 7: Loopback , device 1: Loopback PCM
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
# arecord -Dhw:1,0 -c 8 -r 16000 -f S16_LE test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Channels 8
arecord: begin_wave:2631: write error

firefly_zhongw 发表于 2020-6-9 18:08:08

1. 为何要使能UAC?
2. 使用官网固件,arecord -Dhw:1,0 -c 8 -r 16000 -f S16_LE/data/test.wav 录音是否可以?

panama 发表于 2020-6-15 15:32:38

firefly_zhongw 发表于 2020-6-9 18:08
1. 为何要使能UAC?
2. 使用官网固件,arecord -Dhw:1,0 -c 8 -r 16000 -f S16_LE/data/test.wav 录音是 ...

请问使用MOD-MIC-4XAnalog阵列模组通过USB接到3308上,实际是走的是数字麦克风,那么编译的配置文件用的是哪个?我见都是amic的配置没见到dmic的配置呢?3308-plus的这套开发板

firefly_zhongw 发表于 2020-6-15 17:08:00

kernel的配置文件已经默认打开了USB Audio了
页: [1]
查看完整版本: MIC阵列采集失真的问题