需先装 FFmpeg 并把 FFmpeg/bin 加入系统 PATH,Python 需 3.10~3.12;说话人分离要自备 HuggingFace token 并手动同意 pyannote 两个模型的条款;Docker 镜像约 7GB,WebUI 默认端口 7860。
git clone https://github.com/jhj0517/Whisper-WebUI.git
bash install.sh
bash start-webui.sh默认按 Nvidia GPU + CUDA 12.8 配置,faster-whisper fp16 实测峰值显存约 4755MB;使用 Intel 或其他 CUDA 版本需改 requirements.txt 的 --extra-index-url;README 未说明纯 CPU 运行要求。
基于 Gradio 的 Whisper 字幕生成 WebUI,上传文件或 YouTube 链接即可出字幕
给 Whisper 语音识别模型套上 Gradio 网页界面,上传音视频就能自动生成字幕,省去命令行操作。
核心能力
- 可在 openai/whisper、faster-whisper、insanely-fast-whisper 三种实现间切换
- 从本地文件、YouTube 链接或麦克风生成字幕
- 导出 SRT、WebVTT 和纯文本 txt 三种格式
- 用 Silero VAD 做语音活动检测预处理,用 UVR 分离背景音乐
- 用 pyannote 模型做说话人分离后处理
容易踩的坑
- v1.0.8最新正式版2025-10-17 · 2025-10-17 09:21 UTC
What's Changed
- Fix: lock down
torchaduioversion for its incompatibility by @jhj0517 in https://github.com/jhj0517/Whisper-WebUI/pull/603 - Fix: add fallback for loading yaml by @jhj0517 in https://github.com/jhj0517/Whisper-WebUI/pull/605
- Add Traditional Chinese (zh-TW) translation by @azq1231 in https://github.com/jhj0517/Whisper-WebUI/pull/596
- Add Dutch translation to translation.yaml by @nataliegeurtsen in https://github.com/jhj0517/Whisper-WebUI/pull/597
New Contributors
- @azq1231 made their first contribution in https://github.com/jhj0517/Whisper-WebUI/pull/596
- @nataliegeurtsen made their first contribution in https://github.com/jhj0517/Whisper-WebUI/pull/597
Full Changelog: https://github.com/jhj0517/Whisper-WebUI/compare/v1.0.7...v1.0.8
- Fix: lock down
- v1.0.72025-08-29 · 2025-08-29 07:54 UTC
查看更新说明
What's Changed
- Fix LookupError by @egemengulpinar in https://github.com/jhj0517/Whisper-WebUI/pull/586
- Add Hebrew (he) translation by @back2zion in https://github.com/jhj0517/Whisper-WebUI/pull/581
- Hide language setting in the UI by default by @jhj0517 in https://github.com/jhj0517/Whisper-WebUI/pull/589
New Contributors
- @egemengulpinar made their first contribution in https://github.com/jhj0517/Whisper-WebUI/pull/586
- @back2zion made their first contribution in https://github.com/jhj0517/Whisper-WebUI/pull/581
Full Changelog: https://github.com/jhj0517/Whisper-WebUI/compare/v1.0.6...v1.0.7
- v1.0.62025-08-10 · 2025-08-10 15:53 UTC
查看更新说明
What's Changed
- Fix i18n encoding issue in notebook by @jhj0517 in https://github.com/jhj0517/Whisper-WebUI/pull/574
- Set
word_timestampsto always True to reduce hallucinations by @jhj0517 in https://github.com/jhj0517/Whisper-WebUI/pull/580
Full Changelog: https://github.com/jhj0517/Whisper-WebUI/compare/v1.0.5...v1.0.6
- v1.0.52025-07-26 · 2025-07-26 10:18 UTC
查看更新说明
What's Changed
- Fix i18n encoding issue by @jhj0517 in https://github.com/jhj0517/Whisper-WebUI/pull/572
Full Changelog: https://github.com/jhj0517/Whisper-WebUI/compare/v1.0.4...v1.0.5
- v1.0.42025-05-06 · 2025-05-06 05:45 UTC
查看更新说明
What's Changed
- Add configs to the docker compose by @jhj0517 in https://github.com/jhj0517/Whisper-WebUI/pull/552
- Upgrade minimum CUDA version by @jhj0517 in https://github.com/jhj0517/Whisper-WebUI/pull/555
Full Changelog: https://github.com/jhj0517/Whisper-WebUI/compare/v1.0.3...v1.0.4
[!NOTE] Latest
torchno longer supports CUDA 12.4 binaries. Need to use at least CUDA 12.6.
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Whisper-WebUI
A Gradio-based browser interface for Whisper. You can use it as an Easy Subtitle Generator!
Notebook
If you wish to try this on Colab, you can do it in here!
Feature
- Select the Whisper implementation you want to use between :
- openai/whisper
- SYSTRAN/faster-whisper (used by default)
- Vaibhavs10/insanely-fast-whisper
- Generate subtitles from various sources, including :
- Files
- Youtube
- Microphone
- Currently supported subtitle formats :
- SRT
- WebVTT
- txt ( only text file without timeline )
- Speech to Text Translation
- From other languages to English. ( This is Whisper's end-to-end speech-to-text translation feature )
- Text to Text Translation
- Translate subtitle files using Facebook NLLB models
- Translate subtitle files using DeepL API
- Pre-processing audio input with Silero VAD.
- Pre-processing audio input to separate BGM with UVR.
- Post-processing with speaker diarization using the pyannote model.
- To download the pyannote model, you need to have a Huggingface token and manually accept their terms in the pages below.
Pipeline Diagram
Installation and Running
-
Running with Pinokio
The app is able to run with Pinokio.
- Install Pinokio Software.
- Open the software and search for Whisper-WebUI and install it.
- Start the Whisper-WebUI and connect to the
http://localhost:7860.
-
Running with Docker
-
Install and launch Docker-Desktop.
-
Git clone the repository
git clone https://github.com/jhj0517/Whisper-WebUI.git
- Build the image ( Image is about 7GB~ )
docker compose build
- Run the container
docker compose up
- 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:
- git : https://git-scm.com/downloads
- python : https://www.python.org/downloads/
3.10 ~ 3.12is recommended. - FFmpeg : https://ffmpeg.org/download.html
- CUDA : https://developer.nvidia.com/cuda-downloads
After installing FFmpeg, make sure to add the FFmpeg/bin folder to your system PATH!
Installation Using the Script Files
- git clone this repository
git clone https://github.com/jhj0517/Whisper-WebUI.git
- Run
install.batorinstall.shto install dependencies. (It will create avenvdirectory and install dependencies there.) - Start WebUI with
start-webui.batorstart-webui.sh(It will runpython app.pyafter 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:
| Implementation | Precision | Beam size | Time | Max. GPU memory | Max. CPU memory |
|---|---|---|---|---|---|
| openai/whisper | fp16 | 5 | 4m30s | 11325MB | 9439MB |
| faster-whisper | fp16 | 5 | 54s | 4755MB | 3244MB |
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.
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!