Version 2 adds an OpenAI-compatible API, decodes audio in-process with PyAV instead of FFmpeg, makes faster_whisper the default engine and adds a GPU image for ARM64.
Upgrading from v1? Read the upgrade guide: the default engine, the JSON output of /asr and the subtitle defaults changed.
Docker Images
| Image | Platforms |
|---|---|
onerahmet/openai-whisper-asr-webservice:v2.0.0, latest
| CPU, amd64 and arm64 |
onerahmet/openai-whisper-asr-webservice:v2.0.0-gpu, latest-gpu
| NVIDIA GPU, amd64 and arm64 |
Added
- OpenAI-compatible API:
/v1/audio/transcriptions,/v1/audio/translationsand/v1/models, with every response format includingverbose_jsonanddiarized_json, word timestamps, streaming and OpenAI's error format, so the OpenAI SDKs and applications built for OpenAI work by changing the base URL Authorization: Bearerauthentication withAPI_KEY, next to theX-API-KeyheaderCORS_ALLOW_ORIGINSto allow browser-based applications on other origins to call the APIROOT_PATHto serve the service behind a reverse proxy under a path prefix, including the documentation and Swagger UIASR_VAD_THRESHOLD,ASR_VAD_MIN_SILENCE_MSandASR_VAD_SPEECH_PAD_MSto tune voice activity detection; the threshold also applies to WhisperX, which drops the start or end of some non-English audio with its defaultASR_PROMPT_RESET_ON_TEMPERATUREto keep punctuation and capitalization on long recordingsASR_CONDITION_ON_PREVIOUS_TEXTto stop Whisper from skipping speech at the end of a file, such as an outro after the main contentvad_filterfor/detect-language, so the language is detected from speech instead of leading silenceASR_CPU_THREADSto use more CPU cores;faster_whisperandwhisperxuse 4 threads by default- GPU Docker image for ARM64, e.g. NVIDIA DGX and Grace, with PyTorch built for CUDA 12.9; only the
openai_whisperengine can use the GPU there, so it is the default on these systems
Breaking
See the upgrade guide for what to check when upgrading from v1.
- Docker images no longer include the
ffmpegbinary; audio is decoded in-process with PyAV /asr?output=jsonreturns the same structure for every engine, following OpenAI'sverbose_jsonformat;languageis now a name such asenglishSUBTITLE_MAX_LINE_WIDTHandSUBTITLE_MAX_LINE_COUNTare unset by default, so subtitles contain one cue per segment- The default engine is
faster_whisperinstead ofopenai_whisper; setASR_ENGINE=openai_whisperto keep the previous engine
Changed
- Audio is decoded in-process with PyAV instead of an
ffmpegsubprocess, so running from source no longer requires FFmpeg - Removed the
ffmpeg-pythondependency and the FFmpeg build layer from the Docker images - All engines share one set of output writers, and the
SUBTITLE_*settings apply to every engine /asrand/detect-languageare documented as the legacy API- The documentation explains how to run offline with cached models, including WhisperX
- The documentation lists the distilled models and explains how to use custom and fine-tuned models
/detect-languageno longer rounds the WhisperX confidence to two decimals- The project uses uv instead of Poetry:
uv syncinstalls the CPU build of PyTorch,uv sync --no-group cpu --group cudathe CUDA build, and locking and Docker builds are much faster - The CPU Docker image no longer includes
pip - The CPU Docker image is based on Debian 13 instead of Debian 12, which has far fewer known vulnerabilities
Fixed
- WhisperX subtitles missing the spaces between words, and merging many segments into one subtitle
word_timestampsmissing from the Swagger UI with theopenai_whisperengine, which supports it- Installing without extras failing on macOS and arm64 because the CUDA build of PyTorch was selected
- Transcription with more than 4 CPU threads being several times slower because the model was loaded in a thread that exits
Full Changelog: v1.11.0...v2.0.0