This is an old revision of the document!


Respeaker

respeaker1.jpg

respeaker2.jpg

For Pi Zero

Basic preparation

apt install build-essential git raspberrypi-kernel-headers

Install driver

For some reason this installs an ARM64 toolchain on a 32-bit Raspberry Pi Zero along with a ton of other stuff that seems unrelated.

git clone https://github.com/HinTak/seeed-voicecard
cd seeed-voicecard
sudo ./install.sh

Installation will take quite some time.

Setup

Disable internal sound devices and reduce memory consumption.

/boot/config.txt:

# Enable audio (loads snd_bcm2835)
#dtparam=audio=on

# Enable DRM VC4 V3D driver
#dtoverlay=vc4-kms-v3d
#max_framebuffers=2

# Local
gpu_mem=16
dtparam=spi=on

REBOOT

aplay -l && arecord -l

**** List of PLAYBACK Hardware Devices ****
card 0: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [bcm2835-i2s-wm8960-hifi wm8960-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
**** List of CAPTURE Hardware Devices ****
card 0: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [bcm2835-i2s-wm8960-hifi wm8960-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Test

Install the Respeaker demo with picovoice 2.

This demo contains binary blobs of unknown origin.

sudo apt install python3-pip
rehash
pip3 install pvrespeakerdemo

Add $HOME/.local/bin to PATH

Version 2 needs a LICENSE key whereas version 1 did not. No idea how to install version 1.

picovoice_respeaker_demo
usage: picovoice_respeaker_demo [-h] --access_key ACCESS_KEY
                                [--audio_device_index AUDIO_DEVICE_INDEX]
picovoice_respeaker_demo: error: the following arguments are required: --access_key

I don't have or want a LICENSE key.

Resources

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies