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 clientnumpy– 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f4a55482a47ad1696bf6f7b82c0c23dccb989f84a7701cbec88b910aca5fa61
|
|
| MD5 |
b37a374723024c145e4b8e1c835c18d4
|
|
| BLAKE2b-256 |
2d05d12e495223e12e2b185fcde7c66b309453234106f8acefb94b5db4bfd267
|
Provenance
The following attestation bundles were made for whisper_live_client-0.6.3.tar.gz:
Publisher:
python-publish.yml on B4dT0bi/WhisperLiveClient
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
whisper_live_client-0.6.3.tar.gz -
Subject digest:
7f4a55482a47ad1696bf6f7b82c0c23dccb989f84a7701cbec88b910aca5fa61 - Sigstore transparency entry: 189918264
- Sigstore integration time:
-
Permalink:
B4dT0bi/WhisperLiveClient@98641538bf3076d354e91ebc2023dc278d5ac99d -
Branch / Tag:
refs/tags/v0.6.3 - Owner: https://github.com/B4dT0bi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@98641538bf3076d354e91ebc2023dc278d5ac99d -
Trigger Event:
release
-
Statement type:
File details
Details for the file whisper_live_client-0.6.3-py3-none-any.whl.
File metadata
- Download URL: whisper_live_client-0.6.3-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29eaa395f44c91c299ff676919262250466cde05eb49209374cf26a1e6a388e3
|
|
| MD5 |
73f915f269172f59b74cdd122313509b
|
|
| BLAKE2b-256 |
577ecacbe51431b39af0783ae829a1bf473dd540c0da3bfc3609f4b8b9a55938
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
whisper_live_client-0.6.3-py3-none-any.whl -
Subject digest:
29eaa395f44c91c299ff676919262250466cde05eb49209374cf26a1e6a388e3 - Sigstore transparency entry: 189918265
- Sigstore integration time:
-
Permalink:
B4dT0bi/WhisperLiveClient@98641538bf3076d354e91ebc2023dc278d5ac99d -
Branch / Tag:
refs/tags/v0.6.3 - Owner: https://github.com/B4dT0bi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@98641538bf3076d354e91ebc2023dc278d5ac99d -
Trigger Event:
release
-
Statement type: