Skip to main content

Overview

The whisper command-line tool provides a simple interface for transcribing and translating audio files. It supports multiple audio formats and offers extensive customization options.

Basic Usage

1

Install Whisper

You’ll also need ffmpeg installed on your system:
2

Transcribe an audio file

By default, this uses the turbo model and outputs all available formats (txt, vtt, srt, tsv, json).

Command Syntax

Multiple Files

Process multiple audio files in one command:

Model Selection

Choose from different model sizes to balance speed and accuracy:
Available models: tiny, base, small, medium, large, turbo, or English-only variants (tiny.en, base.en, small.en, medium.en).
The default model is turbo, which offers fast transcription with good accuracy for English and multilingual content.

Language Options

Automatic Language Detection

By default, Whisper detects the language automatically:

Specify Language

For better performance, specify the language explicitly:
You can use either the language name (e.g., Japanese, Spanish) or language code (e.g., ja, es).

Translation to English

Translate non-English speech directly to English:
The turbo model does not support translation. Use multilingual models (tiny, base, small, medium, large) for translation tasks.

Output Options

Output Directory

Specify where to save the transcription files:

Output Format

Choose specific output formats:
Available formats:
  • txt - Plain text
  • vtt - WebVTT subtitles
  • srt - SubRip subtitles
  • tsv - Tab-separated values with timestamps
  • json - JSON with detailed segment information
  • all - Generate all formats (default)

Advanced Options

Word-Level Timestamps

Extract word-level timestamps for precise timing:
This enables additional subtitle formatting options:

Device Selection

Choose between CPU and GPU processing:

Initial Prompt

Provide context or custom vocabulary to improve accuracy:

Temperature and Sampling

Use temperature 0 for deterministic output:

Compression and Quality Thresholds

  • --compression_ratio_threshold: Detect and retry overly repetitive outputs (default: 2.4)
  • --logprob_threshold: Retry if average log probability is too low (default: -1.0)
  • --no_speech_threshold: Detect silent segments (default: 0.6)

Common Examples

Transcribe with High Accuracy

Generate SRT Subtitles

Process Specific Audio Clips

This processes clips from 0-300s and 600-900s.

Batch Processing with Consistent Settings

Full Options Reference

View all available options:
For large files or batch processing, consider using a GPU with --device cuda to significantly speed up transcription.