Falcon Speaker Diarization
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 Falcon Speaker Diarization 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
Usage
Create an instance of Falcon Speaker Diarization
:
Perform diarization on an audio file either by passing the absolute path or an url to the file:
Perform diarization on raw audio data (sample rate of 16 kHz, 16-bit linearly encoded and 1 channel):
Release resources explicitly when done with Falcon Speaker Diarization:
Segments
Falcon Speaker Diarization returns an array of segments. Each segment has the following properties:
- Start Time: Indicates when the segment started. Value is in seconds.
- End Time: Indicates when the segment ended. Value is in seconds.
- Speaker Tag: A non-negative integer identifying unique speakers.
Demo
For the Falcon Speaker Diarization iOS SDK, we offer demo applications that demonstrate how to use the Speaker Diarization engine on audio recordings.
Setup
Clone the Falcon Speaker Diarization repository from GitHub using HTTPS:
Usage
- Install dependencies:
Open the
FalconDemo.xcworkspace
.Replace
let accessKey = "${YOUR_ACCESS_KEY_HERE}"
in the file ViewController.swift with a validAccessKey
.Run the demo with a simulator or connected iOS device.