Cobra VAD — 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.
Cobra VAD for MCU is currently in Beta and available for evaluation for 30 minutes per device, (i.e., user). If you are working on a commercial project or require extended access, please contact Picovoice with your project details.
Quick Start
Setup
- Install and select desired board from
Tools -> Board.- Install
Arduino Mbed OS Nano BoardsforArduino Nano 33 BLE Sense.
- Install
- Select the desired device
Serial Portto upload package viaTools -> Port. - Open the Library Manager in the Arduino IDE.
- Search for the
Cobrapackage, and click on theInstallbutton.
Usage
Initialize audio and construct the porcupine object in the setup function:
Pass in audio to the pv_cobra_process function:
Release resources explicitly when done with Cobra Voice Activity Detection:
Demo
For the Cobra Voice Activity Detection SDK, we offer demo applications that demonstrate how to use the VAD engine on real-time audio streams on Arduino.
Setup
- Open the Library Manager in the Arduino IDE.
- Search for the
Cobrapackage, and click on theInstallbutton.
Usage
- Open
File -> Examples -> Cobra -> Cobra. - Replace
ACCESS_KEYwith the AccessKey obtained from picovoice console. - Press
Uploadand checkSerial Monitorfor outputs.