@@ -77,8 +77,9 @@ def initiate_ai_call(
7777 conversation_callback_method : Literal ["GET" , "POST" ] | Omit = omit ,
7878 conversation_callbacks : SequenceNotStr [str ] | Omit = omit ,
7979 custom_headers : Iterable [texml_initiate_ai_call_params .CustomHeader ] | Omit = omit ,
80- detection_mode : Literal ["Premium" , "Regular" ] | Omit = omit ,
80+ detection_mode : Literal ["Premium" , "Regular" , "PremiumCallScreening" ] | Omit = omit ,
8181 machine_detection : Literal ["Enable" , "Disable" , "DetectMessageEnd" ] | Omit = omit ,
82+ machine_detection_prompt_end_timeout : int | Omit = omit ,
8283 machine_detection_silence_timeout : int | Omit = omit ,
8384 machine_detection_speech_end_threshold : int | Omit = omit ,
8485 machine_detection_speech_threshold : int | Omit = omit ,
@@ -164,10 +165,15 @@ def initiate_ai_call(
164165 custom_headers: Custom HTTP headers to be sent with the call. Each header should be an object
165166 with 'name' and 'value' properties.
166167
167- detection_mode: Allows you to choose between Premium and Standard detections.
168+ detection_mode: Allows you to choose between Regular, Premium, and PremiumCallScreening
169+ detections. See
170+ https://developers.telnyx.com/docs/voice/programmable-voice/answering-machine-detection
168171
169172 machine_detection: Enables Answering Machine Detection.
170173
174+ machine_detection_prompt_end_timeout: Silence duration threshold after a call screening prompt before ending prompt
175+ detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
176+
171177 machine_detection_silence_timeout: If initial silence duration is greater than this value, consider it a machine.
172178 Ignored when `premium` detection is used.
173179
@@ -266,6 +272,7 @@ def initiate_ai_call(
266272 "custom_headers" : custom_headers ,
267273 "detection_mode" : detection_mode ,
268274 "machine_detection" : machine_detection ,
275+ "machine_detection_prompt_end_timeout" : machine_detection_prompt_end_timeout ,
269276 "machine_detection_silence_timeout" : machine_detection_silence_timeout ,
270277 "machine_detection_speech_end_threshold" : machine_detection_speech_end_threshold ,
271278 "machine_detection_speech_threshold" : machine_detection_speech_threshold ,
@@ -392,8 +399,9 @@ async def initiate_ai_call(
392399 conversation_callback_method : Literal ["GET" , "POST" ] | Omit = omit ,
393400 conversation_callbacks : SequenceNotStr [str ] | Omit = omit ,
394401 custom_headers : Iterable [texml_initiate_ai_call_params .CustomHeader ] | Omit = omit ,
395- detection_mode : Literal ["Premium" , "Regular" ] | Omit = omit ,
402+ detection_mode : Literal ["Premium" , "Regular" , "PremiumCallScreening" ] | Omit = omit ,
396403 machine_detection : Literal ["Enable" , "Disable" , "DetectMessageEnd" ] | Omit = omit ,
404+ machine_detection_prompt_end_timeout : int | Omit = omit ,
397405 machine_detection_silence_timeout : int | Omit = omit ,
398406 machine_detection_speech_end_threshold : int | Omit = omit ,
399407 machine_detection_speech_threshold : int | Omit = omit ,
@@ -479,10 +487,15 @@ async def initiate_ai_call(
479487 custom_headers: Custom HTTP headers to be sent with the call. Each header should be an object
480488 with 'name' and 'value' properties.
481489
482- detection_mode: Allows you to choose between Premium and Standard detections.
490+ detection_mode: Allows you to choose between Regular, Premium, and PremiumCallScreening
491+ detections. See
492+ https://developers.telnyx.com/docs/voice/programmable-voice/answering-machine-detection
483493
484494 machine_detection: Enables Answering Machine Detection.
485495
496+ machine_detection_prompt_end_timeout: Silence duration threshold after a call screening prompt before ending prompt
497+ detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
498+
486499 machine_detection_silence_timeout: If initial silence duration is greater than this value, consider it a machine.
487500 Ignored when `premium` detection is used.
488501
@@ -581,6 +594,7 @@ async def initiate_ai_call(
581594 "custom_headers" : custom_headers ,
582595 "detection_mode" : detection_mode ,
583596 "machine_detection" : machine_detection ,
597+ "machine_detection_prompt_end_timeout" : machine_detection_prompt_end_timeout ,
584598 "machine_detection_silence_timeout" : machine_detection_silence_timeout ,
585599 "machine_detection_speech_end_threshold" : machine_detection_speech_end_threshold ,
586600 "machine_detection_speech_threshold" : machine_detection_speech_threshold ,
0 commit comments