faster-whisper icon indicating copy to clipboard operation
faster-whisper copied to clipboard

How do I get both transcript and translated output from single process?

Open egemengulpinar opened this issue 1 year ago • 4 comments

I tried to make some modifications to get both the original language transcript(ex: German) and the transcript that was translated into English. Is this possible without doing 2 separate tasks like below?

model.transcribe("X.mp3", task = "translate") and model.transcribe("X.mp3", task = "transcribe")

Actually, I believe I can get the original transcript even if I use the "translate" task, but how? Is that possible?

egemengulpinar avatar Apr 20 '24 09:04 egemengulpinar

Actually, I believe I can get the original transcript even if I use the "translate" task, but how? Is that possible?

Not possible.

Purfview avatar Apr 20 '24 10:04 Purfview

import threading?

TheSlimeSasha avatar Apr 20 '24 10:04 TheSlimeSasha

use threading library

TheSlimeSasha avatar Apr 20 '24 10:04 TheSlimeSasha

It is not about doing that in separate processes or threads I meant, I don't want to call the model twice for doing the task (making an efficient way to do both things at the same time)

egemengulpinar avatar Apr 20 '24 10:04 egemengulpinar