Bat Spoken Language Identification
iOS Quick Start
Platforms
- iOS (16.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 Bat-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:
Usage
Create an instance of Bat Spoken Language Identification:
Process audio:
Release resources explicitly when done with Bat Spoken Language Identification:
Demo
For the Bat Spoken Language Identification iOS SDK, we offer a demo application that demonstrates how to use the engine on real-time audio streams (i.e. microphone input).
Setup
Clone the Bat Spoken Language Identification repository from GitHub using HTTPS:
Usage
Replace
"${YOUR_ACCESS_KEY_HERE}"in the file ViewModel.swift with a validAccessKey.Open
BatDemo.xcodeprojin Xcode.Run the demo with a simulator or connected iOS device.