#5485 想要加入小语种怎么办,比如缅甸语之类的

2409:8a20* Posted at: 1 day ago

想要加入小语种怎么办,比如缅甸语之类的

1 Replies

添加小语种需要修改软件的语言配置和模型支持。由于 pyVideoTrans 是开源的,您可以通过以下步骤实现:

  1. 确认语言代码:缅甸语的语言代码为 my(语音识别用)和 my-MM(字幕/界面用)。
  2. 修改语言列表:打开源码目录 videotrans/configure/contants.py,在 LANGUAGE_*SUPPORT_LANGUAGE 等列表中追加 ("my", "缅甸语")("my-MM", "缅甸语")
  3. 添加 TTS 音色:若使用 Edge-TTS,需在 voicejson/edgetts.json 中添加对应的缅甸语音色(如 my-MM-ThuNeural)。
  4. 模型支持:语音识别用 faster-whisper 原生支持约 100 种语言(含缅甸语),直接选择即可;翻译渠道(Google/Microsoft/DeepSeek 等)通常也支持缅甸语,无需额外配置。

具体操作细节可参考官方文档。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update. Dondate: ko-fi.com/jianchang512

Related resource