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.
Install CocoaPods
Import the Cobra-iOS binding by adding the following line to
Podfile
:
- 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
- Install dependencies:
Replace
let ACCESS_KEY = "${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.