Skip to content

Feasibility on fetching audio from Kinesis from both user and agent during real time IVR voice conversation and process speech-to-speech translation

1

Hi Team, We have an IVR setup implemented using Amazon Connect and we also have enabled data streaming using Amazon Kinesis. I'm looking for a feasibility for speech to speech translation in a real time IVR voice call that happens between customer and support agent. Assume we have a customer speaking (spanish) language and agent speaking (german) language. If they both are connected via voice call, it would be interesting that speech to speech translation occurs in real time between customer and support agent. More like an Interpreter inbetween them and converting the speech in realtime. So when user speaks in spanish, the AI service should transcribe, translate and output updated audio to support agent and vice versa happens from agent to user.

I would like to understand how feasible is this ? If feasible, can you please suggest some starting point ? what are the downsides ? How the latency will be ? Instead of AI services, can we plug some bot as a middleman between user and support agent where the bot listens the user sound > performs translation > play audio to agent and vice versa from agent ?

Regards, Vinoth

1 Answer
0

Hi Vinoth,

It would be feasible to do what you are asking, but probably impractical. I would challenge you to think about the end user experience of this. The pipeline from audio to transcription to translation would add up to be a significant round-trip time. Delay from the PSTN, delay from transcription, delay from translation, and delay from converting that translated text back into voice would all be introduced, in addition to the accuracy for all of these steps.

There is also no mechanism to stream audio back into the agent-customer interaction with Connect. The only way I can think of to accomplish this would be A. Using a customer hold flow and playing a custom prompt, which would be an awkward experience for the agent (although could be smoothed out via a custom CCP / agent desktop implementation), or B. Having something on the agent's desktop / browser able to inject audio into the microphone stream, which would require some heavy engineering work.

I would recommend you instead explore a chat implementation for your customers, which would provide a faster and more natural experience. You can explore this blog post to learn more about the architecture: https://aws.amazon.com/blogs/machine-learning/implement-live-customer-service-chat-with-two-way-translation-using-amazon-connect-and-amazon-translate/.

Happy building!

AWS
EXPERT

answered 3 years ago

  • Thanks for the response. Yeah, I too agree if we introduce middleware services such as (transcription, translation, speech), we will obviously endup with lot of concerns around latency and accuracy. I have few doubts.

    1. In your point A, how we can set the customer or agent onhold via Flow blocks. Meaning once the customer is connected to agent in a voice call, customer starts speaking to agent. once the customer stops speaking, how we can dynamically set customer-onhold to (fetch audio > get transcription > translation > play updated audio prompt to agent) and similarly how we can dynamically set agent-onhold when agent stops speaking to customer. My understanding might be wrong here. please correct.

    2. assume Kinesis data streaming is enabled on Amazon connect flow. In such case, how fast we can access the kinesis audio stream from customer and agent in a voice call. Meaning, once call is connected, customer will be speaking to agent {how fast we can access this audio from customer once he stops speaking} after listening, agent will be replying back to customer {how fast we can access this audio from agent} Or is that the opposite way like we can only get the audio once the full voice call is completed ?

    3. do we have any kinesis events available during voice call which we can listen using eventbridge to get customer audio and agent audio ?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.