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, arm64)
- Raspberry Pi (3, 4, 5)
Compatibility
- Python 3.9+
- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64, arm64), and Raspberry Pi (3, 4, 5).
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.
Metadata
Release files for pvfalcon 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pvfalcon-2.0.1.tar.gz | 15.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pvfalcon-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.6 MB
Release files / pvfalcon-2.0.1.tar.gz
| Download URL | pvfalcon-2.0.1.tar.gz |
|---|---|
| Size | 15.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60b297cc58009164e471706ace26fbd9fa2b7ecf3b7b58f14b27a15f4ed0f4a5
|
|
BLAKE2b-256 checksum How to use checksums |
eef981c1a466cc9f7e0410856191c90dd4345420a7325b4cffa58cdf2ae56883
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / pvfalcon-2.0.1-py3-none-any.whl
| Download URL | pvfalcon-2.0.1-py3-none-any.whl |
|---|---|
| Size | 15.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57e1a602af92512514d9e66092fe06f31179f366656861c53da8db676339ed1a
|
|
BLAKE2b-256 checksum How to use checksums |
42d89922de2640d817af5d09a6845777230d58b0a32705e0400edf26dc873fb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|