Giter VIP home page Giter VIP logo

Comments (12)

efh365 avatar efh365 commented on September 25, 2024 1

Hi, yes you can do this. First, you need to enable streaming to and from the customer in the contact flow by using the Start Media Streaming block. Then you need to update the KvsTrigger Lambda function to set the boolean to true for both directions. Then you should see the audio stream to the customer being transcribed into the DDB for the ToCustomer audio stream.

from ai-powered-speech-analytics-for-amazon-connect.

tamdilip avatar tamdilip commented on September 25, 2024

Thanks for the response 🙂. Yes I did the same and it worked as u said. Looks like I have to set the lambda trigger function for agent segment table too to send it in the socket response on DB insert. Will try that, as I was expecting e2e transcription on both voices ✌️.

from ai-powered-speech-analytics-for-amazon-connect.

YogeshDhana avatar YogeshDhana commented on September 25, 2024

@efh365 , @tamdilip, Is there any way I can show the Agent transcribe on the front end. If so could you please tell me? Thanks.

from ai-powered-speech-analytics-for-amazon-connect.

efh365 avatar efh365 commented on September 25, 2024

Yes, you can copy the setup for the customer side transcript for the agent side transcript. In short, there is a websocket established on the front end and whenever there is a write to the DDB, the messages are pushed to the API Gateway websocket API and received on the front end.

from ai-powered-speech-analytics-for-amazon-connect.

YogeshDhana avatar YogeshDhana commented on September 25, 2024

@efh365 Thanks for the reply, I tried the same, but couldn't able to achieve it. Could you please show me an example or could you please tell me the method for Agent?

from ai-powered-speech-analytics-for-amazon-connect.

YogeshDhana avatar YogeshDhana commented on September 25, 2024

@efh365 I have enabled to Stream both Agent and Customer audio, I can also able to store the transcript of Agent and Customer in DDB. But I couldn't able to find the method to show the Agent transcripts on the front end. Kindly help me on this please

from ai-powered-speech-analytics-for-amazon-connect.

efh365 avatar efh365 commented on September 25, 2024

Sorry, let me clarify. The pieces needed to pass the agent transcript to the front end are not a part of this solution. However, you can follow the same pattern that is used to pass the customer transcript to the front end (using a websocket API Gateway endpoint and subscribing to that websocket on the front end). You will need to configure that yourself, but you have the pattern available through this solution.

from ai-powered-speech-analytics-for-amazon-connect.

YogeshDhana avatar YogeshDhana commented on September 25, 2024

@efh365 Thank you. I made a workaround, It worked. Thanks again for the wonderful response.

from ai-powered-speech-analytics-for-amazon-connect.

aman-appcino avatar aman-appcino commented on September 25, 2024

@YogeshDhana can you help me with the same..
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 function ( 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.

from ai-powered-speech-analytics-for-amazon-connect.

YogeshDhana avatar YogeshDhana commented on September 25, 2024

@aman-appcino Please check whether the transcript is enabled for both agent and the customer. If not enable the transcripts to both and set the same trigger to both customer and the agent DDB.

from ai-powered-speech-analytics-for-amazon-connect.

aman-appcino avatar aman-appcino commented on September 25, 2024

@YogeshDhana
Thank you for reply.
The transcript is enabled for both agent and the customer . and the trigger is set on both agent and customer DDB.
The values are stores in agent table as well but unable to them on frontend using websocket.

from ai-powered-speech-analytics-for-amazon-connect.

YogeshDhana avatar YogeshDhana commented on September 25, 2024

@aman-appcino You have to work around with Lambda functions to get the transcripts through WebSocket messages. Please take a look at the kvs_transcribe_streaming_lambda and ws_realtime_transcribe_OnMessage lambda functions

from ai-powered-speech-analytics-for-amazon-connect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.