amazon-connect / ai-powered-speech-analytics-for-amazon-connect

The AI Powered Speech Analytics for Amazon Connect solution provides the combination of speech to text transcription, translation into preferred languages, and insights for agents and supervisors all in real-time
https://aws.amazon.com/solutions/implementations/ai-powered-speech-analytics-for-amazon-connect/
Other
56 stars 54 forks source link

How can I get Agent Transcript on Front End #19

Closed aman-appcino closed 3 years ago

aman-appcino commented 3 years ago

I am able to save the transcript to DDB but not able to get it on frontend. I tried to make a clone of lambda funtion ( Ai-powered-speech-analyti-wsrealtimetranscribeOnDD ) and set the trigger on tocustomer DDB but not able to get the data on frontend. I think DDB scan method returning empty array instead of transcript . can you help me with the same. what I need to do and get the agent transcript on front end.

efh365 commented 3 years ago

Hi @aman-appcino. In order to get the transcript to the frontend, you need to setup a new websocket connection or modify the existing one. This is the lambda function that is triggered when a new transcript is inserted into the DDB: https://github.com/amazon-connect/ai-powered-speech-analytics-for-amazon-connect/blob/master/source/ws_realtime_transcribe_OnDDBInsert/index.js

You can see that it sends the transcript to the API GW websocket connection that is established.

aman-appcino commented 3 years ago

Hi @efh365 , Thank you for reply . I have resolved the issue by adding trigger on table.