Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
egemengulpinar opened this issue Apr 20, 2024 · 4 comments

Comments

@egemengulpinar
Copy link

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?

@Purfview
Copy link
Contributor

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

Not possible.

@TheSlimeSasha
Copy link

import threading?

@TheSlimeSasha
Copy link

use threading library

@egemengulpinar
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants