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

Failed to Transcribe audio chunk #275

Open
coding-with-umar opened this issue Sep 11, 2024 · 2 comments
Open

Failed to Transcribe audio chunk #275

coding-with-umar opened this issue Sep 11, 2024 · 2 comments

Comments

@coding-with-umar
Copy link

Hi, I’m working on transcribing a live YouTube video. I’m fetching the audio from the live stream and passing it into Faster Whisper. The issue I’m encountering is that after a while, or sometimes even right from the start, it fails to transcribe certain audio chunks, leading to gaps in the transcription. Could you provide some insight into what might be causing this and how I can resolve it?

Here’s the error I’m seeing on the server side:
INFO:faster_whisper:Processing audio with duration 00:04.492
INFO:faster_whisper:Processing audio with duration 00:14.476
ERROR:root:[ERROR]: Failed to transcribe audio chunk: cannot access local variable 'last_segment' where it is not associated with a value

Note: I’ve tried every model size, and I’m working with Urdu language transcription.

@makaveli10
Copy link
Collaborator

Would you mind sharing the youtube link so as to reproduce the issue on our side?

@coding-with-umar
Copy link
Author

Would you mind sharing the youtube link so as to reproduce the issue on our side?

sure. Here is the link to that YouTube live video:
https://www.youtube.com/watch?v=O3DPVlynUM0

Its News channel.

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

No branches or pull requests

2 participants