iOS Quick Start
- iOS (11.0+)
Install Xcode .
Import the ios-voice-processor pod by adding the following line to the project's
- Run the following from the project directory:
- Add the following to the app's
Info.plistfile to enable recording with your iOS device's microphone
Check if you have permission to record audio and request permission if needed:
Access the singleton instance of
Add listeners for audio frames and errors:
Start audio capture with the desired frame length and audio sample rate:
Stop audio capture:
Once audio capture has started successfully, any frame listeners assigned to the
VoiceProcessor will start receiving audio frames with the given
Capturing with Multiple Listeners
Any number of listeners can be added to and removed from the
VoiceProcessor instance. However,
the instance can only record audio with a single audio configuration (
which all listeners will receive once a call to
start() has been made. To add multiple listeners:
For the Voice Processor iOS SDK we have an example app that demonstrates how to use
VoiceProcessor in an iOS app.
Clone the ios-voice-processor repository from GitHub:
- Install dependencies and setup environment:
Open the generated
ios-voice-processor.xcworkspaceand run the demo with a simulator or connected iOS device.
Toggle recording on and off with the button in the center of the screen. While recording, the VU meter on the screen will respond to the volume of incoming audio.
For more information on our Voice Processor demo for iOS, head over to our GitHub repository .