fix: ensure emotive ack rotation and prebaked ack caching apply outside v2 queue eligibility
deploy / deploy (push) Successful in 30s
deploy / deploy (push) Successful in 30s
This commit is contained in:
@@ -859,11 +859,14 @@ def test_push_voice_ai_telephony_event_call_ended_returns_detached_safe_payload(
|
||||
|
||||
def test_media_registration_emotive_ack_rotation_is_not_gated_on_v2_queue_eligibility(monkeypatch):
|
||||
# AI_VOICE_V2_QUEUE_CODES defaults to "voice_lab_ai" only, so a queue outside
|
||||
# that allowlist runs the plain v1 ack path. Emotive-ack rotation must still
|
||||
# apply there — otherwise every filler collapses to the single fixed
|
||||
# "Секунду." fallback string instead of rotating through phrase variants.
|
||||
# that allowlist runs the plain v1 ack path. Emotive-ack rotation and prebaked-ack
|
||||
# caching must still apply there — otherwise every filler collapses to the single
|
||||
# fixed "Секунду." fallback string instead of rotating, and gets synthesized live
|
||||
# via ElevenLabs each time instead of served from the pre-cached ack bank, adding
|
||||
# real TTS round-trip time to the one phrase whose job is to hide that latency.
|
||||
monkeypatch.delenv("AI_VOICE_V2_QUEUE_CODES", raising=False)
|
||||
monkeypatch.delenv("AI_VOICE_V2_EMOTIVE_ACK_ENABLED", raising=False)
|
||||
monkeypatch.delenv("AI_VOICE_V2_PREBAKED_ACK_ENABLED", raising=False)
|
||||
row = VoiceAISessionRow(
|
||||
session_id="avs_runtime_emotive_ack_v1",
|
||||
call_id="call_runtime_emotive_ack_v1",
|
||||
@@ -879,3 +882,4 @@ def test_media_registration_emotive_ack_rotation_is_not_gated_on_v2_queue_eligib
|
||||
|
||||
assert registration.voice_v2_enabled is False
|
||||
assert registration.voice_v2_emotive_ack is True
|
||||
assert registration.voice_v2_prebaked_ack is True
|
||||
|
||||
Reference in New Issue
Block a user