# 13328: Gather: Invalid maxSpeechTime value

Log Level: WARNING

## Description

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

* 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.

### Possible solutions

* 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

* [Error and Warning Dictionary](/docs/api/errors)
* [TwiML Voice: `<Gather>`](/docs/voice/twiml/gather)
* [Debugging Your Twilio Application](/docs/usage/troubleshooting/debugging-your-application)
