Eagle Speaker Recognition
Android Quick Start
- Android (5.0+, API 21+)
- Picovoice Account and AccessKey
- Android Studio
- Android device with USB debugging enabled or Android simulator
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your
Make sure to keep your
Eagle 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.
Install Android Studio.
mavenCentral()repository in the top-level
build.gradle. Then add the following to the app's
- Add the following to the app's
AndroidManifest.xmlfile to enable recording with an Android device's microphone:
- 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:
- Create an instance of Eagle:
- Pass the incoming audio stream to Eagle:
- Release the resources acquired by Eagle:
For the Eagle Android SDK, we offer demo applications that demonstrate how to use the speaker recognition engine on real-time audio streams.
Clone the Eagle repository from GitHub using HTTPS:
- Open the Android demo using Android Studio.
- Copy your
AccessKeyfrom Picovoice Console into the
ACCESS_KEYvariable in MainActivity.java.
- Run the application using a connected Android device or using an Android simulator.