mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 06:16:04 +00:00
* feat(xai): add streaming TTS via wss://api.x.ai/v1/tts Expose streamSynthesize on the bundled xAI speech provider so Talk and Discord streaming playback can use xAI alongside batch REST synthesis. Adds ws runtime dependency, byte-cap enforcement, and provider tests. * fix(xai): harden streaming TTS per review feedback Restrict streaming WS to api.x.ai, decode WebSocket payloads explicitly, refresh idle timeout on audio.delta, add lifecycle/security tests, and document the official xAI streaming contract plus non-realtime-voice scope. * fix(xai): bound streaming TTS text deltas * fix(xai): require secure native TTS streaming endpoint * docs(tts): remove duplicate output formats section * fix(xai): preserve surrogate pairs in tts frames * fix(xai): bound streaming TTS websocket payloads * fix(xai): align TTS websocket decoding with ws types * fix(xai): pin native streaming TTS endpoint * test(xai): cover native streaming TTS live path * fix(xai): preserve streaming codec compatibility * style(xai): format streaming endpoint guard * docs(tts): describe xAI streaming output policy [skip ci] * fix(xai): own voice-note TTS format policy [skip ci] * docs(tts): keep provider summary concise [skip ci] * test(xai): use explicit placeholder credentials [skip ci] * test(xai): keep fixtures scanner-safe [skip ci] --------- Co-authored-by: TheAngryPit <16145902+TheAngryPit@users.noreply.github.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>