Picovoice Platform
Arduino Quick Start
Platforms
Requirements
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey
.
Make sure to keep your AccessKey
secret.
Quick Start
Setup
- Install and select desired board from
Tools -> Board
.- Install
Arduino Mbed OS Nano Boards
forArduino Nano 33 BLE Sense
. - Install
Arduino Mbed OS Portenta Boards
forArduino Portenta H7 (M7 core)
.
- Install
- Select the desired device
Serial Port
to upload package viaTools -> Port
. - Open the Library Manager in the Arduino IDE.
- Search for the
Picovoice_EN
package, and click on theInstall
button.
Usage
Initialize audio and construct the picovoice object in the setup function:
Get the audio frames and pass them in to pv_picovoice_process
in the loop function:
Release resources explicitly when done with Picovoice:
Custom Wake Words & Contexts
- Obtain the UUID of the chipset:
- Open
File -> Examples -> Picovoice_EN -> GetUUID
. - Click
Upload
and check theSerial Monitor
for the UUID of the board:
- Open
- Go to Picovoice Console to create models for Porcupine wake word engine and Rhino Speech-to-Intent engine.
- Select
Arm Cortex-M
as the platform when training the model. - Select appropriate board type and paste in your board UUID.
- Train your models.
- Download your custom voice model(s).
- Decompress the zip file. The model file is either
.ppn
for Porcupine wake word or.rhn
for Rhino Speech-to-Intent. Both zip archives also contain a.h
header file containing theC
array version of the binary model. - Copy the contents of the arrays inside the
.h
header files and update thekeyword_array
andcontext_array
values.
Non-English Languages
Open the Library Manager in the Arduino IDE and search for Picovoice
.
Click Install
on the language desired and add the header file to the project:
Demo
For the Picovoice Arduino SDK, we offer demo projects for several evaluation boards to demonstrate how to use the Picovoice SDK on Arduino.
Setup
- Open the Library Manager in the Arduino IDE.
- Search for the
Picovoice_EN
package, and click on theInstall
button.
Usage
- Open
File -> Examples -> Picovoice_EN -> PicovoiceExcample
. - Replace
ACCESS_KEY
with the AccessKey obtained from picovoice console. - Press
Upload
and checkSerial Monitor
for outputs.
Resources
API
GitHub
- Picovoice SDK for Arduino boards - English language
- Picovoice SDK for Arduino boards - German language
- Picovoice SDK for Arduino boards - Spanish language
- Picovoice SDK for Arduino boards - French language