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.
Import the Cheetah-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:
- 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:
Non-English Languages
In order to use Cheetah with other languages, you need to use the corresponding model file (.pv
) for the desired language.
The model files for all supported languages are available on the Cheetah GitHub repository.
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
Replace
"${YOUR_ACCESS_KEY_HERE}"
in the file ViewController.swift with a validAccessKey
.Open the
CheetahDemo.xcodeproj
in XCode and run the demo.
For more information on our Cheetah Streaming Speech-to-Text demo for iOS, head over to our GitHub repository.
Resources
Package
API
GitHub
- Cheetah Streaming Speech-to-Text iOS SDK on GitHub
- Cheetah Streaming Speech-to-Text iOS Demos on GitHub