Skip to main content

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

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:
    • 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

Porcupine requires a valid Picovoice AccessKey at initialization. AccessKey acts as your credentials when using Porcupine SDKs. You can get your AccessKey for free. Make sure to keep your AccessKey secret. Signup or Login to Picovoice Console to get your 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.1.2.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

ppnrespeakerdemo-2.1.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ppnrespeakerdemo-2.1.2.tar.gz
  • Upload date:
  • Size: 13.1 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.1.2.tar.gz
Algorithm Hash digest
SHA256 6ff1dd3d53e7050ebd11eaca47053ac906bb62c08352b7c8ef0db5f636f0d74b
MD5 34ec19825e5aae46cb9a4e74de0ecafc
BLAKE2b-256 8a7079e300ec45fe1e02495d1f5e1e1de1ca45e089b714f342da3cbbc5975102

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ppnrespeakerdemo-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.7 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 41b21bf1a0af5bc843ff9e828ac1e9e7141b31c85bc2250625dbce7e9388ef1e
MD5 ce1fc3ca4be98985a52582e732edc09f
BLAKE2b-256 cd2a14883beac23eeaf1bda67265e9b9cfd8534d4c17478b326850e615ad5b80

See more details on using hashes here.

Supported by

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