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.1.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.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for whisper_transcriber_free-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7df9231a769ea1b98bd045136a1189693b7dfdd9ed9fd9f71d4768b259fd072f
MD5 2e1b46d211ee855ad1a50ff1a2f23cb2
BLAKE2b-256 4d29d3d73d0827f06dae8cc9611c73a1fb726e373d59750e395efc4295d800f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for whisper_transcriber_free-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98a55d8e4de4c33a2f96b534dcf88f6a31a8b0c725fc7b9ab290149fdd7e80d0
MD5 8cea155a01a915b41d40b4183aa118f2
BLAKE2b-256 1730f303eecf1cd4ef0a02cbec316c706dd71c6e183384654f0628bd6561820f

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