21234: Invalid Machine Detection configuration value
VOICE
ERROR
Twilio returns this error when the MachineDetection value in a Voice request is not one of the supported AMD values, or when one of the optional AMD tuning parameters falls outside its allowed range. AMD is supported on the Calls API, Participants API, <Dial><Number>, and <Dial><Sip>.
MachineDetectionis set to a value other thanEnableorDetectMessageEnd.- One or more AMD tuning parameters is outside its allowed range:
MachineDetectionTimeout,MachineDetectionSpeechThreshold,MachineDetectionSpeechEndThreshold, orMachineDetectionSilenceTimeout.
- Set
MachineDetectiontoEnablefor early human or machine detection, or toDetectMessageEndif you need to wait for the end of a voicemail greeting. - Keep AMD tuning parameters within their supported ranges:
MachineDetectionTimeoutbetween3and59,MachineDetectionSpeechThresholdbetween1000and6000,MachineDetectionSpeechEndThresholdbetween500and5000, andMachineDetectionSilenceTimeoutbetween2000and10000.