Skip to main content

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, 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pvfalcon-2.0.0.tar.gz (15.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pvfalcon-2.0.0-py3-none-any.whl (15.8 MB view details)

Uploaded Python 3

File details

Details for the file pvfalcon-2.0.0.tar.gz.

File metadata

  • Download URL: pvfalcon-2.0.0.tar.gz
  • Upload date:
  • Size: 15.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.12

File hashes

Hashes for pvfalcon-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0453b9868dec7f4fd3b15309ecb5b9de16bcdde2b859a1f1cda1ee2ca9bf7c95
MD5 ddf826fa6c9162ba503ef3e25c02aed9
BLAKE2b-256 3be01cb79bdb6ea376e388c28ba7e9c80393b482391e77a089d3faf8d7158184

See more details on using hashes here.

File details

Details for the file pvfalcon-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: pvfalcon-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.12

File hashes

Hashes for pvfalcon-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07d882e37028ed5a832f34508c2e88a8bfad36541e98e812fea0ab1340ce90e5
MD5 7e66ce29f2f7e1068e25957c6cf7c063
BLAKE2b-256 ae7c3749b2f3acd4f4b29fb56cd53ec1e806c7ee98aa4713867ea6e252d50c01

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page