Extract the provider boundary while retaining OpenAI/Gemini contracts. Add an opt-in isolated Local S2S adapter, pinned engine extension, bounded component gateway and frozen effective configuration profiles. Enforce request token limits, zero retries, local asset validation, connection deadlines, disconnect ownership, bounded cleanup and signals. Include regression coverage, pinned source fixtures, operator guidance, asset fingerprints and guarded disposable PostgreSQL acceptance tooling. Preserve immutable fixture bytes across Git line-ending conversion. Validation recorded in the reports: - 74 repair, 107 combined and 242 preservation checks passed. - Fresh PostgreSQL local checks: 2 passed. - Expanded PostgreSQL: 57 passed, 6 documented baseline failures. - Compose configurations, staged whitespace and fixture hashes passed. Phase 1 live listening and Phase 2 complete engine/SDK/POSIX, real component audio and Persian browser acceptance remain pending. No operational switch, paid call, model download or Phase 3 implementation is included.
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
schema_version: 1
|
|
blocks:
|
|
vad:
|
|
kind: vad
|
|
backend: silero
|
|
settings:
|
|
smart_turn: false
|
|
max_speech_ms: 10000
|
|
min_silence_ms: 500
|
|
speech_pad_ms: 300
|
|
enable_realtime_transcription: false
|
|
stt:
|
|
kind: stt
|
|
backend: openai
|
|
settings:
|
|
openai_stt_base_url: http://127.0.0.1:8766/v1
|
|
openai_stt_api_key: local-components
|
|
openai_stt_model: {env: LOCAL_S2S_STT_MODEL}
|
|
openai_stt_language: fa
|
|
openai_stt_response_format: json
|
|
openai_stt_timeout: {env: LOCAL_S2S_REQUEST_TIMEOUT_SECONDS}
|
|
llm:
|
|
kind: llm
|
|
backend: chat-completions
|
|
settings:
|
|
model_name: {env: LOCAL_S2S_LLM_MODEL}
|
|
responses_api_base_url: http://127.0.0.1:8766/v1
|
|
responses_api_api_key: local-components
|
|
responses_api_stream: true
|
|
responses_api_disable_thinking: false
|
|
responses_api_reasoning_effort: null
|
|
compact_history: false
|
|
chat_size: 10
|
|
tts:
|
|
kind: tts
|
|
backend: openai
|
|
settings:
|
|
openai_tts_base_url: http://127.0.0.1:8766/v1
|
|
openai_tts_api_key: local-components
|
|
openai_tts_model: {env: LOCAL_S2S_TTS_MODEL}
|
|
openai_tts_voice: {env: LOCAL_S2S_TTS_VOICE}
|
|
openai_tts_sample_rate: 24000
|
|
openai_tts_response_format: pcm
|
|
openai_tts_stream: false
|
|
openai_tts_timeout: {env: LOCAL_S2S_REQUEST_TIMEOUT_SECONDS}
|
|
pipelines:
|
|
local:
|
|
num_pipelines: 1
|
|
stages: {vad: vad, stt: stt, llm: llm, tts: tts}
|
|
options:
|
|
device: cpu
|
|
enable_live_transcription: false
|
|
enable_llm_proxy: false
|
|
runtime:
|
|
log_level: critical
|
|
log_transcripts: false
|
|
torch_num_threads: 1
|
|
server: {host: 0.0.0.0, port: 8765}
|