A Python SDK for audio transcription using Whisper
Project description
Whisper Transcriber SDK
A Python SDK for audio transcription using OpenAI's Whisper model.
Installation
pip install whisper-transcriber
Usage
from whisper_transcriber import WhisperTranscriber
# Initialize the transcriber
transcriber = WhisperTranscriber(model_size="base", device="cpu")
# Transcribe from local file
result = await transcriber.transcribe_file("path/to/audio.mp3")
# Transcribe from URL
result = await transcriber.transcribe_url("https://example.com/audio.mp3")
if result.status:
print("Transcription:", result.data)
else:
print("Error:", result.message)
Features
- Support for multiple Whisper model sizes (base, small, medium, large)
- Transcription from local files and URLs
- Async/await support
- Comprehensive error handling
- CPU and GPU support
Requirements
- Python 3.8+
- PyTorch 2.0+
- NumPy 1.24+
License
MIT License
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_transcriber_free-0.1.0.tar.gz.
File metadata
- Download URL: whisper_transcriber_free-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20844d4905c91b9880eed7d8857a828686bd1c8e1f27015d1172b19fcfc208ff
|
|
| MD5 |
aa5b957199da52c4392d971a877bb324
|
|
| BLAKE2b-256 |
43d9f6019179742ff1a0d245e82029fc6e4adf927c639507eaccf34fb0cf7cbe
|
File details
Details for the file whisper_transcriber_free-0.1.0-py3-none-any.whl.
File metadata
- Download URL: whisper_transcriber_free-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d910fb5ac1eba94b1db470714f09bcf5869c41b70c216169bb63d9515591c462
|
|
| MD5 |
db1d30adab1d668ca8b9b872ab787701
|
|
| BLAKE2b-256 |
2311b57da72e609d4b3a882a8b6659c0e3ba99641cb81502ee7ae069632e39b5
|