From c948013a36dabdbbe6e77b03a5e9a5fd5c40aa60 Mon Sep 17 00:00:00 2001 From: Vuong Hoang Date: Thu, 9 Jul 2026 00:58:13 -0700 Subject: [PATCH] feat(gateway-chat): auto-voice quoted dialogue via mOrpheus TTS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gateway-chat now auto-plays quoted text from each assistant reply through the mOrpheus TTS endpoint. Sidebar gains a 🔊 toggle + endpoint/voice fields (persist in localStorage, prefilled to irv-ml1:8299 / baddy). On reply-complete, straight and typographic double quotes are extracted, joined, POSTed to /tts, and the returned WAV plays (click 🔊 to replay; a new reply interrupts the prior clip). Requires CORS on the wrapper (page served from ana-docker:8091 fetches irv-ml1:8299 cross-origin) — added CORSMiddleware(allow_origins=[*]) to the mOrpheus tts app (internal- only endpoint). Verified end-to-end: preflight + POST return ACAO=*, valid 24kHz WAV. Deployed: tts container rebuilt/recreated on irv-ml1; page pushed to ana-docker conf (bind-mounted, live on next request). --- stacks/gateway-chat/conf/index.html | 43 +++++++++++++++++++++++++++-- stacks/mOrpheus/tts/app.py | 5 ++++ tools/gateway-chat.html | 43 +++++++++++++++++++++++++++-- 3 files changed, 87 insertions(+), 4 deletions(-) diff --git a/stacks/gateway-chat/conf/index.html b/stacks/gateway-chat/conf/index.html index f15cdff..821c91d 100644 --- a/stacks/gateway-chat/conf/index.html +++ b/stacks/gateway-chat/conf/index.html @@ -67,7 +67,11 @@
-
Settings persist locally. No tools field is ever sent. Reasoning models show their reasoning_content above the answer.
+ + + + +
Settings persist locally. No tools field is ever sent. Reasoning models show their reasoning_content above the answer. With 🔊 on, quoted text in each reply auto-plays via mOrpheus (irv-ml1, internal).
@@ -81,10 +85,15 @@