revert: cloudonix amd (#183)

This commit is contained in:
Sabiha Khan 2026-03-07 09:56:04 +05:30 committed by GitHub
parent 819f8c64c6
commit e4759ac6f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 188 deletions

View file

@ -13,50 +13,6 @@ FILLER_SOUND_PROBABILITY = 0.0
VOICEMAIL_RECORDING_DURATION = 5.0
# Cloudonix Answering Machine Detection (AMD) constants
# Ref: https://developers.cloudonix.com/Documentation/apiWorkflow/callControlAndSessionManagement#answering-machine-detection-results
# Enables AMD and waits for the full voicemail greeting to finish before reporting a result.
# Alternative: "Enable" — ends detection immediately upon determination.
AMD_MACHINE_DETECTION = "DetectMessageEnd"
# Runs AMD in the background while the call continues, posting results to asyncAmdStatusCallback.
# Default: disabled (False).
AMD_ASYNC = True
# HTTP method used when Cloudonix posts the AMD result to the callback URL.
# Allowed: "POST" or "GET". Default: "POST".
AMD_CALLBACK_METHOD = "POST"
# Maximum seconds to wait for a determination before returning "unknown".
# Range: 359 seconds. Default: 30.
AMD_MACHINE_DETECTION_TIMEOUT = 30
# Minimum greeting duration (ms) expected from an answering machine.
# Range: 10006000 ms. Default: 2400.
AMD_MACHINE_DETECTION_SPEECH_THRESHOLD = 2400
# Duration of silence (ms) after speech that confirms the greeting has ended.
# Range: 5005000 ms. Default: 1200.
AMD_MACHINE_DETECTION_SPEECH_END_THRESHOLD = 1200
# Maximum wait (ms) for any audio after the call is answered before timing out.
# Range: 200010000 ms. Default: 5000.
AMD_MACHINE_DETECTION_SILENCE_TIMEOUT = 5000
# Cloudonix AMD final result values
MACHINE_END_SILENCE = "machine_end_silence"
MACHINE_END_OTHER = "machine_end_other"
HUMAN = "human"
UNKNOWN = "unknown"
# Final (non-interim) AMD result values — only these are stored in gathered context.
AMD_FINAL_RESULTS = {MACHINE_END_SILENCE, MACHINE_END_OTHER, HUMAN, UNKNOWN}
# When enabled, Cloudonix calls answered by an answering machine are automatically hung up.
AMD_HANGUP_ENABLED = os.getenv("AMD_HANGUP_ENABLED", "false").lower() == "true"
# Configuration constants
ENABLE_TRACING = os.getenv("ENABLE_TRACING", "false").lower() == "true"