Whisper-WebUI

jhj0517Apache-2.0更新放缓

给 Whisper 语音识别模型套上 Gradio 网页界面,上传音视频就能自动生成字幕,省去命令行操作。

A Web UI for easy subtitle using whisper model.

v1.0.8发布于 2025-10-17 09:21 UTC2,900star448fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/jhj0517/Whisper-WebUI.git
bash install.sh
bash start-webui.sh
硬件要求按 README 说明

默认按 Nvidia GPU + CUDA 12.8 配置,faster-whisper fp16 实测峰值显存约 4755MB;使用 Intel 或其他 CUDA 版本需改 requirements.txt 的 --extra-index-url;README 未说明纯 CPU 运行要求。

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

项目说明

由 README 自动翻译提炼

基于 Gradio 的 Whisper 字幕生成 WebUI,上传文件或 YouTube 链接即可出字幕

给 Whisper 语音识别模型套上 Gradio 网页界面,上传音视频就能自动生成字幕,省去命令行操作。

核心能力

  • 可在 openai/whisper、faster-whisper、insanely-fast-whisper 三种实现间切换
  • 从本地文件、YouTube 链接或麦克风生成字幕
  • 导出 SRT、WebVTT 和纯文本 txt 三种格式
  • 用 Silero VAD 做语音活动检测预处理,用 UVR 分离背景音乐
  • 用 pyannote 模型做说话人分离后处理

容易踩的坑

需先装 FFmpeg 并把 FFmpeg/bin 加入系统 PATH,Python 需 3.10~3.12;说话人分离要自备 HuggingFace token 并手动同意 pyannote 两个模型的条款;Docker 镜像约 7GB,WebUI 默认端口 7860。

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

最近发版

5 个版本v1.0.8
  1. v1.0.8最新正式版2025-10-17 · 2025-10-17 09:21 UTC

    What's Changed

    New Contributors

    Full Changelog: https://github.com/jhj0517/Whisper-WebUI/compare/v1.0.7...v1.0.8

  2. v1.0.72025-08-29 · 2025-08-29 07:54 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/jhj0517/Whisper-WebUI/compare/v1.0.6...v1.0.7

  3. v1.0.62025-08-10 · 2025-08-10 15:53 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/jhj0517/Whisper-WebUI/compare/v1.0.5...v1.0.6

  4. v1.0.52025-07-26 · 2025-07-26 10:18 UTC
    查看更新说明
  5. v1.0.42025-05-06 · 2025-05-06 05:45 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/jhj0517/Whisper-WebUI/compare/v1.0.3...v1.0.4

    [!NOTE] Latest torch no longer supports CUDA 12.4 binaries. Need to use at least CUDA 12.6.

用户点评

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

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

    README 原文

    未翻译

    Whisper-WebUI

    A Gradio-based browser interface for Whisper. You can use it as an Easy Subtitle Generator!

    screen

    Notebook

    If you wish to try this on Colab, you can do it in here!

    Feature

    Pipeline Diagram

    Transcription Pipeline

    Installation and Running

    • Running with Pinokio

    The app is able to run with Pinokio.

    1. Install Pinokio Software.
    2. Open the software and search for Whisper-WebUI and install it.
    3. Start the Whisper-WebUI and connect to the http://localhost:7860.
    • Running with Docker

    1. Install and launch Docker-Desktop.

    2. Git clone the repository

    git clone https://github.com/jhj0517/Whisper-WebUI.git
    
    1. Build the image ( Image is about 7GB~ )
    docker compose build 
    
    1. Run the container
    docker compose up
    
    1. Connect to the WebUI with your browser at http://localhost:7860

    If needed, update the docker-compose.yaml to match your environment.

    • Run Locally

    Prerequisite

    To run this WebUI, you need to have git, 3.10 <= python <= 3.12, FFmpeg.

    Edit --extra-index-url in the requirements.txt to match your device. By default, the WebUI assumes you're using an Nvidia GPU and CUDA 12.8. If you're using Intel or another CUDA version, read the requirements.txt and edit --extra-index-url.

    Please follow the links below to install the necessary software:

    After installing FFmpeg, make sure to add the FFmpeg/bin folder to your system PATH!

    Installation Using the Script Files

    1. git clone this repository
    git clone https://github.com/jhj0517/Whisper-WebUI.git
    
    1. Run install.bat or install.sh to install dependencies. (It will create a venv directory and install dependencies there.)
    2. Start WebUI with start-webui.bat or start-webui.sh (It will run python app.py after activating the venv)

    And you can also run the project with command line arguments if you like to, see wiki for a guide to arguments.

    VRAM Usages

    This project is integrated with faster-whisper by default for better VRAM usage and transcription speed.

    According to faster-whisper, the efficiency of the optimized whisper model is as follows:

    ImplementationPrecisionBeam sizeTimeMax. GPU memoryMax. CPU memory
    openai/whisperfp1654m30s11325MB9439MB
    faster-whisperfp16554s4755MB3244MB

    If you want to use an implementation other than faster-whisper, use --whisper_type arg and the repository name. Read wiki for more info about CLI args.

    If you want to use a fine-tuned model, manually place the models in models/Whisper/ corresponding to the implementation.

    Alternatively, if you enter the huggingface repo id (e.g, deepdml/faster-whisper-large-v3-turbo-ct2) in the "Model" dropdown, it will be automatically downloaded in the directory.

    image

    REST API

    If you're interested in deploying this app as a REST API, please check out /backend.

    TODO🗓

    • Add DeepL API translation
    • Add NLLB Model translation
    • Integrate with faster-whisper
    • Integrate with insanely-fast-whisper
    • Integrate with whisperX ( Only speaker diarization part )
    • Add background music separation pre-processing with UVR
    • Add fast api script
    • Add CLI usages
    • Support real-time transcription for microphone

    Translation 🌐

    Any PRs that translate the language into translation.yaml would be greatly appreciated!