尚未偵測到更新。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