← Back to Leaderboard
Wahmetoner

ahmetoner/whisper-asr-webservice

Self-hosted Whisper REST API for transcription, translation, and subtitles

Engineering Health (Methodology)
A+ · 96/100
Maintenance Activity
● Updated 3d ago
Latest Release
v2.0.1
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption21/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedGPUAPI
Total Stars
★ 3,372
24h Growth
+0
7d Growth
+0
Forks
579

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

ahmetoner/whisper-asr-webservice Star History (2022-09-22 - 2026-12-03) ALL-TIME STAR HISTORY (2022-09 – 2026-12) +3.4k in 1533d · avg +2/day 3.6k 1.8k 0 2022-09-22: ★ 12022-12-24: ★ 2422023-04-01: ★ 4762023-07-08: ★ 7492023-10-14: ★ 9742024-01-20: ★ 1,2722024-04-27: ★ 1,5872024-08-03: ★ 1,8562024-11-09: ★ 2,0292025-02-15: ★ 2,2552025-05-24: ★ 2,5542025-08-30: ★ 2,8182025-12-06: ★ 3,0002026-03-14: ★ 3,1492026-06-20: ★ 3,2542026-09-26: ★ 3,3292026-12-03: ★ 3,372 ★ 3.4k 2022-09 2024-10 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

This is a self-hosted Python REST service built on FastAPI and Uvicorn. A client submits an audio or video file as multipart data, and PyAV decodes it inside the service process. The selected Whisper engine then runs inference locally. python-multipart, av, and numpy are declared dependencies; the runtime entrypoint is whisper-asr-webservice, and application code lives under app/.

The integration boundary is HTTP: the service exposes an OpenAI-compatible transcription endpoint under /v1 as well as the existing /asr route. Backend selection is a deployment setting, not a custom plugin protocol. ASR_ENGINE selects Faster Whisper, OpenAI Whisper, or WhisperX, while ASR_MODEL and ASR_DEVICE set the model and execution device.

Key Capabilities & Differentiators

The service transcribes speech in Whisper-supported languages, translates into English, and detects the input language with a confidence score. Outputs include plain text, JSON, WebVTT, SRT, and TSV. Supported model examples include tiny, base, small, large-v3, and turbo. The upload path accepts audio and video formats supported by the FFmpeg libraries used through PyAV.

Backend choice affects more than throughput. Faster Whisper is the default and supports voice activity detection and batched inference. OpenAI Whisper is the reference implementation. WhisperX provides word alignment and speaker diarization, with HF_TOKEN required for diarization. Word-level timing is available, but clients should verify the chosen engine, endpoint, and output format together before relying on specific timestamp or speaker fields.

Trade-offs & Limitations

Compared with a hosted Whisper API, this service keeps inference on infrastructure you control and can reuse clients that accept a custom OpenAI base URL. In return, you own model downloads, capacity planning, updates, and uptime. Compared with embedding Faster Whisper directly, a shared HTTP service simplifies integration across applications but adds file transport and another process to operate.

Capacity depends on the engine, model, input duration, and concurrency; the default base configuration is a useful starting point, not a production sizing estimate. MODEL_IDLE_TIMEOUT can reclaim memory between bursts, at the cost of reloading the model on a later request. Authentication is optional and unset by default. Treat the documented API as file-based transcription, not as a replacement for a streaming protocol.

Hardware & Deployment Guide

The CPU and NVIDIA GPU images support amd64 and arm64 and serve HTTP on port 9000. GPU containers require the NVIDIA Container Toolkit and can be launched with --gpus all using the latest-gpu image. Persist /root/.cache to reuse downloaded model files. The CPU Compose file builds from Dockerfile, sets ASR_MODEL=base, bind-mounts ./app, and uses a named cache volume. Running from source requires Python 3.12 or 3.13 and uv.

Version 1.11.0 added API key authentication, health checks, logging, and request limits. Version 2.0.0 added the OpenAI-compatible API and ARM64 GPU image, moved decoding to PyAV, and made Faster Whisper the default. It also changed /asr JSON output and subtitle defaults, so v1 integrations should regression-test their parsers. Version 2.0.1 fixed WhisperX startup in Docker by restoring the missing libgomp dependency.

API boundary: OpenAI-compatible /v1/audio/transcriptions plus the existing /asr endpoint.
Media ingest: PyAV decodes uploaded audio and video in-process instead of invoking an FFmpeg subprocess.
Engine selection: ASR_ENGINE switches among faster_whisper, openai_whisper, and whisperx; ASR_MODEL selects the model.
Speech annotation: Faster Whisper offers VAD and batched inference; WhisperX adds word alignment and token-gated diarization.
Container footprint: CPU and NVIDIA GPU builds support amd64 and arm64, and /root/.cache can be persisted for model downloads.
Runtime controls: X-API-Key authentication, health checks, request limits, and configurable idle model unloading.
Best For

Teams that need to process recorded audio or video on their own infrastructure, share a transcription endpoint across applications, or migrate existing OpenAI audio clients to local inference.

Skip If

Your product requires live bidirectional streaming, you do not want to operate model-serving infrastructure, or a single application can call Faster Whisper directly.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedGPUAPI
docker run -d -p 9000:9000 \
  -e ASR_ENGINE=faster_whisper \
  -e ASR_MODEL=base \
  onerahmet/openai-whisper-asr-webservice:latest

Comparison vs. Top Voice, Vision & Video Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
whisper-asr-webservice ★3.4k—PythonMITSelf-hosted Whisper REST API for transcription, translation, and subtitles
WhisperLiveKit11.3k+27PythonApache-2.0Self-hosted streaming speech-to-text with pluggable ASR and speaker diarization
whisperX26.5k+677PythonBSD-2-ClauseBatched Whisper with forced alignment for word timings and optional speaker labe
mlx-audio8.4k+32PythonMITMLX inference SDK for local speech and audio pipelines on Apple Silicon

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/ahmetoner/whisper-asr-webservice.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

ahmetoner/whisper-asr-webservice Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about whisper-asr-webservice

How do I point an existing OpenAI speech client at this service?

Set the OpenAI SDK base URL to http://<host>:9000/v1 and send a multipart file upload to /v1/audio/transcriptions. The example sends model=whisper-1, while the deployed engine and model are configured through ASR_ENGINE and ASR_MODEL. If authentication is enabled, make sure the client sends X-API-Key; also test the response formats your application consumes.

How should I size CPU, RAM, and GPU capacity?

Use the default Faster Whisper engine with base as a CPU baseline, then measure peak RAM and processing time with representative files and concurrent uploads. For GPU deployment, measure peak VRAM with the actual model and features you intend to enable, including WhisperX alignment or diarization if needed. No fixed VRAM requirement is specified. Test both cold and warm requests if you configure idle unloading.

Can I use this commercially and keep recordings in my own environment?

Yes. The service is MIT-licensed, which permits commercial use subject to the license terms. Review the terms of the selected model weights and any diarization dependencies separately. Self-hosting avoids sending recordings to a hosted transcription API, but access control, retention, and audit requirements still need to be addressed in your deployment.

When is this a better fit than a hosted Whisper API or direct Faster Whisper integration?

Choose this service over direct Faster Whisper integration when multiple clients need a shared HTTP endpoint or when compatibility with existing OpenAI clients matters. Use the library directly when transcription is confined to one application and you want to avoid an extra upload and service boundary. Choose a hosted Whisper API when avoiding model and infrastructure operations matters more than local control.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining ahmetoner/whisper-asr-webservice? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature ahmetoner/whisper-asr-webservice on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare