somagk | 2024-08-21 20:46:31 UTC | #1
I am able to run the API Call /api/v2/conversations/{conversationId}/recordings?maxWaitMs=20000&formatId=WAV HTTP/1.1 Host: api.mypurecloud.com Authorization: Bearer ******* Content-Type: application/json
I need to know how to interpret the data and download it as a wav file.
tim.smith | 2024-08-21 21:39:37 UTC | #2
The response for GET /api/v2/conversations/{conversationId}/recordings documents that each recording will have a mediaUris property. Use whatever code is appropriate for your programming language for downloading files from those URIs.
somagk | 2024-08-22 21:49:25 UTC | #3
Thank you, Tim. I am able to get the recordings, but I am getting either the agent side recording or the customer side recording. Is there an API which gives me the complete conversation recording of both agent and customer combined?
Oddnitive | 2024-08-25 01:17:25 UTC | #4
Hello Somagk,
The reason you get two files is because your Sip trunks are set to Dual Channel. Try :
- Use the batch api instead /api/v2/recording/batchrequests. (This is significant slower designed for big export)
or
- Set trunks to single channel
or
- You can use a python 3rd party library to merge the files after download and create one audio file.
Best Regards OT
Vineet_Kakroo | 2024-09-14 07:03:33 UTC | #5
Hi @somagk , Our setup is also dual channel set to OPUS, and I am able to download a single file using the API. I am using the job API’s to download as OPUS and then I use tools like ffmpeg to convert to wav.
Hope this helps, unless you have found a way already to get what you want. Regards
system | 2024-10-14 07:04:12 UTC | #6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 28050