我已使用以下命令将 respeaker pi hat 模块安装到我的 Rpi0W 中
sudo apt-get update
sudo apt-get upgrade
git clone https://github.com/respeaker/seeed-voicecard.git
cd seeed-voicecard
sudo ./install.sh
reboot
但无法测试它是否有效 - 教程指出我可以通过管道传输录音并按原样播放
arecord -f cd -Dhw:1 | aplay -Dhw:1
但这不起作用?我想我的硬件列出的不同?但我不知道如何使用我的硬件列表进行上面相同的调用?
pi@raspberrypi:~ $ aplay -l && arecord -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 7/7
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
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
**** List of CAPTURE Hardware Devices ****
card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 []
Subdevices: 0/1
Subdevice #0: subdevice #0
答案1
我首先验证您是否正在运行适当的操作系统,
确保您的 Pi 上运行的是最新的 Raspbian 操作系统 (debian 9)。 (更新于2018年11月13日)
我还会验证音量是否设置在正确的级别,并且您是否已插入扬声器或耳机,
测试一下,你会听到你对着麦克风说的话(别忘了插上耳机或扬声器)
alsamixer
可以使用终端设置音量。