Porcupine ReSpeaker Demo
Made in Vancouver, Canada by Picovoice
This package contains a commandline demo for controlling ReSpeaker 4-mic microphone array LEDs using Porcupine.
Porcupine
Porcupine is a highly-accurate and lightweight wake word engine. It enables building always-listening voice-enabled applications. It is
- using deep neural networks trained in real-world environments.
- compact and computationally-efficient. It is perfect for IoT.
- cross-platform:
- Arm Cortex-M, STM32, PSoC, Arduino, and i.MX RT
- Raspberry Pi, NVIDIA Jetson Nano, and BeagleBone
- Android and iOS
- Chrome, Safari, Firefox, and Edge
- Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64)
- scalable. It can detect multiple always-listening voice commands with no added runtime footprint.
- self-service. Developers can train custom wake word models using Picovoice Console.
Installation
Follow the instructions on Seeed Studio to install and set up the microphone array.
Then install the demo:
sudo pip3 install ppnrespeakerdemo
AccessKey
The Porcupine SDK requires a valid AccessKey at initialization. AccessKeys act as your credentials when using Porcupine SDKs.
You can create your AccessKey for free. Make sure to keep your AccessKey secret.
To obtain your AccessKey:
- Login or Signup for a free account on the Picovoice Console.
- Once logged in, go to the
AccessKeytab to create one or use an existingAccessKey.
Usage
Below are the colors associated with supported wake words for this demo:
Run the demo:
porcupine_respeaker_demo --access_key ${ACCESS_KEY}
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
to turn off the lights.