Translation works only for plain text for now. It's useless if you would like to translate YouTube video to upload subtitles for English for example. This modified code will make sure translation output is also formatted to SRT.
Start on line 137, predict.py:
if translate:
translationResult = model.transcribe(
str(audio), task="translate", temperature=temperature, **args
)
Translation works only for plain text for now. It's useless if you would like to translate YouTube video to upload subtitles for English for example. This modified code will make sure translation output is also formatted to SRT.
Start on line 137, predict.py:
I tested it on another model, works great.