Skip to content

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