node-tjbotlib
node-tjbotlib copied to clipboard
tjbot listen doesn't resume after hit the 100MB
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.
Created a pull request for this issue. https://github.com/ibmtjbot/tjbotlib/pull/32
Hope someone can accept it.