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.1.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.1-py3-none-any.whl (15.8 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pvfalcon-2.0.1.tar.gz
Algorithm Hash digest
SHA256 60b297cc58009164e471706ace26fbd9fa2b7ecf3b7b58f14b27a15f4ed0f4a5
MD5 acd6b3b796aeca6f696f6f604ba76911
BLAKE2b-256 eef981c1a466cc9f7e0410856191c90dd4345420a7325b4cffa58cdf2ae56883

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pvfalcon-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57e1a602af92512514d9e66092fe06f31179f366656861c53da8db676339ed1a
MD5 bc4fd05118639ef41ef25a4cfd55c238
BLAKE2b-256 42d89922de2640d817af5d09a6845777230d58b0a32705e0400edf26dc873fb0

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