GewoonJaap / WinWhisper

Create subtitles with ease, using Whisper AI for Windows
51 stars 8 forks source link

Translations #3

Closed flyke closed 1 year ago

flyke commented 1 year ago

I would like to see an optional translation feature. So the code optionally asks for a translation language code. If given, it will translate the subtracted text to the desired language before saving it into the .srt file. So this could essentially generate Dutch subtitles for an English source video for example.

GewoonJaap commented 1 year ago

I will check this, would be a nice feature to have indeed. If the whisper model supports it I will implement it

flyke commented 1 year ago

From the https://github.com/openai/whisper page itself: Adding --task translate will translate the speech into English: whisper japanese.wav --language Japanese --task translate

GewoonJaap commented 1 year ago

I guess the translate task always translates to english? I saw that the translate function is available in c#, but I can't set the destination language. I guess it defaults to english then

JustAndreww commented 1 year ago

At least something to play with :) Sometimes eng translation is more than enough.

flyke commented 1 year ago

So could you create a release that has the translate to english option ?

GewoonJaap commented 1 year ago

Will do today