Im using the SpeechToText Api to get the transcript details of the call. We would like to calculate the acoustics results like agentSpeechDuration, customrSpeechDuration etc, from this api
We are calling the below api, with the relevant convid and communicationid. https://api.mypurecloud.com/api/v2/speechandtextanalytics/conversations/cad****/communications/a84b****/transcriptUrls
From this response, we wanted to calculate the agent talk duration, silence, duration,etc. But the values don't match with the values displayed in the Genesys interface.
Could you please help us to interpret the data correctly.
"acoustics": [
{
"eventType": "voice",
"offsetMs": 20860,
"startTimeMs": 1741177931541,
"durationMs": 480,
"participant": "internal"
},
{
"eventType": "voice",
"offsetMs": 23200,
"startTimeMs": 1741177933881,
"durationMs": 2320,
"participant": "internal"
},
{
"eventType": "silence",
"offsetMs": 25520,
"startTimeMs": 1741177936201,
"durationMs": 3660,
"participant": "both"
},.....