Skip to main content

Porcupine wake word engine demo for ReSpeaker 4-mic hat.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

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. Raspberry Pi, BeagleBone, Android, iOS, Linux (x86_64), macOS (x86_64), Windows (x86_64), and web browsers are supported. Additionally, enterprise customers have access to the ARM Cortex-M SDK.
  • 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:

  1. Login or Signup for a free account on the Picovoice Console.
  2. Once logged in, go to the AccessKey tab to create one or use an existing AccessKey.

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:

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ppnrespeakerdemo-2.0.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ppnrespeakerdemo-2.0.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file ppnrespeakerdemo-2.0.0.tar.gz.

File metadata

  • Download URL: ppnrespeakerdemo-2.0.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ppnrespeakerdemo-2.0.0.tar.gz
Algorithm Hash digest
SHA256 f03d077fe0b993d43a6a7a90a8850f4ddcc621a4a7ad94ad52393d16529f3b63
MD5 515d3d0e4971a20feb52c8ffea629061
BLAKE2b-256 8cf3e40035218d9055e73bb2d82865ac91f2c86b22d56c0275ca142484df7d31

See more details on using hashes here.

File details

Details for the file ppnrespeakerdemo-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: ppnrespeakerdemo-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ppnrespeakerdemo-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 469882ca67f2f748189651b64de8b9d13e54ce01203c2d0e2ff494c479fc283b
MD5 f2690826796aaf6058cdaaac89d73ebb
BLAKE2b-256 6e96f3283a54cc7b57622988aebf943ef0bfa74c96bb22d972bbeb8e9c1513c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page