Download Print this page

Advertisement

Quick Links

3/4/2019
ReSpeaker 2-Mics Pi HAT
ReSpeaker 2-Mics Pi HAT is a dual-microphone expansion board for Raspberry Pi
designed for AI and voice applications. This means that you can build a more
powerful and exible voice product that integrates Amazon Alexa Voice Service,
Google Assistant, and so on.
The board is developed based on WM8960, a low power stereo codec. There are 2
microphones on both sides of the board for collecting sounds and it also provides 3
APA102 RGB LEDs, 1 User Button and 2 on-board Grove interfaces for expanding
your applications. What is more, 3.5mm Audio Jack or JST 2.0 Speaker Out are both
available for audio output.
http://wiki.seeedstudio.com/ReSpeaker_2_Mics_Pi_HAT/
ReSpeaker 2-Mics Pi HAT - Seeed Wiki
                 
1/18

Advertisement

loading
Need help?

Need help?

Do you have a question about the ReSpeaker 2-Mics Pi HAT and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for seeed studio ReSpeaker 2-Mics Pi HAT

  • Page 1                   ReSpeaker 2-Mics Pi HAT ReSpeaker 2-Mics Pi HAT is a dual-microphone expansion board for Raspberry Pi designed for AI and voice applications. This means that you can build a more powerful and exible voice product that integrates Amazon Alexa Voice Service, Google Assistant, and so on.
  • Page 2 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki [https://www.seeedstudio.com/ReSpeaker-2-Mics-Pi-HAT-p-2874.html] Features Raspberry Pi compatible(Support Raspberry Pi Zero and Zero W, Raspberry Pi B+, Raspberry Pi 2 B, Raspberry Pi 3 B, Raspberry Pi 3 B+ and Raspberry Pi 3 A+) 2 Microphones...
  • Page 3: Application Ideas

    3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki Max Sample Rate: 48Khz Application Ideas Voice Interaction Application AI Assistant Hardware Overview BUTTON: a User Button, connected to GPIO17 MIC_Land MIC_R: 2 Microphones on both sides of the board RGB LED: 3 APA102 RGB LEDs, connected to SPI interface...
  • Page 4: Getting Started

    Plug Getting Started 1. Connect ReSpeaker 2-Mics Pi HAT to Raspberry Pi Mount ReSpeaker 2-Mics Pi HAT on your Raspberry Pi, make sure that the pins are properly aligned when stacking the ReSpeaker 2-Mics Pi HAT. Raspberry Pi Connection http://wiki.seeedstudio.com/ReSpeaker_2_Mics_Pi_HAT/...
  • Page 5 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki Raspberry Pi zero Connection 2. Setup the driver on Raspberry Pi While the upstream wm8960 codec is not currently supported by current Pi kernel builds, upstream wm8960 has some bugs, we had xed it. We must build it manually.
  • Page 6 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki cd seeed-voicecard sudo ./install.sh reboot Step 2. Check that the sound card name matches the source code seeed- voicecard by command aplay -l and arecord -l. pi@raspberrypi:~/seeed-voicecard aplay -l  **** List of PLAYBACK Hardware Devices ****...
  • Page 7 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki alsamixer is a graphical mixer program for the Advanced Linux Sound Architecture (ALSA) that is used to con gure sound settings and adjust the volume.  pi@raspberrypi:~ $ alsamixer http://wiki.seeedstudio.com/ReSpeaker_2_Mics_Pi_HAT/ 7/18...
  • Page 8 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki The Left and right arrow keys are used to select the channel or device and the Up and Down Arrows control the volume for the currently selected device. Quit the http://wiki.seeedstudio.com/ReSpeaker_2_Mics_Pi_HAT/ 8/18...
  • Page 9 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki program with ALT+Q, or by hitting the Esc key. More information [https://en.wikipedia.org/wiki/Alsamixer]  Warning Please use the F6 to select seeed-2mic-voicecard device rst. 4. Use the on-board APA102 LEDs Each on-board APA102 LED has an additional driver chip. The driver chip takes care of receiving the desired color via its input lines, and then holding this color until a new command is received.
  • Page 10 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki There is an on-board User Button, which is connected to GPIO17. Now we will try to detect it with python and RPi.GPIO.  sudo pip install rpi.gpio // install RPi.GPIO library nano button.py // copy the following code in button.py...
  • Page 11 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki guidance [https://developers.google.com/assistant/sdk/prototype/getting-started- pi-python/run-sample]. And the following guide will also show you how to get started with Google Assistant. 1. Con gure a Developer Project and get JSON le Follow step 1. 2. 3. 4. in the guide [https://developers.google.com/assistant/sdk/prototype/getting-started-pi-...
  • Page 12 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki should be the path of your JSON /home/pi/client_secret_client-id.json le, your should modify the commmand above After running the command, it should display as shown below. Copy the URL and paste it into a browser (this can be done on your development machine, or any other machine).
  • Page 13 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki 7. Troubleshooting See the Troubleshooting [https://developers.google.com/assistant/sdk/prototype/getting-started-pi- python/troubleshooting] page if you run into issues. 8. Raspbian image As Raspbian Operating System is updated to Debian 9, we won't provide our Raspbian image anymore. Click here [https://www.raspberrypi.org/downloads/raspbian/] to get the lastest Raspbian...
  • Page 14 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki How to install the image [https://www.raspberrypi.org/documentation/installation/installing-images/] STT(Speech to Text) SDK This part will introduce Baidu STT(Speech to Text) functions together with GPIO control. Here is the GPIOs con guration. If you do not have a fan, You can connect 2 LEDs on GPIO12/GPIO13 to demonstrate.
  • Page 15 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki Please add baidu key @ line 36,37,38 before running python Smart_Fan.py. You also can generate your owner voice by running the synthesis_wav.py. Please do add baidu keys at line 6,7,8 and modify string to what you want to generate.
  • Page 16 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki [Eagle] Respeaker_2_Mics_Pi_HAT_PCB [https://github.com/SeeedDocument/MIC_HATv1.0_for_raspberrypi/raw/maste r/src/ReSpeaker%202-Mics%20Pi%20HAT_PCB.zip] [PDF] Respeaker_2_Mics_Pi_HAT_SCH [https://github.com/SeeedDocument/MIC_HATv1.0_for_raspberrypi/raw/maste r/src/ReSpeaker%202-Mics%20Pi%20HAT_SCH.pdf] [PDF] Respeaker_2_Mics_Pi_HAT_PCB [https://github.com/SeeedDocument/MIC_HATv1.0_for_raspberrypi/raw/maste r/src/ReSpeaker%202-Mics%20Pi%20HAT_PCB.pdf] [3D] ReSpeaker 2 Mics Pi HAT 3D [https://github.com/SeeedDocument/MIC_HATv1.0_for_raspberrypi/raw/maste r/src/ReSpeaker%202-Mics%20Pi%20HAT.zip] [Driver] Seeed-Voice Driver [https://github.com/respeaker/seeed-voicecard] [Algorithms] Algorithms includes DOA, VAD, NS [https://github.com/respeaker/mic_array]...
  • Page 17 3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki (https://www.hackster.io/idreams/build-your- own-amazon-echo-using-a-rpi-and- respeaker-hat-7f44a0) Your personal home barista comes to life with this voice-enabled coffee machine: An open-source, private-by-design coffee machine that keeps your favorite coffee and caffeination schedule private. http://wiki.seeedstudio.com/ReSpeaker_2_Mics_Pi_HAT/ 17/18...
  • Page 18: Tech Support

    3/4/2019 ReSpeaker 2-Mics Pi HAT - Seeed Wiki Tech Support Please submit any technical issue into our forum [http://forum.seeedstudio.com/] or drop mail to techsupport@seeed.cc [mailto:techsupport@seeed.cc]. http://wiki.seeedstudio.com/ReSpeaker_2_Mics_Pi_HAT/ 18/18...