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.2.tar.gz (9.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_transcriber_free-0.1.2-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for whisper_transcriber_free-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ad8d28ca1efce06009ae372de0fde6be5a7c6bca4d7b415ed015d6bfbb9f36c9
MD5 d4a742f8c7103856389055de8347d681
BLAKE2b-256 94b3dc5c3996fc52daa604c697485ae34d63d2b207d3f800f27c7425e06597b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for whisper_transcriber_free-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1b7f28ffa9ecadc230887399eb9e7b42f862ccdb2dcc4b1b0638f953b3e00552
MD5 b1c40b33f13a93434bb3672efda10b14
BLAKE2b-256 a4324f739ee1124667f9c2f64bb6302bb715d352f1cdd047da56460a7d1d5692

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