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:
@@ -31,6 +31,11 @@ def active_components(unit, expected):
|
||||
tts=dict(backend='openai', model=tts.model, voice=tts.voice,
|
||||
response_format=tts.response_format, sample_rate=tts.sample_rate),
|
||||
request_timeout_seconds=stt.timeout)
|
||||
if 'speed' in expected['tts']:
|
||||
actual['tts']['speed'] = tts.speed
|
||||
if 'temperature' in expected['stt']:
|
||||
actual['stt'].update(temperature=stt.gen_kwargs.get('temperature'), prompt=stt.gen_kwargs.get('prompt'))
|
||||
actual['llm']['stream_batch_sentences'] = llm.stream_batch_sentences
|
||||
if (actual != expected or tts.timeout != stt.timeout or llm.request_timeout_s != stt.timeout
|
||||
or stt.base_url != 'http://127.0.0.1:8766/v1' or tts.base_url != stt.base_url
|
||||
or str(llm.client.base_url).rstrip('/') != stt.base_url
|
||||
|
||||
Reference in New Issue
Block a user