Cheetah Speech-to-Text
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 Cheetah Streaming Speech-to-Text 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
Model File
Add the Cheetah Streaming Speech-to-Text model file in Xcode
:
- Create a model in Picovoice Console or use the default model.
- Add the model as a bundled resource by selecting Build Phases and adding it to
Copy Bundle Resources
step.
Usage
Create an instance of Cheetah Streaming Speech-to-Text
:
Alternatively, you can provide modelPath
as an absolute path to the model file on device.
Transcribe audio:
Release resources explicitly when done with Cheetah Streaming Speech-to-Text:
Demo
For the Cheetah Streaming Speech-to-Text iOS SDK, we offer demo applications that demonstrate how to use the Speech-to-Text engine on real-time audio streams (i.e. microphone input).
Setup
Clone the Repository:
Usage
- Install dependencies:
Replace
let accessKey = "${YOUR_ACCESS_KEY_HERE}"
in the file ViewController.swift with a validAccessKey
.Open the
CheetahDemo.xcworkspace
and run the demo.
Resources
Package
API
GitHub
- Cheetah Streaming Speech-to-Text iOS SDK on GitHub
- Cheetah Streaming Speech-to-Text iOS Demos on GitHub