Picovoice end-to-end voice platform demo for ReSpeaker 4-mic hat.
Project description
Picovoice ReSpeaker Demo
Made in Vancouver, Canada by Picovoice
This package contains a commandline demo for controlling ReSpeaker 4-mic microphone array LEDs using Picovoice.
Picovoice
Picovoice is an end-to-end platform for building voice products on your terms. It enables creating voice experiences similar to Alexa and Google. But it entirely runs 100% on-device. Picovoice is
- Private: Everything is processed offline. Intrinsically HIPAA and GDPR-compliant.
- Reliable: Runs without needing constant connectivity.
- Zero Latency: Edge-first architecture eliminates unpredictable network delay.
- Accurate: Resilient to noise and reverberation. It outperforms cloud-based alternatives by wide margins *.
- Cross-Platform: Design once, deploy anywhere. Build using familiar languages and frameworks.
Installation
Follow the instructions on Seeed Studio to install and set up the microphone array.
Then install the demo:
sudo pip3 install pvrespeakerdemo
AccessKey
Picovoice requires a valid AccessKey
at initialization. AccessKey
s act as your credentials when using Picovoice 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
AccessKey
tab to create one or use an existingAccessKey
.
Usage
Run the demo:
picovoice_respeaker_demo --access_key ${ACCESS_KEY}
Say
Picovoice
The demo outputs:
[wake word]
Say
turn on the lights
You should see the lights turned on and the following message in the terminal:
{
is_understood : 'true',
intent : 'turnLights',
slots : {
'state' : 'on',
}
}
The list of commands are shown on the terminal:
context:
expressions:
turnLights:
- "[switch, turn] $state:state (all) (the) [light, lights]"
- "[switch, turn] (all) (the) [light, lights] $state:state"
changeColor:
- "[change, set, switch] (all) (the) (light, lights) (color) (to) $color:color"
slots:
state:
- "off"
- "on"
color:
- "blue"
- "green"
- "orange"
- "pink"
- "purple"
- "red"
- "white"
- "yellow"
Try changing the color by:
Picovoice, set the lights to orange
Turn off the lights by:
Picovoice, turn off all lights
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pvrespeakerdemo-2.1.2.tar.gz
.
File metadata
- Download URL: pvrespeakerdemo-2.1.2.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b904e921b5e0b0d7d68e10fff09fab8ed17936aa7c3742f01e090a8ee0f0d31 |
|
MD5 | 288f70da25dd5cb8b202b080687fb6fc |
|
BLAKE2b-256 | adba4e1ab72f54110ec0b04a67f25957779fa151a356067b46947666a200388d |
File details
Details for the file pvrespeakerdemo-2.1.2-py3-none-any.whl
.
File metadata
- Download URL: pvrespeakerdemo-2.1.2-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c73e0461299e24de7029a421170040de51c24903bbddb1e51bd80342f2236ee9 |
|
MD5 | 72a1157f7ffa854a0b589fcc1996e412 |
|
BLAKE2b-256 | 696531abcf532b07e1c7af42b7429f9e6ae24cd9a5bb406a6ea4ce9f0f4e4c81 |