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

added recognizer resource releasing #1610

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Joombey
Copy link

@Joombey Joombey commented Jul 10, 2024

Used recognizer in my project, but found with help of profiler that if you call SpeechService.shutdown() method it doesn't release recognizer resources which may cause big memory leaks (150 mb in my case) each time you start listening for recognition

@nshmyrev
Copy link
Collaborator

Hi

Thank you for the patch. SpeechService doesn't create the recognizer, it should not release it as well. You can free recognizer outside of SpeechService code in your applicaiton.

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

Successfully merging this pull request may close these issues.

2 participants