Skip to contentSkip to navigationSkip to topbar
Page toolsOn this pageProducts used
Looking for more inspiration?Visit the

13328: Gather: Invalid maxSpeechTime value


WARNING: 13328

warning-13328 page anchor
VOICE
WARNING

Twilio raises this warning when a <Gather> request includes an invalid maxSpeechTime value. Use speechTimeout to control how long Twilio waits after a pause in speech before stopping recognition. speechTimeout accepts a positive integer or auto.

Possible causes

possible-causes page anchor
  • Your <Gather> configuration includes maxSpeechTime instead of the documented speechTimeout attribute.
  • Your speech timing value is not valid for <Gather>, such as a value that is not a positive integer or auto.
  • You set speechModel and used speechTimeout="auto", which Twilio does not support with a model selected.
  • Replace maxSpeechTime with speechTimeout in your <Gather> TwiML.
  • Set speechTimeout to a positive integer, or use auto only when you are not selecting a speech model.
  • If you use speechModel, keep speechTimeout as a positive integer and verify the final TwiML that your application sends to Twilio.

Additional resources

additional-resources page anchor