noopkat / ms-bing-speech-service

NodeJS service wrapper for Microsoft Speech API and Custom Speech Service
MIT License
82 stars 17 forks source link

The sample code don't terminate after recognition. #28

Closed hs7772667 closed 6 years ago

hs7772667 commented 6 years ago

Hi noopkat,

Thanks for this very useful library. I was trying out the async/await sample code to sendfile to my custom speech service and I got the recognized text of the audio back. But the process does not exit by itself, it stays alive even after the recognizer is stopped.

noopkat commented 6 years ago

Hi @hs7772667 thanks for reporting this issue. I did some investigation and fixed a pretty glaring bug to do with the recognizer's stop method. I've tested it on my end and it now exits the process as expected. I have published a new version with this patch.

Feel free to reopen this issue if the problem still persists for you. Thanks again for reporting - it really helps to know when my stuff is broken so that a fix can be promptly implemented 😄

bitmoji