Eagle Speaker Recognition
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.
Overview
Eagle Speaker Recognition has two distinct steps: Enrollment and Recognition. In the enrollment step, Eagle analyzes a series of utterances from a particular speaker to learn their unique voiceprint. This step produces an Eagle Profile object, which can be stored and utilized during inference. During the Recognition step, Eagle compares the incoming frames of audio to the voiceprints of all enrolled speakers in real-time to determine the similarity between them.
Quick Start
Setup
Install Xcode.
Import the Eagle-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:
Usage
Speaker Enrollment
- Create an instance of the profiler:
- Pass the enrollment audio data to the profiler until the enrollment percentage reaches 100%:
- Export the speaker profile:
- Release the resources acquired by the profiler:
Speaker Recognition
- Create an instance of Eagle Speaker Recognition:
- Pass the incoming audio stream to Eagle Speaker Recognition:
- Release the resources acquired by Eagle Speaker Recognition:
Demo
For the Eagle Speaker Recognition iOS SDK, we offer a demo application that demonstrates how to use the speaker recognition engine on microphone audio.
Setup
Clone the Eagle Speaker Recognition repository from GitHub using HTTPS:
Usage
- Before building the demo app, run the following to install the Eagle Speaker Recognition CocoaPod:
Replace
"${YOUR_ACCESS_KEY_HERE}"
inside theViewModel.swift
file with your AccessKey obtained from Picovoice Console.Open
EagleDemo.xcworkspace
in XCode and run the demo.
For more information on our Eagle Speaker Recognition demo for iOS, head over to our GitHub repository.