DEV Community

Dilek Karasoy for Picovoice

Posted on

4

Voice AI with Raspberry Pi - ReSpeaker

For day 44 we'll use Porcupine Wake Word and Seeed Studio ReSpeaker.

Let's get started!
1. Installation

  • Follow the instructions on Seeed Studio to install and set up the microphone array.

-Install the demo:

sudo pip3 install ppnrespeakerdemo
Enter fullscreen mode Exit fullscreen mode

Porcupine Wake Word requires a valid AccessKey at initialization If you haven't already, grab your AccessKey from Picovoice Console for free.

2. Usage
Below are the colors associated with supported wake words for this demo:

  • #ffff33 Alexa
  • #ff8000 Bumblebee
  • #ffffff Computer
  • #ff0000 Hey Google
  • #800080 Hey Siri
  • #ff3399 Jarvis
  • #00ff00 Picovoice
  • #0000ff Porcupine
  • 000000 Terminator

  • Run the demo. Do not forget to replace the placeholder with your AccessKey

porcupine_respeaker_demo --access_key ${ACCESS_KEY}
Enter fullscreen mode Exit fullscreen mode

Wait for the demo to initialize and print [Listening] in the terminal.

Say Picovoice
The demo outputs:
detected 'Picovoice'
The lights are now set to green.

Say Alexa
The lights are set to yellow now.

Say Terminator
The lights are now turned off.

_Happy Pi Day! _

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay