Cobra VAD — Android Quick Start
Platforms
- Android (5.0+)
Requirements
- Picovoice Account and AccessKey
- Android Studio
- Android device with USB debugging enabled or Android simulator
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey
.
Make sure to keep your AccessKey
secret.
Quick Start
Setup
Install Android Studio.
Include
mavenCentral()
repository in the top-levelbuild.gradle
. Then add the following to the app'sbuild.gradle
:
- Add the following to the app's
AndroidManifest.xml
file to enable recording with an Android device's microphone:
Usage
Create an instance of the Cobra VAD engine:
Pass in frames of audio to the .process
function:
Release resources explicitly when done with Cobra:
Demo
For the Cobra Android SDK, we offer demo applications that demonstrate how to use the VAD engine on real-time audio streams (i.e. microphone input).
Setup
Clone the Repository
Usage
Open the Android Activity demo using Android Studio.
Copy your
AccessKey
from Picovoice Console into theACCESS_KEY
variable in MainActivity.java.Run the application using a connected Android device or using an Android simulator.
For more information on our Cobra demos for Android, head over to our Github repository.