feat(voice): implement local S2S responsiveness candidate and direct TTS routing

Add local S2S responsiveness candidate pinning ASR options and sentence-at-a-time generation. Route speech synthesis directly to OpenAI API for fluent Persian phonetics with gpt-4o-mini-tts-2025-12-15. Add responsiveness, budget carry, and browser watch unit tests along with acceptance benchmarks and evaluation evidence.
This commit is contained in:
amirhosein mazaheri
2026-10-17 13:02:41 +03:30
parent a94b8cd3ea
commit 628aec8def
40 changed files with 1568 additions and 70 deletions
+4 -3
View File
@@ -1,4 +1,4 @@
"""Real DB local profiles retain replay/owner/revocation authority."""
"""Real DB local profiles retain replay/owner/revocation authority."""
from uuid import UUID, uuid4
from sqlalchemy import text
import pytest
@@ -6,11 +6,12 @@ from tests.integration.test_phase2_postgres import seeded_env
from tests.unit.test_local_s2s_phase2 import local_config
def test_local_profile_replay_never_rewrites_frozen_components(seeded_env):
@pytest.mark.parametrize('responsive',[False, True])
def test_local_profile_replay_never_rewrites_frozen_components(seeded_env,responsive):
e = seeded_env
cid = UUID(e.lifecycle.create_conversation(e.user, uuid4())['id'])
request = uuid4()
config = local_config()
config = local_config(local_s2s_responsive=responsive)
first = e.lifecycle.create_live_session(e.user, cid, request, provider='local_s2s',
model=config.selected_model, execution_profile=config.profile())
sid = UUID(first['session_id'])