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)
    • 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


Download files

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

Source Distribution

pvfalcon-1.0.0.tar.gz (13.1 MB view details)

Uploaded Source

Built Distribution

pvfalcon-1.0.0-py3-none-any.whl (13.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pvfalcon-1.0.0.tar.gz
  • Upload date:
  • Size: 13.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for pvfalcon-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4e88ca46445f6a6a3b8bbc5dcaedc510859c5b35e8f95d2806ad9abb0959114b
MD5 8191a40398dfa9c855409494dde11496
BLAKE2b-256 b3b780fdcf739c0a98f3e987358ebe603cfd7637c6e5593d584c0f56a56078eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pvfalcon-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for pvfalcon-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 129714a2b84dbc337f56cde11482319988309b49cfe737f088dbfdebe988ce53
MD5 d75459be5dbbec9c893c6f4967a92879
BLAKE2b-256 dd5cdc2de869b31bc5d354a083ce2079112bacca4919eeee42258094b5868f83

See more details on using hashes here.

Supported by

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