Asterisk app Record and silence timers

Hello,

The Asterisk app Record have a parameter silence that stops the recording and returns a result when its configured seconds have elapsed after a sound has been detected. However, this timer is applied both before and after a sound or voice has been recognised.

Has anyone been able to do a work-around using Record or any other app or technique to be able to differentiate the before-sound and after-sound silence timer?

For an example we would want the Record to support 5s of silence before a voice or sound has been detected, but only 2 seconds after. With its current setting this is impossible. With a setting of 5 seconds it would allow: ~5 seconds of silence - audio input - ~5 seconds of silence

The whole purpose of what I am trying to achieve is to give the customer more time to think about an answer, but once answered we should return the result as quick as possible. Some customers are quick, some needs more time. Hence I cannot ask the question then use a Wait().

Looking forward for your answers.

I’m new to Asterisk, but I am a slow talker. Sometimes 10-15 seconds pass between my phrases. I have heard prompts like, “Would you like more time?”