How to capture ChannelTalkingStarted & ChannelTalkingFinished events in asterisk using ARI

Hello,

I am trying to do real time transcription in asterisk using python-ari and there is a delay in transcription since I am recording the files and then doing transcription, I want to know how to capture the below events
how to capture ChannelTalkingStarted & ChannelTalkingFinished events in asterisk using ARI to fire transcription and avoid delay in response.

Thanks in advance.

Regards
Chetan Jha

You set the TALK_DETECT dialplan function on the channel, which then produce ARI events. How you handle those ARI events is completely up to the library/language/etc you are using.

Thanks @jcolp that worked :smiley:

Regards
CJ