ahmetoner/whisper-asr-webservice

OpenAI Whisper ASR Webservice API

What it solves

You have audio or video files, but you need them as written text — for subtitles, transcripts, translations, or search. This project gives you a ready-to-run web service that does speech recognition, language identification, and translation into English, all through a simple REST API. It removes the hassle of installing and running Whisper models yourself and exposes them over HTTP so any application can send a file and get back text.

How it works

The service runs as a Docker container (on CPU or NVIDIA GPU). You send an audio or video file to its API endpoint, and it uses one of three Whisper-based engines to process it. The engine you choose is set with an environment variable: openai_whisper (the reference implementation), faster_whisper (faster and lighter), or whisperx (adds word alignment and speaker diarization). You can also pick which model size to use (like tiny, base, large-v3) and whether to run on CPU or GPU. The service returns the result in your choice of format: plain text, JSON, WebVTT, SRT, or TSV. It can also provide word-level timestamps, voice activity detection, and speaker labels. You can protect the API with an optional API key, and it will unload the model from memory after a period of inactivity to save resources.

Who it's for

Developers and teams who need to add speech-to-text capabilities to their own software, especially those who want to keep the processing on their own infrastructure. It's useful for building subtitle pipelines, meeting transcription tools, voice-controlled apps, or any system that needs to extract text from audio. Because it's containerized, it's easy to deploy in cloud, on-prem, or local environments.

Highlights

  • Supports three engines: OpenAI Whisper, Faster Whisper, and WhisperX
  • Handles all languages Whisper supports, plus translation into English
  • Outputs as text, JSON, WebVTT, SRT, or TSV, with optional word-level timestamps
  • Includes voice activity detection and speaker diarization (WhisperX)
  • Run on CPU or NVIDIA GPU, with pre-built Docker images for both
  • Optional API key authentication and idle model unloading to free memory
  • Interactive Swagger UI at /docs for easy testing

Related

  • Project
  • Project
  • Dispatch
  • Project
  • Project