尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Generate Hindi subtitles (.srt) for any movie. Whisper speech recognition in the browser (WebGPU) + Google Translate. Includes a Python CLI.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Generate Hindi subtitles (.srt) for any movie, in the browser or from the command line.
Live site: https://agrawaladitya270.github.io/hindi-subtitle-generator/
.srt to translate it directly..srt (English or the spoken language) is saved too, so translation can be redone without speech recognition.<movie>.hi.srt, alongside <movie>.en.srt (or <movie>.<lang>.srt).| Hardware | Model | 2-hour movie |
|---|---|---|
| Dedicated GPU (RTX 4060 Laptop) | Large v3, via English | ~35 min (~3.7× real time) |
| Dedicated GPU (RTX 4060 Laptop) | Large v3 Turbo, direct | ~10 min (~12× real time) |
| Integrated GPU (Intel UHD) | Small | ~40 min (~3× real time) |
| CPU only | Small | several hours |
Chrome or Edge is recommended. Models are downloaded once (0.3–2 GB) and cached by the browser.
cli/hindi_subtitles.py runs the same pipeline natively with faster-whisper (CUDA or CPU).
pip install faster-whisper deep-translator
python cli/hindi_subtitles.py movie.mp4 # audio -> Hindi subtitles
python cli/hindi_subtitles.py movie.mp4 --lang ja # set audio language if auto-detect is wrong
python cli/hindi_subtitles.py movie.mp4 --model small # much faster on CPU, less accurate
python cli/hindi_subtitles.py movie.mkv --track 1 # use the 2nd audio track (dual-audio files)
python cli/hindi_subtitles.py movie.en.srt # translate an existing .srt (no speech-to-text)
GPU use requires the CUDA 12 cuBLAS and cuDNN 9 libraries.
index.html Web app
assets/
css/styles.css Styles (light and dark)
js/main.js App flow: read audio → transcribe → translate → save
js/transcriber.worker.js Whisper speech recognition in a Web Worker
js/srt.js SRT parsing, writing and line splitting
js/translate.js Batched Google Translate client
fonts/ Inter (SIL Open Font License)
vendor/ffmpeg/ ffmpeg.wasm (MIT)
coi-serviceworker.js Enables multi-threaded WASM on GitHub Pages (MIT)
cli/hindi_subtitles.py Command-line tool
No build step. Serve the folder with any static server and open it on localhost:
python -m http.server 8000
Whisper · transformers.js · ffmpeg.wasm · coi-serviceworker · Inter