zaf / asterisk-speech-recog

Speech recognition script for Asterisk that uses google's speech engine.
GNU General Public License v2.0
249 stars 132 forks source link

variable silence #46

Closed ramin-git closed 6 years ago

ramin-git commented 6 years ago

Hi. I can not find where and how is using $silence.

zaf commented 6 years ago

$silence is passed as parameter to 'RECORD FILE' AGI command to set the number of seconds of silence allowed before the function returns despite the lack of dtmf digits or reaching timeout. https://wiki.asterisk.org/wiki/display/AST/AGICommand_RECORD+FILE

You can see that in the AGI script in line 190