Orca Text-to-Speech
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 Orca-iOS binding by adding the following line to
Podfile
:
- Run the following from the project directory:
Adding an Orca Model File
Orca can synthesize speech with various voices, each of which is characterized by a model file located in the Orca GitHub repository.
To add an Orca voice model file to your iOS application:
- Download an Orca voice model file from the Orca GitHub Repository.
- Add the model as a bundled resource by selecting Build Phases and adding it to
Copy Bundle Resources
step.
Usage
Create an instance of Orca
:
Alternatively, you can provide modelPath
as an absolute path to the model file on device.
Synthesize speech:
Free resources acquired by Orca
:
For more information on our Orca iOS SDK, head over to our Orca GitHub repository.
Demos
For the Orca iOS SDK, we offer a demo application that demonstrates how to use the Text-to-Speech engine.
Setup
Clone the Repository
Usage
- Install dependencies:
Replace
let ACCESS_KEY = "${YOUR_ACCESS_KEY_HERE}"
in the ViewModel.swift file with a validAccessKey
.Open
OrcaDemo.xcworkspace
in XCode and run the demo.
For more information on our Orca demos for iOS, head over to our GitHub repository.