Skip to main content

whisper

a cli tool i made for myself.

one simple way to transcribe audio from terminal.

all in native python. no subscription. blazingly fast. free. enjoy.

img

Features

  • Supports Many Formats: Works with popular audio (MP3, WAV, M4A) and video (MP4, AVI, MOV) files.
  • Automatic Audio Extraction: Extracts audio from video files on the fly using ffmpeg.
  • Different Output Options: Save transcriptions in formats like TXT, JSON, SRT, VTT, and TSV.

Installation

Prerequisites

  • Python 3.x
  • FFmpeg (for video file support)
pip install aa-whisper

Install FFmpeg

FFmpeg is required if you want to transcribe video files.

Linux:

sudo apt install ffmpeg

macOS:

brew install ffmpeg

Windows (PowerShell):

winget install FFmpeg

Configuration

Set your Groq API key as an environment variable.

Linux:

echo 'export GROQ_API_KEY="your_groq_api_key_here"' >> ~/.bashrc && source ~/.bashrc

macOS:

echo 'export GROQ_API_KEY="your_groq_api_key_here"' >> ~/.zshrc && source ~/.zshrc

Windows:

[System.Environment]::SetEnvironmentVariable("GROQ_API_KEY", "your_groq_api_key_here", "User")

Usage

whisper audio_or_video_file [options]

Options

  • --model: Whisper model to use (default: whisper-large-v3-turbo)
  • --language: Language code (optional)
  • --task: 'transcribe' or 'translate' (default: transcribe)
  • --output-dir: Output directory (default: audio_filename_transcription)
  • --response-format: 'verbose_json', 'json', 'text', 'srt', 'vtt' (default: verbose_json)
  • --version: Show version info

Examples

Transcribe audio:

whisper recording.mp3

Transcribe video:

whisper lecture.mp4

Translate to English:

whisper interview.mp3 --task translate

Multiple files at once:

whisper file1.mp3 file2.wav video1.mp4

Output Files

Each transcription will generate:

  • transcript.txt: Plain text
  • transcript.json: JSON metadata
  • transcript.srt: SubRip subtitles
  • transcript.vtt: WebVTT format
  • transcript.tsv: Timestamps and text

License

MIT

Acknowledgements

Metadata

Release files for aa-whisper 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aa-whisper 0.1.0
File Size Uploaded
aa_whisper-0.1.0.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aa-whisper 0.1.0
File Interpreter ABI Platform
aa_whisper-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.8 kB

Release files / aa_whisper-0.1.0.tar.gz

Download URL aa_whisper-0.1.0.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c5f29c7a278e484a6260c7194c01b94681443c212d490ec4f310da3158c1ef79
BLAKE2b-256 checksum
How to use checksums
8cca88f3d5b05c03e911c1890e9eab404c123dea3f1c88b1b5915158d123daa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / aa_whisper-0.1.0-py3-none-any.whl

Download URL aa_whisper-0.1.0-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a8f702f29be4318d38dae1c235d88ebce9ca7be1ea100ec6fd321cde9fc1089
BLAKE2b-256 checksum
How to use checksums
b14711c8b12477e19f89335e1fdae10870734d18708539b2e67a86df4a549911
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page