How to transcribe and translate at the same time to create two separate files? #1500
-
In Python, preferably. I have extensive files and don't want to wait twice as long to run the same command. How do I get Korean and English SRT files from my function? Here's what I usually use: def transcribe():
model = whisper.load_model("large", device = 'cuda')
audio = whisper.load_audio(f'{output_name}.mp4')
global result
result = model.transcribe(audio, verbose = True, language = 'Korean', task = 'translate') I've tried this: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
u can open 2 different python process, 1 for transcribe 1 for translate |
Beta Was this translation helpful? Give feedback.
-
any update in one year |
Beta Was this translation helpful? Give feedback.
no, whisper was trained to output directly translation from audio, u can read the paper