Closed awesomepgm closed 4 years ago
I forgot to mention that I have used the .stop method but it gives an error so it is not great for my purpose as it would mess up the flow of the code.
Turns out this was a problem with the multiprocessing library. However, I still believe that a stream module should be added.
The LiveSpeech call used to detect keywords live cannot be closed until one of the keywords is said again. This may be an oversight on my part but I have tried everything to close the for loop and so far nothing has worked. This is a simplified version of what I am doing:
I think a good addition to change this would be a streaming system like that of pyaudio to recognize sound live with a callback. This might already exist if so, I'm sorry.