Ari talk_detect

Hi,

I am trying to use talk_detect using ARI NodeJS.
If someone already use it, can you help me to set and usse it please?:

channel.on('StasisStart', (event, chan) => {
                    chan.setChannelVar({
                        channel: chan.id,
                        variable: 'TALK_DETECT',
                        value: 'on'
                    })
                    .then(() => console.log('Talk detection activated on channel %s', chan.id))
                    .catch(err => console.error('Error activating talk detection:', err));
                });

....

this.ari.on('ChannelTalkingStart', (event, channel) => {
                        console.log('Channel is talking');
                    });

if I use variable: ‘TALK_DETECT’, or ‘FiremanSam’ I receive console.log(‘Talk detection activated on channel %s’, chan.id) and I have nothing about the talk detection on the asterisk log and of course nothing with NodeJS.

In addition,

this.ari.on('ChannelStateChange', (event, channel) => {
            console.log(event);
        });

shows the status.

Thanks a lot!

You might try changing that to ChannelTalkingStarted per the pertinent Latest API documentation.

Thanks! I will try to find where I did something wrong…I found another way to do it with the acoustic signal analysis.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.