We were able to execute the above with Success message 200 . But we were unable to upload the specified Audio URL path "D:\testaudio.wav" . It was showing empty only Also not able to add TTS .
How can we specify the duration seconds Is that audio recorded time ?
Kindly help provide us the steps to upload the audio file using API
You cannot set the uploadUri or durationSeconds. uploadUri is the location to which you need to post the recording you want use. durationSeconds is calculated for the recording (if there is one).
To set the prompt resource's TTS, 1st do a GET to prompt/id/resource/language endpoint, then add your TTS to the object and PUT it back to the same endpoint.
When we try to upload the file using Uploaduri (tried using API explorer under https://developer.mypurecloud.com/developer-tools/#/api-explorer not using any .js )as below But we were not able to upload the prompt but we get the 200 OK Success message . Kindly provide the steps to upload the same (by API)
API explorer doesn't have the upload endpoint in it. You need to write code (in whatever language you choose) to post to the uploadUri. The body will be formdata with your file recording in it. You need to add the Authorization header to your request. You will get a 200 OK back. Purecloud will transcode the file to the appropriate format which can take a couple seconds. When it's done, the prompts/id/resources/language endpoint will show the uploadStatus as transcoded.