0
我收到以下錯誤,當我運行谷歌-輔助演示,但arecord
正常工作與ALSA
捕獲file
類型:故障谷歌助理演示麥克風陣列
錯誤:
(env)pi:~$ google-assistant-demo
ALSA lib pcm.c:7918:(snd_pcm_set_params) Sample format not available for CAPTURE: Invalid argument
[3329:3347:ERROR:audio_input_processor.cc(755)] Input error
ON_MUTED_CHANGED:
{u'is_muted': False}
ON_START_FINISHED
ON_ASSISTANT_ERROR:
{u'is_fatal': True}
[3329:3348:ERROR:audio_input_processor.cc(755)] Input error
ON_ASSISTANT_ERROR:
{u'is_fatal': True}
asoundrc配置:
pcm.!default
{
type asym
playback.pcm {
type hw
card 0
device 0
}
capture.pcm {
type file
file "/tmp/matrix_micarray_channel_8"
infile "/tmp/matrix_micarray_channel_8"
format "raw"
slave {
pcm dummy
}
}
}
下一行正常工作:
arecord --format=S16_LE --duration=5 --rate=16k --file-type=raw out.raw
aplay --format=S16_LE --rate=16k out.raw
我有同樣的錯誤。技巧在這裏:https://stackoverflow.com/questions/44374669/google-assistant-sdk-on-raspberry-pi-3-audio-setup-does-not-work/45894404#45894404 –