我一直在嘗試將G assistant安裝到Raspberry Pi3中。我有問題,在下面的鏈接Raspberry Pi 3上的Google Assistant SDK:音頻設置不起作用
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
我該如何解決這個問題? 謝謝!