Files
Filesdoc | |
---|---|
.. | |
install_docker_rpi.md | |
install_seeed-voicecard_rpi.md |
install_seeed-voicecard_rpi.mdseeed-voicecard
The drivers of ReSpeaker 2-Mics Pi Hat for Raspberry Pi.
Enable SPI and I2C
Enable SPI and I2C on Raspberry Pi in opening raspi-config.
pi@raspberrypi:~/ $ sudo raspi-config
In the menu "3 Interfacing Options" : - "P4 SPI Enable/disable automatic loading of SPI kernel module", and "Yes" at the window prompt. - "P5 I2C Enable/disable automatic loading of I2C kernel module", and "Yes" at the window prompt.
Or in editing /boot/config.txt file, and in removing the # symbol from line that reads : - #dtparam=spi=on - #dtparam=i2c_arm=on
Reboot Raspberry Pi.
Install seeed-voicecard
Get the seeed voice card source code and install all linux kernel drivers
sudo apt update sudo apt install -y git git clone https://github.com/respeaker/seeed-voicecard cd seeed-voicecard sudo ./install.sh --compat-kernel sudo reboot
ReSpeaker 2-Mics Pi Hat
While the upstream wm8960 codec is not currently supported by current Pi kernel builds, upstream wm8960 has some bugs, you must it build manually.
Check that the sound card name matches the source code seeed-voicecard.
pi@raspberrypi:~/seeed-voicecard $ aplay -l **** Liste des Périphériques Matériels PLAYBACK **** carte 0: Headphones [bcm2835 Headphones], périphérique 0: bcm2835 Headphones [bcm2835 Headphones] Sous-périphériques: 8/8 Sous-périphérique #0: subdevice #0 Sous-périphérique #1: subdevice #1 Sous-périphérique #2: subdevice #2 Sous-périphérique #3: subdevice #3 Sous-périphérique #4: subdevice #4 Sous-périphérique #5: subdevice #5 Sous-périphérique #6: subdevice #6 Sous-périphérique #7: subdevice #7 carte 1: vc4hdmi [vc4-hdmi], périphérique 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0] Sous-périphériques: 1/1 Sous-périphérique #0: subdevice #0 carte 2: seeed2micvoicec [seeed-2mic-voicecard], périphérique 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [bcm2835-i2s-wm8960-hifi wm8960-hifi-0] Sous-périphériques: 1/1 Sous-périphérique #0: subdevice #0 pi@raspberrypi:~/seeed-voicecard $ arecord -l **** Liste des Périphériques Matériels CAPTURE **** carte 2: seeed2micvoicec [seeed-2mic-voicecard], périphérique 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [bcm2835-i2s-wm8960-hifi wm8960-hifi-0] Sous-périphériques: 1/1 Sous-périphérique #0: subdevice #0