Cobra VAD — iOS Quick Start
Platforms
- iOS (13.0+)
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 Xcode.
Import the Cobra-iOS package into your project.
To import the package using SPM, open up your project's Package Dependencies in XCode and add:
To import it into your iOS project using CocoaPods, add the following line to your Podfile:
Then, run the following from the project directory:
- Add the following to the app's
Info.plist
file to enable recording with an iOS device's microphone
Usage
Create an instance of the Cobra Voice Activity Detection engine:
Pass in frames of audio to the .process
function:
Release resources explicitly when done with Cobra Voice Activity Detection:
Demo
For the Cobra Voice Activity Detection iOS 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
Replace
"${YOUR_ACCESS_KEY_HERE}"
in the file ViewModel.swift with a validAccessKey
.Open the CobraDemo XCode project and run the demo.
For more information on our Cobra Voice Activity Detection demos for iOS, head over to our GitHub repository.