Hello,
I am working on a stasis nodejs IVR application.
I have set TALK_DETECT in the dialplan before the Stasis(), as below, which did enable me to set “channel.on(‘ChannelTalkingStarted’, gotTalkStart)” successfully, and I am getting the events.
However, it seems that my system is very sensitive to noise, and I would like to adjust to only detect the talking about a certain volume threshold. A “certain AI applicatilon” advised that I can set values for “Voice Activity Detection” in the pjsip config, but I do not see any such option anywhere in Freepbx 16, so perhaps the AI is out to lunch…
As a second related topic, once I detect speech and start recording I see that am getting files like
RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
You can see below that I thought that setting set(FILE()) valuse might help, but it did not.
Any help would be appreciated on these items.
Thank you
Mattis
exten => 1003,1,NoOp(entering ${CONTEXT} as defined in extensions_custom.conf)
same => n,Set(DENOISE(rx)=on)
same => n,Set(TALK_DETECT(set)=1800,2000) ; Perform talk detection on the denoised received audio
same => n, Set(FILE(codec)=wav)
same => n, Set(FILE(audioformat)=wav)
same => n, Set(FILE(samplerate)=44100)
same => n, Set(FILE(bitrate)=256000)
same => n,Answer()
same => n,Stasis(srec, 2350)