On Wed, Mar 17, 2021 at 6:52 PM mayamatakeshi <mayamatakeshi@gmail.com> wrote:
Hi, I'm trying play_and_detect_speech with an ESL app but START-OF-INPUT doesn't interrupt the TTS being played. Is this expected? ( https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+play_and... is not clear about it) Or maybe I need to set some channel variable for this to work.
Hi, My app is a fork of https://github.com/plivo/plivoframework I debugged FS code and found the cause of the problem: I verified that the DETECTED_SPEECH events (including the one with Speech-Type begin-speaking) were not being fired. This was because my app was not setting this variable: https://freeswitch.org/confluence/display/FREESWITCH/fire_asr_events Then I set fire_asr_events=true but still the prompt didn't get interrupted by speech. Then I checked how FS code was fetching (dequeuing) events and I realized it checks for divert_events. Then I changed my app to send divert_events off in the ESL socket and after that it worked and FS stopped the prompt upon speech start. However, it is not stopping the prompt when a DTMF digit is received (it was already this way before I did the changes). So things are better but still there is something amiss.