This article is around Raspberry Pi and this Re speaker 2 Mics Pi HAT. ReSpeaker 2-Mics Pi HAT is a dual-microphone expansion board for Raspberry Pi designed for voice applications, like Amazon Alexa or Google Assistant. So if you are interested in playing around Alexa or assistant enabled applications with Raspberry Pi you can certainly try this out. We will set it up with Raspberry Pi and will check some demo applications.
The board is developed around WM8960, a low power stereo codec. There are 2 microphones on both sides of the board for collecting sounds along with that What is more, 3.5mm Audio Jack or JST 2.0 Speaker Out are both available for audio output.
- MIC_Land MIC_R: 2 Microphones on both sides of the board
- RGB LED: 3 APA102 RGB LEDs, connected to SPI interface
- WM8960: a low power stereo codec
- Raspberry Pi 40-Pin Headers: support Raspberry Pi Zero, Raspberry Pi 1 B+, Raspberry Pi 2 B and Raspberry Pi 3 B
- POWER: Micro USB port for powering the ReSpeaker 2-Mics Pi HAT, please power the board for providing enough current when using the speaker.
- I2C: Grove I2C port, connected to I2C-1
- GPIO12: Grove digital port, connected to GPIO12 & GPIO13
- BUTTON: a User Button, connected to GPIO17
- JST 2.0 SPEAKER OUT: for connecting speaker with JST 2.0 connector
- 3.5mm AUDIO JACK: for connecting headphone or speaker with 3.5mm Audio Plug
First clone the required repository to raspberry pi to enable support for the HAT. After cloning run the install script to install the drivers and after that reboot the pi.
git clone https://github.com/respeaker/seeed-voicecard.git
cd seeed-voicecard sudo ./install.sh 2mic reboot
cat /proc/asound/devices aplay -list-devices