pvcheetah


Namepvcheetah JSON
Version 2.3.0 PyPI version JSON
download
home_pagehttps://github.com/Picovoice/cheetah
SummaryCheetah Speech-to-Text Engine.
upload_time2025-08-27 18:39:55
maintainerNone
docs_urlNone
authorPicovoice
requires_python>=3.9
licenseNone
keywords speech-to-text speech recognition voice recognition asr automatic speech recognition
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Cheetah Binding for Python

## Cheetah Speech-to-Text Engine

Made in Vancouver, Canada by [Picovoice](https://picovoice.ai)

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

- Private; All voice processing runs locally.
- [Accurate](https://picovoice.ai/docs/benchmark/stt/)
- [Compact and Computationally-Efficient](https://github.com/Picovoice/speech-to-text-benchmark#rtf)
- Cross-Platform:
    - Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64, arm64)
    - Android and iOS
    - Chrome, Safari, Firefox, and Edge
    - 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

```console
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](https://console.picovoice.ai/) to get your `AccessKey`.

## Usage

Create an instance of the engine and transcribe audio:

```python
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](https://console.picovoice.ai/). When done be sure
to explicitly release the resources using `handle.delete()`.

### Language Model

The Cheetah Python SDK comes preloaded with a default English language model (`.pv` file).
Default models for other supported languages can be found in [lib/common](../../lib/common).

Create custom language models using the [Picovoice Console](https://console.picovoice.ai/). Here you can train
language models with custom vocabulary and boost words in the existing vocabulary.

Pass in the `.pv` file via the `model_path` argument:
```python
cheetah = pvcheetah.create(
    access_key='${ACCESS_KEY}',
    model_path='${MODEL_FILE_PATH}')
```

## Demos

[pvcheetahdemo](https://pypi.org/project/pvcheetahdemo/) provides command-line utilities for processing audio using
Cheetah.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Picovoice/cheetah",
    "name": "pvcheetah",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "Speech-to-Text, Speech Recognition, Voice Recognition, ASR, Automatic Speech Recognition",
    "author": "Picovoice",
    "author_email": "hello@picovoice.ai",
    "download_url": "https://files.pythonhosted.org/packages/93/d4/0e85b1900f8243126cd335127d7b41cdc85240814339f119ec27ab916891/pvcheetah-2.3.0.tar.gz",
    "platform": null,
    "description": "# Cheetah Binding for Python\n\n## Cheetah Speech-to-Text Engine\n\nMade in Vancouver, Canada by [Picovoice](https://picovoice.ai)\n\nCheetah is an on-device streaming speech-to-text engine. Cheetah is:\n\n- Private; All voice processing runs locally.\n- [Accurate](https://picovoice.ai/docs/benchmark/stt/)\n- [Compact and Computationally-Efficient](https://github.com/Picovoice/speech-to-text-benchmark#rtf)\n- Cross-Platform:\n    - Linux (x86_64), macOS (x86_64, arm64), and Windows (x86_64, arm64)\n    - Android and iOS\n    - Chrome, Safari, Firefox, and Edge\n    - Raspberry Pi (3, 4, 5)\n\n## Compatibility\n\n- Python 3.9+\n- Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64, arm64), and Raspberry Pi (3, 4, 5).\n\n## Installation\n\n```console\npip3 install pvcheetah\n```\n\n## AccessKey\n\nCheetah requires a valid Picovoice `AccessKey` at initialization. `AccessKey` acts as your credentials when using Cheetah SDKs.\nYou can get your `AccessKey` for free. Make sure to keep your `AccessKey` secret.\nSignup or Login to [Picovoice Console](https://console.picovoice.ai/) to get your `AccessKey`.\n\n## Usage\n\nCreate an instance of the engine and transcribe audio:\n\n```python\nimport pvcheetah\n\nhandle = pvcheetah.create(access_key='${ACCESS_KEY}')\n\ndef get_next_audio_frame():\n    pass\n\nwhile True:\n    partial_transcript, is_endpoint = handle.process(get_next_audio_frame())\n    if is_endpoint:\n        final_transcript = handle.flush()\n```\n\nReplace `${ACCESS_KEY}` with yours obtained from [Picovoice Console](https://console.picovoice.ai/). When done be sure\nto explicitly release the resources using `handle.delete()`.\n\n### Language Model\n\nThe Cheetah Python SDK comes preloaded with a default English language model (`.pv` file).\nDefault models for other supported languages can be found in [lib/common](../../lib/common).\n\nCreate custom language models using the [Picovoice Console](https://console.picovoice.ai/). Here you can train\nlanguage models with custom vocabulary and boost words in the existing vocabulary.\n\nPass in the `.pv` file via the `model_path` argument:\n```python\ncheetah = pvcheetah.create(\n    access_key='${ACCESS_KEY}',\n    model_path='${MODEL_FILE_PATH}')\n```\n\n## Demos\n\n[pvcheetahdemo](https://pypi.org/project/pvcheetahdemo/) provides command-line utilities for processing audio using\nCheetah.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Cheetah Speech-to-Text Engine.",
    "version": "2.3.0",
    "project_urls": {
        "Homepage": "https://github.com/Picovoice/cheetah"
    },
    "split_keywords": [
        "speech-to-text",
        " speech recognition",
        " voice recognition",
        " asr",
        " automatic speech recognition"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5c78388c56ab4945428baea087dff52fc2fb34734a1098dad750418ecce420c4",
                "md5": "69d67bd7b9c8f15d76ca6e1117a8f651",
                "sha256": "c52485a0228bbd2cbdb86a07d952fe011e5afc069b00dd3c65583861298ae93e"
            },
            "downloads": -1,
            "filename": "pvcheetah-2.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "69d67bd7b9c8f15d76ca6e1117a8f651",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 31951621,
            "upload_time": "2025-08-27T18:39:50",
            "upload_time_iso_8601": "2025-08-27T18:39:50.072902Z",
            "url": "https://files.pythonhosted.org/packages/5c/78/388c56ab4945428baea087dff52fc2fb34734a1098dad750418ecce420c4/pvcheetah-2.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "93d40e85b1900f8243126cd335127d7b41cdc85240814339f119ec27ab916891",
                "md5": "2f0499879820b87587d6e14359247fa5",
                "sha256": "6d4d7d27d942781195f6a921b2820cc94531d16260b0808b4caec6e77f7b2aaa"
            },
            "downloads": -1,
            "filename": "pvcheetah-2.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2f0499879820b87587d6e14359247fa5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 31935222,
            "upload_time": "2025-08-27T18:39:55",
            "upload_time_iso_8601": "2025-08-27T18:39:55.064596Z",
            "url": "https://files.pythonhosted.org/packages/93/d4/0e85b1900f8243126cd335127d7b41cdc85240814339f119ec27ab916891/pvcheetah-2.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-27 18:39:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Picovoice",
    "github_project": "cheetah",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pvcheetah"
}
        
Elapsed time: 1.03174s