The minimum iOS version required to run the demo is iOS 14.0 or higher.
Picovoice requires a valid Picovoice AccessKey
at initialization. AccessKey
acts as your credentials when using Picovoice 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
.
This demo runs microphone recording in the background and detects the wake word and context inference while the application is not in focus. The demo will continue to run as long as the application remains running in the background.
To run the background service demo, go to BackgroundService directory. Then run:
pod install
Open PicovoiceBackgroundServiceDemo.xcworkspace
and paste your AccessKey
into the ACCESS_KEY
variable in ContentView.swift
. Then, build and run the demo through XCode.
This demo runs wake word detection and context inference while the application is in focus.
To run the foreground application demo:
-
Go to ForegroundApp directory. Then run:
-
Open the
PicovoiceForegroundAppDemo.xcworkspace
in XCode -
Replace
let accessKey = "${YOUR_ACCESS_KEY_HERE}"
in the file ContentView.swift with yourAccessKey
. -
Go to
Product > Scheme
and select the scheme for the language you would like to demo (e.g.arDemo
-> Arabic Demo,deDemo
-> German Demo) -
Run the demo with a simulator or connected iOS device
-
Once the demo app has started, press the
start
button to start detecting keywords and inferring context. To see more details about the current context information, press theContext Info
button on the top right corner in the app.