drachtio / drachtio-freeswitch-modules

A collection of open-sourced freeswitch modules that I use in various drachtio applications
MIT License
176 stars 119 forks source link

mod_aws_lex audio chunk problem with lex v2 #104

Open andreabat opened 1 year ago

andreabat commented 1 year ago

Hi, trying out the module for lex, when launching the sample lex-phone-gateway application, the message

Invalid Request: The audio chunk size 1920 bytes is larger than the maximum allowed size of 320 bytes. Split the audio into smaller chunks and try your request again.

is received. Can someone help me out and point me in the right direction ( if I'm doing something wrong) or if the module is simply not working on lex v2 ?

davehorton commented 1 year ago

can you provide a full freeswitch log at debug

andreabat commented 1 year ago

Here it is.

aws_lex_debug.log

davehorton commented 1 year ago

The issue seems to be that we queue incoming audio that collects while we are trying to connect to lex, and then we send it through in one go after the connection. I feel like this used to work, but anyways I guess we have to throttle it. I hope to have time to fix this in the next week