Record user when a file is playing

I need record separate audios for whatever the user says, for reach this I am using the talk detection for start records of 3 seconds maximum and cutting on 2s of silence.

I got control of call using stasis and ARI with node througth the events. I play many audios and stop the new plays when the user start to talk but when a play is running just in time when the user start to talk the event fired for record finished return the total time of record but the silence_duration is 0, instead when it records without playing it returns silence_duration greater than 0.

I make the call using originate function from node-ari after create a channel.

How can i solve this?

Do i need pause the play before start to record?

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