我一直在尝试将 G 助手安装到 Raspberry Pi3 中。我对以下链接有疑问
https://developers.google.com/assistant/sdk/prototype/getting-started-pi-python/configure-audio
来自上述链接的部分文本
# Record a short audio clip. If you get an error, go to step 2.
$ arecord --format=S16_LE --duration=5 --rate=16k --file-type=raw out.raw
正如预期的那样,我在这一步中遇到了错误。所以我尝试了 Step2 创建了一个包含所有硬件信息的新文件(.asoundrc)。然后我尝试了以下
speaker-test -t wav
但是我收到了以下错误(如果我重命名 .asoundrc 我看不到这个错误但我无法记录)
speaker-test 1.0.28
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
WAV file(s)
ALSA lib conf.c:1697:(snd_config_load1) toplevel:9:17:Unexpected char
ALSA lib conf.c:3417:(config_file_open) /home/pi/.asoundrc may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:3339:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib conf.c:3788:(snd_config_update_r) hooks failed, removing configuration
Playback open error: -22,Invalid argument
我怎样才能解决这个问题?谢谢!