GewoonJaap / WinWhisper

Create subtitles with ease, using Whisper AI for Windows
42 stars 7 forks source link

Translations #3

Closed flyke closed 10 months ago

flyke commented 10 months 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 10 months 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 10 months 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 10 months 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 10 months ago

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

flyke commented 10 months ago

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

GewoonJaap commented 10 months ago

Will do today