项目地址: https://github.com/nagisa77/yt-dlp-translate
许可证:MIT ,纯开源,无任何商业收费或广告
大家好,我自己在备份外语公开课时,总要先 yt-dlp 下视频 ➜ 手动找字幕 ➜ 再翻译。于是写了 yt-dlp-translate,把整套流程自动化,分享给有同样需求的朋友。
git clone https://github.com/nagisa77/yt-dlp-translate
cd yt-dlp-translate
pip install -r requirements.txt
cp .env.example .env # Google API + OpenAI Key
cp config.yaml.example config.yaml # 设置 playlist_id + language
python main.py
![]() |
1
hemingway 17 天前
上周还在找有没有类似的工具,最后也是分步骤,现下载视频,再语音识别出英文字幕,然后翻译成中文字幕。
你这自动化工具满足我的需求了,周末试试。感谢楼主分享。 |
![]() |
2
nagisa12321 OP @hemingway 这个可以部署在 nas 上,然后定时 fetch ,每天只要把想看的内容加到播放列表,回到家里就可以 TV 看翻译过的影片了,我自己用着很舒服 :)
当然如果你只用浏览器看,其实可以用沉浸式翻译的字幕翻译功能 |
![]() |
3
iv2ex 17 天前
star 了
|
![]() |
4
jayeli 17 天前
赞,之前我用的 openai whisper 翻译
|
![]() |
5
nagisa12321 OP @iv2ex 谢谢~
|
![]() |
6
hemingway 15 天前
@nagisa12321 赞,我 nas 上都是 docker ,有空试试
|