Cobra requires a valid Picovoice AccessKey
at initialization. AccessKey
acts as your credentials when using Cobra 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
.
- Before building the demo app, run the following from this directory to install the Cobra Cocoapod:
pod install
- Replace
let ACCESS_KEY = "..."
insideViewModel.swift
with your AccessKey.
private let ACCESS_KEY = "YOUR_ACCESS_KEY_HERE"
Open the CobraDemo XCode project and build. Launch the demo on a simulator or an physical iOS device.
- Press the Start button
- Start talking. The app background will change to indicate that voice activity was detected above the threshold.