To get the transcripts, you are going to have to use:
/api/v2/speechandtextanalytics/conversations/{ConversationId}/communications/{CommunicationId}/transcripturl
That will return a URL with a token: https://prod-us-east-1-transcript.s3.amazonaws.com/transcriptsCache/f8b96a0a-b8a8-4fea-a4f0-9348834ef112/736bf9e7-28e3-46cf-b567-819faada0e5f/db6d84cc-a599-4f67-957b-4205b6d43862-transcripts?X-Amz-Security-Token=IQoJb3JpZ2luX2VjELD%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJIMEYCIQCyZqA1Aih7x3n8FWSKh%2F8pm1Cd5PhbwCn4bHYc2iVY5AIhAKELUJzXtsX18IoaK2eM5nXYmcQDiGBFiOBL3JJXJjNkKoMECJn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQABoMNzY1NjI4OTg1NDcxIgzsaTe5lJbL59O8MRMq1wNbzGkeiClcPbd0xRPghgOzDJ7T0mby6hjPjM7jF9BePFJ%2F3f7JHMjx1cvf0QqDtrQvlztRBEalw%2Fxy%2BCXVxts%2FY1GuI%2F6v27NqQNAuQTkIVFf7026PBY6CU6kMzYvm5L5ZfpAbOm0EQ48FZxQNF5GwEF5tqZFbViZ4eesRefmsHN6GYMDCHi788yqlugNsh6dV5ZPjIe96eOy%2BgQ%2F672CvwcJDSriKKxGqbMRan9RmCzcAOIOmZkA4YpR%2FdV04mmP9psWnRLn3GbD33%2FdAtmhuZPpt587ysQt7luG0YN3GfdtqhgpLTHKA%2BDIm99sd0GYHdQfVIVS6j2eievI%2BuRgTA%2BAE4G4dSn%2FPCqEyXgjRqLTucGM9edlMOuTq8L%2Bu%2BaIdtdWURPWz2gtmLWmu3QpvHWrSbHQrB3pka%2FmI5RHjTb0q3tx6HXl9TDLZEiI%2FAS45uBNVZT6PxNRUjMLazKqODJzFMiDtl%2BlPMoiUQ41BC1lVQEsgUNvoYZfLkUh6L%2FeOEI8Yazv2T5pNn2kqkFf%2FeRlV5kKMjzn6G%2FHaJmxvtouARumRF9g%2BmODNnD2iDWY1qAZiu%2BvVYBrdwSZrAzK6aS%2B1QjFNIbizBbe2H9NSazXXGKK3iuAw4ZXvjQY6pAG%2FIOryvbOheX2B%2BU1Mp66zVBJVxKVylrZAzOky1Aoe%2BLIR4cp%2BsGPbO8%2BWDjUjqiLE26jSbma5IRJeT9EpIa75%2FHq8BcZwxpwY%2BX2rUgAsmz9HwImPH%2F%2BhWbwpwPRBrZSQAHL4%2FCInUzFNkBKJyMz40aOCyahsftgbkSv0MpMwUbXt1b2mEvj3pT8%2BDMVhmyRoA9ehhq%2B4zdLUOVCXlT8AWZRoQA%3D%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20211217T002248Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Credential=ASIA3EQYLGB7UB3CGY4R%2F20211217%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=d43a50da5a09bf360851a1f69a31bf70eafc0be09a33af865fa8be769f85b721
That returns the transcript:
{"organizationId":"f8b96a0a-b8a8-4fea-a4f0-9348834ef112","conversationId":"736bf9e7-28e3-46cf-b567-819faada0e5f","communicationId":"db6d84cc-a599-4f67-957b-4205b6d43862","transcripts":[{"transcriptId":"cfc10a62-b906-434d-a571-bb7c34a19a5d","language":"en-us","programId":"4df32b35-5e11-4d74-a771-3fc3fa7bca07","startTime":1639690748819,"phrases":[],"analytics":{"acoustics":[{"eventType":"ivr","offsetMs":39,"startTimeMs":1639690748741,"durationMs":13874,"participant":"internal"},{"eventType":"acd","offsetMs":64339,"startTimeMs":1639690813041,"durationMs":4332,"participant":"internal"}]}},{"transcriptId":"0376d19f-f1e0-4c43-920a-b38b9e501636","language":"en-us","programId":"4df32b35-5e11-4d74-a771-3fc3fa7bca07","engineId":"dfaa","startTime":1639690762505,"duration":{"milliseconds":47500},"phrases":[{"text":"and let's say at this point I want to let you know I'm asking some questions and I realize this is meant for someone else","confidence":0.7081727385520935,"startTimeMs":1639690765159,"duration":{"milliseconds":10200},"words":
You will have to search through this for the "text" attributes and put that together for a transcript.
The sentiment score is an average of the values on a -100 to +100 score starting at 0.
------------------------------
Robert Wakefield-Carl
Avtex Solutions, LLC
Contact Center Innovation Architect
robertwc@avtex.comhttps://www.Avtex.comhttps://RobertWC.Blogspot.com------------------------------
Original Message:
Sent: 12-17-2021 02:46
From: Shreenath Gandhi
Subject: Speech And Text Analytics API: Phrases and Sentiment Trend
Hi everyone,
I needed help understanding the response from speech and text analytics apis.
The first one is regarding phrases
What is the difference between the phrases I fetch using /api/v2/speechandtextanalytics/sentimentfeedback

and the phrases I fetch using /api/v2/speechandtextanalytics/topics/{topicId}

Both seem to give me list of phrases with no relation to the conversations.
Also is there anyway I can fetch the phrases for each conversation? That is I want to know what phrases occurred during a particular conversation.
My second question is regarding Sentiment Trend from /api/v2/speechandtextanalytics/conversations/{conversationId}
What is the range of values for Sentiment Trend? Does it range from -1 to +1?
#Reporting/Analytics
#Unsure/Other
------------------------------
Shreenath Gandhi
Probe Group Pty Ltd
------------------------------