We have requirement where we ask user for description of issue, it can be long some time. So to gather it we have extended speechTimout to "6" but in some scenario it can be a short so we want to have option where user can press key "1" once he finishes to avoid unnecessary waiting time.
We have provided message to user "Please provide a brief description of your issue. press "1", once you finished"
below is the code
this.twilioService.gather(message, {
...this.getGatherAttributes(gatherAttrs),
finishOnKey: '1',
input: ['speech', 'dtmf'],
timeout: 3,
numDigits: 1,
speechTimeout: 6})
but even if user pressed "1" from keypad gather does not stop and call action, instead it wait for long time (6 sec).