Falcon Speaker Diarization Engine
Project description
Falcon Binding for Python
Falcon Speaker Diarization Engine
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 (4, 3) and NVIDIA Jetson Nano
Compatibility
- Python 3.7+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (4, 3), and NVIDIA Jetson Nano.
Installation
pip3 install pvfalcon
AccessKey
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
.
Usage
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()
.
Demos
pvfalcondemo provides command-line utilities for processing audio using Falcon.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pvfalcon-1.0.1.tar.gz
.
File metadata
- Download URL: pvfalcon-1.0.1.tar.gz
- Upload date:
- Size: 14.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a03f890efe846eaea72dac1c55bff56be97fd933bdd5cced5d2e8465293f31d7 |
|
MD5 | f7e7fbb84b4405e6c0887adc5d3d9b66 |
|
BLAKE2b-256 | f6009b14a3d3c5c885005ab1d8d9a8776656eeef17997a3c0dce4ae438172e55 |
File details
Details for the file pvfalcon-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: pvfalcon-1.0.1-py3-none-any.whl
- Upload date:
- Size: 14.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1b631142c94734ed0a2e7eaaed794bf272d6205524e11513d4304256ee4dce6 |
|
MD5 | 00fc0fa40303b2bb7961df4e76e2a7e0 |
|
BLAKE2b-256 | 70d4f96b7b0f64230c6f965aa273097a73fc91bf88b4269f661f632be28577fb |