node-tjbotlib icon indicating copy to clipboard operation
node-tjbotlib copied to clipboard

tjbot listen doesn't resume after hit the 100MB

Open leandrodvd opened this issue 9 years ago • 1 comments

When I get the error "Payload exceeds the 104857600 bytes limit" I believe it is expected that tjbot will automatically restart the mic and stt connection and keep listening. This is not happening though.

I found a possible solution. Adding self.stopListening(); to the error handler of _micTextStream inside listen method.

This way I believe the process running the microphone record will stop and all the resources becomes free for a mic restart (the code for mic restart seems to be already in place).

I'll try to send a pull request with this proposed fix.

leandrodvd avatar Aug 16 '17 22:08 leandrodvd

Created a pull request for this issue. https://github.com/ibmtjbot/tjbotlib/pull/32

Hope someone can accept it.

leandrodvd avatar Aug 16 '17 23:08 leandrodvd