Skip to main content

Lightweight Python client for WhisperLive — fewer dependencies, optimized for client-only use and easy integration.

Project description

whisper-live-client

A lightweight Python client for WhisperLive,
designed for client-only use cases with significantly fewer dependencies than the official server library.

Features

  • Sends PCM audio to a WhisperLive WebSocket endpoint
  • Real-time transcription support with simple callback interface
  • Fewer dependencies – ideal for minimal environments or custom frontends
  • Focused on client-side use

Installation

pip install whisper-live-client

or install from source:

git clone https://github.com/B4dT0bi/whisper-live-client
cd whisper-live-client
pip install .

Usage

from whisper_live.transcription_client import TranscriptionClient

def my_segment_callback(segments):
    print(f"Received segments:{segments}")

    transcription_client = TranscriptionClient(
        host="localhost",         # or your server address
        port=9090,                # or your server port
        lang="en",                # or your desired language
        model="small",            # or your desired model
        use_vad=True,             # use voice activity detection
        pyaudio_input_device_id=1 # optional: specify input device ID for PyAudio
    )
    transcription_client.register_callback("process_segments", my_segment_callback) # register callback
    transcription_client() # start the client

Dependencies

This library uses only a minimal set of runtime dependencies:

  • websockets – WebSocket client
  • numpy – for handling audio data

Optional (for examples):

  • pyaudio – audio capture in demos

This is in contrast to the official WhisperLive server code, which depends on heavy libs like torch.

📜 License

MIT License


Disclaimer: This is an independent client library and is not affiliated with Collabora or OpenAI.

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

whisper_live_client-0.6.3.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

whisper_live_client-0.6.3-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file whisper_live_client-0.6.3.tar.gz.

File metadata

  • Download URL: whisper_live_client-0.6.3.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for whisper_live_client-0.6.3.tar.gz
Algorithm Hash digest
SHA256 7f4a55482a47ad1696bf6f7b82c0c23dccb989f84a7701cbec88b910aca5fa61
MD5 b37a374723024c145e4b8e1c835c18d4
BLAKE2b-256 2d05d12e495223e12e2b185fcde7c66b309453234106f8acefb94b5db4bfd267

See more details on using hashes here.

Provenance

The following attestation bundles were made for whisper_live_client-0.6.3.tar.gz:

Publisher: python-publish.yml on B4dT0bi/WhisperLiveClient

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file whisper_live_client-0.6.3-py3-none-any.whl.

File metadata

File hashes

Hashes for whisper_live_client-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 29eaa395f44c91c299ff676919262250466cde05eb49209374cf26a1e6a388e3
MD5 73f915f269172f59b74cdd122313509b
BLAKE2b-256 577ecacbe51431b39af0783ae829a1bf473dd540c0da3bfc3609f4b8b9a55938

See more details on using hashes here.

Provenance

The following attestation bundles were made for whisper_live_client-0.6.3-py3-none-any.whl:

Publisher: python-publish.yml on B4dT0bi/WhisperLiveClient

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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