dograh/api/services/configuration
Flowentlabs 94dce42209
feat(tts): add websocket transport option for xAI TTS (#548)
* feat(tts): add websocket transport option for xAI TTS

xAI's pipecat service ships two implementations: XAIHttpTTSService
(batch REST, used by the existing xAI integration) and XAITTSService
(realtime WebSocket streaming). This adds a transport field on
XAITTSConfiguration ("http", default, unchanged behavior | "websocket")
and wires the latter into create_tts_service(), so live voice calls can
opt into lower time-to-first-byte streaming instead of request/response.

Originally built and battle-tested independently against v1.41.0 in a
production deployment (7 live Telnyx calls, 2026-07-15) before this PR
existed; ported onto current main and given a config toggle instead of
a second provider entry so it composes with the existing xAI HTTP path
rather than duplicating it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* refactor(tts): use websocket-only xAI TTS, drop the transport toggle

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Sabiha Khan <sabihak89@gmail.com>
2026-07-21 11:30:49 +05:30
..
options fix: fix speech to speech model transitions (#545) 2026-07-15 18:36:36 +05:30
__init__.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
ai_model_configuration.py fix: fix org scoped access for resources (#517) 2026-07-09 23:04:33 +05:30
check_validity.py feat(tts): add xAI as a Voice (TTS) provider (#476) 2026-07-08 09:05:43 +05:30
defaults.py feat: knowledge base functionality for the voice agent (#120) 2026-01-17 14:37:03 +05:30
masking.py feat: billing and credit management v2 (#429) 2026-06-12 14:55:30 +05:30
merge.py feat: billing and credit management v2 (#429) 2026-06-12 14:55:30 +05:30
registry.py feat(tts): add websocket transport option for xAI TTS (#548) 2026-07-21 11:30:49 +05:30
resolve.py feat: billing and credit management v2 (#429) 2026-06-12 14:55:30 +05:30