Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whisper_transcriber_free-0.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

whisper_transcriber_free-0.1.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file whisper_transcriber_free-0.1.0.tar.gz.

File metadata

File hashes

Hashes for whisper_transcriber_free-0.1.0.tar.gz
Algorithm Hash digest
SHA256 20844d4905c91b9880eed7d8857a828686bd1c8e1f27015d1172b19fcfc208ff
MD5 aa5b957199da52c4392d971a877bb324
BLAKE2b-256 43d9f6019179742ff1a0d245e82029fc6e4adf927c639507eaccf34fb0cf7cbe

See more details on using hashes here.

File details

Details for the file whisper_transcriber_free-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for whisper_transcriber_free-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d910fb5ac1eba94b1db470714f09bcf5869c41b70c216169bb63d9515591c462
MD5 db1d30adab1d668ca8b9b872ab787701
BLAKE2b-256 2311b57da72e609d4b3a882a8b6659c0e3ba99641cb81502ee7ae069632e39b5

See more details on using hashes here.

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