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

Fix Vosk slow down after processing a lot of audios (#1909) #1910

Merged
merged 2 commits into from
Sep 30, 2023

Conversation

wladimirleite
Copy link
Member

Fix #1909.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Copy link
Member

@lfcnassif lfcnassif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @tc-wleite!

@lfcnassif lfcnassif merged commit 5f5ab2d into master Sep 30, 2023
2 checks passed
@lfcnassif lfcnassif deleted the #1909_FixVoskSlowDown branch September 30, 2023 23:54
@wladimirleite
Copy link
Member Author

Unfortunately, after ~8 hours processing the CPU usage decreased.
It is much better than it was before (when after 30 minutes a slow down was noticeable).

I am testing now with an even smaller buffer size (4096), which is the value used in Vosk samples.
Tomorrow I should come to a conclusion.

Anyway, this is just a workaround, not a definitive solution.
I will try to open an issue in the Vosk project, to see if we can confirm it is an issue or get some advice on how to avoid this issue.

@wladimirleite
Copy link
Member Author

Using 4096 didn't help, as there was also a CPU usage decrease after ~8h.
So I guess for now we have to keep the merged changes.
For most cases it should be enough to avoid the slowness.

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

Successfully merging this pull request may close these issues.

Vosk transcription may slow down during large cases processing
2 participants