Skip to main content

Cheetah Speech-to-Text Engine.

Project description

Cheetah Binding for Python

Cheetah Speech-to-Text Engine

Made in Vancouver, Canada by Picovoice

Cheetah is an on-device streaming speech-to-text engine. Cheetah is:

  • Private; All voice processing runs locally.
  • Accurate
  • Compact and Computationally-Efficient
  • Cross-Platform:
    • Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64)
    • Android and iOS
    • Chrome, Safari, Firefox, and Edge
    • Raspberry Pi (3, 4, 5)

Compatibility

  • Python 3.8+
  • Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5).

Installation

pip3 install pvcheetah

AccessKey

Cheetah requires a valid Picovoice AccessKey at initialization. AccessKey acts as your credentials when using Cheetah 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 transcribe audio:

import pvcheetah

handle = pvcheetah.create(access_key='${ACCESS_KEY}')

def get_next_audio_frame():
    pass

while True:
    partial_transcript, is_endpoint = handle.process(get_next_audio_frame())
    if is_endpoint:
        final_transcript = handle.flush()

Replace ${ACCESS_KEY} with yours obtained from Picovoice Console. When done be sure to explicitly release the resources using handle.delete().

Demos

pvcheetahdemo provides command-line utilities for processing audio using Cheetah.

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

pvcheetah-2.0.2.tar.gz (29.4 MB view details)

Uploaded Source

Built Distribution

pvcheetah-2.0.2-py3-none-any.whl (29.4 MB view details)

Uploaded Python 3

File details

Details for the file pvcheetah-2.0.2.tar.gz.

File metadata

  • Download URL: pvcheetah-2.0.2.tar.gz
  • Upload date:
  • Size: 29.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for pvcheetah-2.0.2.tar.gz
Algorithm Hash digest
SHA256 c266a9ef8d59ebae4daa6d8b011976129ca497847dd40271f54f6e15f221c901
MD5 ebd05b1d82195f3981f4e1a135b6569d
BLAKE2b-256 b17dedf63e9b86064334828b42d461d19bdfa7c0985f2df0ba2a33fe3cbfae6d

See more details on using hashes here.

File details

Details for the file pvcheetah-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: pvcheetah-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 29.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for pvcheetah-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ec8a698b4bc601ace4a3c84993cff74652c835f3f1a8150eab8311b3e30bfa3a
MD5 b40f984f66b1165f39c2146618e88e8d
BLAKE2b-256 dc262d24d242bfc1bed5d77ee19d071cd38a655732112f873d8e49dc2aa867e7

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