Falcon Speaker Diarization
Android Quick Start
Platforms
- Android (5.0+, API 21+)
Requirements
- 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 AccessKey
.
Make sure to keep your AccessKey
secret.
Quick Start
Setup
Install Android Studio.
Include
mavenCentral()
repository in the top-levelbuild.gradle
. Then add the following to the app'sbuild.gradle
:
- Add the following to the app's
AndroidManifest.xml
file to enable recording with an Android device's microphone:
Usage
Create an instance of Falcon Speaker Diarization:
Perform diarization on an audio file by providing the absolute path to the file on the device:
Perform diarization on raw audio data (sample rate of 16 kHz, 16-bit linearly encoded and 1 channel):
When done, release resources explicitly:
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 Android 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
- Open the Android demo using Android Studio.
- Copy your
AccessKey
from Picovoice Console into theACCESS_KEY
variable in MainActivity.java. - Run the application using a connected Android device or using an Android simulator.