Made in Vancouver, Canada by Picovoice
Falcon is an on-device speaker diarization engine. Falcon is:
- Private; All voice processing runs locally.
- Cross-Platform:
- Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64)
- Raspberry Pi (3, 4, 5) and NVIDIA Jetson Nano
- Python 3.7+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (3, 4, 5), and NVIDIA Jetson Nano.
pip3 install pvfalcon
Falcon requires a valid Picovoice AccessKey
at initialization. AccessKey
acts as your credentials when using Falcon SDKs.
You can get your AccessKey
for free. Make sure to keep your AccessKey
secret.
Signup or Login to Picovoice Console to get your AccessKey
.
Create an instance of the engine and perform speaker diarization on an audio file:
import pvfalcon
handle = pvfalcon.create(access_key='${ACCESS_KEY}')
segments = handle.process_file('${AUDIO_PATH}')
for segment in segments:
print("{speaker tag=%d - start_sec=%.2f end_sec=%.2f}"
% (segment.speaker_tag, segment.start_sec, segment.end_sec))
Replace ${ACCESS_KEY}
with yours obtained from Picovoice Console and
${AUDIO_PATH}
to the path an audio file. Finally, when done be sure to explicitly release the resources using
handle.delete()
.
pvfalcondemo provides command-line utilities for processing audio using Falcon.