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

Verbose transcription doesn't work #738

Closed
DryHam opened this issue Mar 11, 2024 · 0 comments
Closed

Verbose transcription doesn't work #738

DryHam opened this issue Mar 11, 2024 · 0 comments

Comments

@DryHam
Copy link

DryHam commented Mar 11, 2024

Hi

In the orginal Openai-Whisper in Python you can set verbose=True, e.g.
result = model.transcribe(input_file,
language='en',
initial_prompt=prompt,
fp16=False,
verbose=True)

This prints the transcription output as the program runs so you can observe any errors in the transcription before it finalises, e.g.
[00:00.000 --> 00:07.000] Okay.
[00:30.000 --> 00:43.680] I'm making inquiries into a workplace dispute that
[00:43.680 --> 00:50.160] has reportedly occurred on Saturday 6 January
[00:50.160 --> 00:51.160] 2024.

Judging from what I can see in transcribe.py, WhisperX has verbose=True set by default. However, nothing is printed while the program is running so you can't observe the transcription before it finalises. I have attempted to set print_progress = True in model.transcribe(), e.g.
result = model.transcribe(audio, batch_size=batch_size, print_progress=True)

However, this just prints out a percentage completion rate, not the transcription itself, e.g.
Progress: 1.43%...
Progress: 2.86%...
Progress: 4.29%...
Progress: 5.71%...
Progress: 7.14%...
Progress: 8.57%...

Is there a way to print out the transcription in Python as the program is running, or is this an error or an intended change with WhisperX?

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

1 participant