jianchang512 / pyvideotrans

Translate the video from one language to another and add dubbing. 将视频从一种语言翻译为另一种语言,并添加配音
https://pyvideotrans.com
GNU General Public License v3.0
10k stars 1.09k forks source link

Source lang #365

Closed andreygrinchuk closed 4 months ago

andreygrinchuk commented 4 months ago

Hi, in source lang, I can't find Ukrainian. I tried to add on my own as well as changing voice to "uk-UA-OstapNeural" and "uk-UA-PolinaNeural" manually but it did not work. Is there a way to do this on my own in order not to bother you?

jianchang512 commented 4 months ago

No languages can be added because the first step of speech recognition relies on the whisper model, which supports a limited number of languages, and what it doesn't support can't be added.

andreygrinchuk commented 4 months ago

They updated the language list drastically then because Open AI supports all these languages as of now-

Afrikaans, Arabic, Armenian, Azerbaijani, Belarusian, Bosnian, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, Galician, German, Greek, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Kannada, Kazakh, Korean, Latvian, Lithuanian, Macedonian, Malay, Marathi, Maori, Nepali, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swahili, Swedish, Tagalog, Tamil, Thai, Turkish, Ukrainian, Urdu, Vietnamese, and Welsh.

Hence, I have a question about adding something myself.

jianchang512 commented 4 months ago

image This is all the languages that the openai-whisper model can support.

It is difficult to add languages in a few words, because different translation channels require different language codes for the same language, and different languages require different 3-digit language codes for embedding soft subtitles. To add a language, you need to change the interface language translation file, the translation channel code file, the TTS dubbing file, and you need to look up the language code of that language for each translation channel under this channel.

Ukrainian can be added in the next version

jianchang512 commented 4 months ago

1.58 had add uk