whisper-asr-webservice

ahmetonerMIT活跃维护

把 OpenAI Whisper 封装成开箱即用的 Docker 语音识别 Web 服务,上传音频即可通过 API 拿到转写文本,省去自己搭推理服务的麻烦。

OpenAI Whisper ASR Webservice API

v1.10.0发布于 2026-08-09 20:35 UTC3,369star +3 / 7 天582fork同步于 2026-11-11 05:38 UTC

怎么上手

由 README 提炼,执行前请确认
docker run -d -p 9000:9000 -e ASR_MODEL=base -e ASR_ENGINE=openai_whisper onerahmet/openai-whisper-asr-webservice:latest
硬件要求按 README 说明

提供 CPU 与 GPU 两个镜像,GPU 版需 --gpus all 运行;可用 ASR_DEVICE 选 cuda 或 cpu。README 未给出具体显存要求与 GPU 型号。

有 Docker 镜像
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

把 Whisper 语音识别封装成 REST API 的 Docker 服务,开箱即用

把 OpenAI Whisper 封装成开箱即用的 Docker 语音识别 Web 服务,上传音频即可通过 API 拿到转写文本,省去自己搭推理服务的麻烦。

核心能力

  • 支持 OpenAI Whisper、Faster Whisper、WhisperX 三种引擎
  • 输出 text、JSON、VTT、SRT、TSV 多种格式
  • 支持词级时间戳与 VAD 语音活动过滤
  • WhisperX 引擎可做说话人分离
  • 集成 FFmpeg 兼容多种音视频格式

容易踩的坑

首次启动会下载所选模型,建议挂载 -v $PWD/cache:/root/.cache/ 复用缓存;GPU 需用 latest-gpu 镜像并配 --gpus all;说话人分离仅在 ASR_ENGINE=whisperx 时可用。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v1.10.0
  1. v1.10.0最新正式版2026-08-09 · 2026-08-09 20:35 UTC

    What's Changed

    New Contributors

    Full Changelog: https://github.com/ahmetoner/whisper-asr-webservice/compare/v1.9.1...v1.10.0

  2. v1.9.12025-07-01 · 2025-07-01 19:14 UTC
    查看更新说明

    Fixed

    • Fixed Whisperx diarization pipeline initialization
    • Fixed Whisperx language detection

    What's Changed

    Full Changelog: https://github.com/ahmetoner/whisper-asr-webservice/compare/v1.9.0...v1.9.1

  3. v1.9.02025-06-29 · 2025-06-29 01:02 UTC
    查看更新说明

    Discord Server

    🎉 Join our Discord Community! Connect with other users, get help, and stay updated on the latest features: https://discord.gg/4Q5YVrePzZ

    Changed

    What's Changed

    Full Changelog: https://github.com/ahmetoner/whisper-asr-webservice/compare/v1.8.2...v1.9.0

  4. v1.8.22025-02-18 · 2025-02-18 00:59 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/ahmetoner/whisper-asr-webservice/compare/v1.8.1...v1.8.2

  5. v1.8.12025-02-18 · 2025-02-18 00:05 UTC
    查看更新说明

    What's Changed

    Fixed

    Full Changelog: https://github.com/ahmetoner/whisper-asr-webservice/compare/v1.8.0...v1.8.1

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Release Docker Pulls Build Licence

    Whisper ASR Box

    Whisper ASR Box is a general-purpose speech recognition toolkit. Whisper Models are trained on a large dataset of diverse audio and is also a multitask model that can perform multilingual speech recognition as well as speech translation and language identification.

    🎉 Join our Discord Community! Connect with other users, get help, and stay updated on the latest features: https://discord.gg/4Q5YVrePzZ

    Features

    Current release (v1.10.0) supports following whisper models:

    Quick Usage

    CPU

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

    GPU

    docker run -d --gpus all -p 9000:9000 \
      -e ASR_MODEL=base \
      -e ASR_ENGINE=openai_whisper \
      onerahmet/openai-whisper-asr-webservice:latest-gpu
    
    Cache

    To reduce container startup time by avoiding repeated downloads, you can persist the cache directory:

    docker run -d -p 9000:9000 \
      -v $PWD/cache:/root/.cache/ \
      onerahmet/openai-whisper-asr-webservice:latest
    

    Key Features

    • Multiple ASR engines support (OpenAI Whisper, Faster Whisper, WhisperX)
    • Multiple output formats (text, JSON, VTT, SRT, TSV)
    • Word-level timestamps support
    • Voice activity detection (VAD) filtering
    • Speaker diarization (with WhisperX)
    • FFmpeg integration for broad audio/video format support
    • GPU acceleration support
    • Configurable model loading/unloading
    • REST API with Swagger documentation

    Environment Variables

    Key configuration options:

    • ASR_ENGINE: Engine selection (openai_whisper, faster_whisper, whisperx)
    • ASR_MODEL: Model selection (tiny, base, small, medium, large-v3, etc.)
    • ASR_MODEL_PATH: Custom path to store/load models
    • ASR_DEVICE: Device selection (cuda, cpu)
    • MODEL_IDLE_TIMEOUT: Timeout for model unloading

    Documentation

    For complete documentation, visit: https://ahmetoner.github.io/whisper-asr-webservice

    Development

    # Install poetry v2.X
    pip3 install poetry
    
    # Install dependencies for cpu
    poetry install --extras cpu
    
    # Install dependencies for cuda
    poetry install --extras cuda
    
    # Run service
    poetry run whisper-asr-webservice --host 0.0.0.0 --port 9000
    

    After starting the service, visit http://localhost:9000 or http://0.0.0.0:9000 in your browser to access the Swagger UI documentation and try out the API endpoints.

    Credits

    • This software uses libraries from the FFmpeg project under the LGPLv2.1