Cancel word not working on Demo
Closed this issue · 1 comments
brunoatvenosa commented
Hi!
I follow the instructions for running the Demo and it works great! Thanks to uezo e all contributors!
I am having a minor issue with the cancel word where the prompt will keep [Listening...] event after the Cancel Word is identified
The goodbye response comes duplicated and then a hello response triggers [Listening...]
I don't know how to debug this to give adicional information, any help is appreciated.
Thank you guys!
uezo commented
Hi @brunoatvenosa ,
I reproduced the situation where the cancel word doesn't work👍
The found that the recognized text ends with "\n".
I will fix this issue in next update by replacing trailing \n and trimming before evaluate cancel words.
If you want a quick fix, change the code as following:
to
var text = request.Text.Replace("\n", "").Trim();