Skip to main content

CLI tool to transcribe MP3 audio to SRT subtitles using OpenAI Whisper API

Project description

whisper-srt

CLI tool to transcribe MP3 audio files to SRT subtitle format using OpenAI Whisper API.

English | 日本語

Features

  • Simple CLI for MP3 to SRT conversion
  • High-accuracy transcription via OpenAI Whisper API (whisper-1)
  • Built-in AI/tech terminology for better recognition
  • Custom vocabulary support

Quick Start

No installation required - just run with uv:

# Set your OpenAI API key
export OPENAI_API_KEY="your-api-key"

# Transcribe (creates audio.srt)
uvx whisper-srt audio.mp3

Get your API key from OpenAI Platform.

Installation (Optional)

If you prefer a permanent install:

uv tool install whisper-srt
whisper-srt audio.mp3

Usage

whisper-srt input.mp3                    # Basic usage
whisper-srt input.mp3 -o output.srt      # Specify output
whisper-srt input.mp3 --language en      # Specify language
whisper-srt --help                       # See all options

Custom Vocabulary

Create ~/.config/whisper-srt/vocabulary.txt with domain-specific terms:

YouTube
Podcast
MyCompanyName

Pricing

$0.006/minute (~$0.36/hour)

Development

git clone https://github.com/tomada1114/whisper-srt.git
cd whisper-srt
uv sync --dev
make ci   # lint + type-check + test

License

MIT

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_srt-0.2.1.tar.gz (11.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_srt-0.2.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file whisper_srt-0.2.1.tar.gz.

File metadata

  • Download URL: whisper_srt-0.2.1.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for whisper_srt-0.2.1.tar.gz
Algorithm Hash digest
SHA256 826508178647e1a704b116c4f6493bf7c85ff91282716e04872ee3613cb1a91d
MD5 25ec2f18fea0bb0993072391b648f55c
BLAKE2b-256 93f03badf8fb287b1f47a018f99cef98ef833de6280782ff335e1c3b53963413

See more details on using hashes here.

File details

Details for the file whisper_srt-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: whisper_srt-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for whisper_srt-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bae78d0bdfd734cb1ac0c8dc92ba987eddb3013f2ac8e1aaf045c977f3dc38cb
MD5 c4ea0c2ca318e18a688c903ce5220b52
BLAKE2b-256 9652883eecfca5a86c4046e419b77c854126cefd2cc9bf4beba1ac40ebc850ed

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