本项目需自行下载语音转文字和语言翻译大模型faster-whisper-large-v3和m2m100_1.2B,放置到本项目目录 This project requires you to download the speech-to-text and language translation large models faster-whisper-large-v3 and m2m100_1.2B by yourself and place them in the project directory.
离线GPU双语字幕器/ │ ├── 离线GPU双语字幕器.py faster-whisper-large-v3/ │ ├── config.json │ ├── model.bin │ ├── preprocessor_config.json │ ├── tokenizer.json │ ├── vocabulary.json m2m100_1.2B/ │ ├── config.json │ ├── generation_config.json │ ├── pytorch_model.bin │ ├── sentencepiece.bpe.model │ ├── special_tokens_map.json │ ├── tokenizer_config.json │ ├── vocab.json
运行py文件即可
我的环境是R7 9700X,RTX5060Ti16G,32G内存。 python3.12.3,torch 2.7.0+cu128
"en": "英语", "de": "德语", "id": "印尼语", "ja": "日语", "zh": "汉语", "th": "泰语", "fr": "法语", "ru": "俄语", "bn": "孟加拉语", "ms": "马来语", "es": "西班牙语", "it": "意大利语", "pt": "葡萄牙语", "hi": "印地语", "ar": "阿拉伯语", "ko": "韩语", "vi": "越南语", "tr": "土耳其语", "pl": "波兰语", "nl": "荷兰语"