This package contains a demo project with examples for Arduino using Porcupine Wake Word Engine in conjunction with Rhino Speech-to-Intent Engine.
The Porcupine and Rhino SDKs require a valid AccessKey at initialization. AccessKeys act as your credentials when using Porcupine and Rhino 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.
- Install the Arduino IDE for your platform.
- With the IDE open, go to
Tools->Manage Libraries... - Search for
Picovoice_EN, then clickINSTALL.
This demo package is intended to be used via the Arduino Library Manager.
The package contains only the Intent-Based Voice Assistant demo. To access the demo:
- Open
File->Examples->Picovoice_EN->IntentBasedVoiceAssistantExample. - Replace
ACCESS_KEYin the source with theAccessKeyobtained from Picovoice Console. - Press
Uploadand check theSerial Monitorfor outputs.
Additional information can be found in the Picovoice docs for Porcupine and Rhino.
- Compile and upload the
Porcupine_EN/GetUUIDsketch from theFile -> Examplesmenu. Copy the UUID of the board printed at the beginning of the session to the serial monitor. - Go to Picovoice Console to create models for Porcupine wake word engine.
- Select
Arm Cortex Mas the platform when training the model. - Select your board type (
Arduino Nano 33 BLE Sense) and provide the UUID of the chipset on the board.
The model is now being trained. You will be able to download it within a few hours.
- Download your custom voice model(s) from Picovoice Console.
- Decompress the zip file. The model for Porcupine wake word is located in two files: A binary
.ppnfile, and as a.hheader file containing aCarray version of the binary model. - Copy the contents of the array inside the
.hheader file and update update theDEFAULT_KEYWORD_ARRAYvalues inpv_params.h.
- Compile and upload the
Rhino_EN/GetUUIDsketch from theFile -> Examplesmenu. Copy the UUID of the board printed at the beginning of the session to the serial monitor. - Go to Picovoice Console to create a context for Rhino speech to intent engine.
- Select
Arm Cortex Mas the platform when training the model. - Select your board type (
Arduino Nano 33 BLE Sense) and provide the UUID of the chipset on the board.
- Download your custom voice model(s) from Picovoice Console.
- Decompress the zip file. The model for Rhino speech to intent is located in two files: A binary
.rhnfile, and as a.hheader file containing aCarray version of the binary model. - Copy the contents of the array inside the
.hheader file and update theCONTEXT_ARRAYvalues inpv_params.h.