If you know the telephony bot session id, you can use this API to get the information about the session: GET /auvr/{ivrSid}
The field to look for in the response is saSessionId - this is the Id of the Speech Analytics session that has been used to transcribe the recording - note that this means that right now the only way to get access to recordings is to have them transcribed - you will not be able to access audio recordings via the API unless they also have been transcribed [this will change in the near future - we will also provide access to recording without transcription].
Then you use the saSessionId in the API method: GET /sa/{saSessionId}/data?audio=true which returns the results of SpeechAnalytics including the audio reference.
In the response we need the field: multiChannelAudio
This field we can then use in the API method: GET /data/{multiChannelAudio}/file to download the wav audio file of the recording.
Comments
0 comments
Please sign in to leave a comment.