Skip to content

added recognizer resource releasing#1610

Open
Joombey wants to merge 1 commit intoalphacep:masterfrom
Joombey:speech_service_shutdown_fix
Open

added recognizer resource releasing#1610
Joombey wants to merge 1 commit intoalphacep:masterfrom
Joombey:speech_service_shutdown_fix

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