-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Memory leak for very long stream #83
Comments
You need to close the stream. |
I want to leave the stream open indefinitely, my goal is to use the asr as wake word system, and when it recognizes certain words trigger an action. |
Take a look at my program, Juliet. https://github.com/MikeyBeez/Juliet |
@MikeyBeez thank you, i checked it out, it seems you just check the output to see if a string is in it.
But I don't see any code for resetting, or handling memory issues |
import pyaudio def myCommand(): |
I rewrote this: from vosk import Model, KaldiRecognizer import pyaudio p = pyaudio.PyAudio() model = Model("model-en") while True: |
This should be fixed in commit ee9bacb and version 0.3.8 |
As reported by Sebastian Dunnink
i've been trying out your vosk api and it's working great so far, very
easy to install and use. however i came across one problem, which is
that after about 20 seconds of runtime (a script based on your
microphone example) it uses up one more megabyte of ram. i found it by
chance while trying to understand why it stopped after several hours
of runtime. below is my script, i run it inside a screen instance.
The text was updated successfully, but these errors were encountered: