MemberDecember 12, 2023 at 4:03 pm
While you can technically store the output of an audio in an SQS message in binary format, it would most likely be limited to 15 seconds per message since SQS messages have a max size of 256kB. I’d like to see a reference architecture for this as well. How many SQS queues do you use? One per Lex bot? How do the audio packets get sent to Lex? Lambda? I’d like to see sample code for that too.
AWS Documentation actually recommends using Kinesis Video Streams to manage live audio streaming in Amazon Connect. Maybe then you could pass the streaming audio data to the Lex bot?
I think this question needs to be re-visited as the explanation contains multiple architectural gaps and creates more confusion than clarifying a solution.