# NousResearch/hermes-agent · xAI streaming TTS WebSocket protocol fix

## Open now

- Nothing open on GitHub.

A bug report and associated fix attempts addressing xAI streaming TTS failures caused by incorrect WebSocket protocol implementation, including a removed kwarg and rejected handshake. The members describe the problem and proposed rewrites, with no confirmed resolution status.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #121741. Verify it addresses your case.
- **Recommended:** read PR #121741 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-121741`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #73985: \[Bug\]: xAI streaming TTS can never produce audio (removed websockets kwarg, rejected handshake, invented wire protocol)

## Prior & competing PRs

- **#121741: fix(tts): working xAI streaming, Gemini key out of URLs, no spoken think tails, recorder stream rebuild**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `contributors/emails/[redacted:email]`, `tests/tools/test_tts_dotenv_fallback.py`, `tests/tools/test_tts_gemini.py`, `tests/tools/test_tts_streaming.py`, `tests/tools/test_voice_mode.py`, `tools/tts_streaming.py`, `tools/tts_tool_providers.py`, `tools/voice_mode.py`
- **#73986: fix(tts): rewrite xAI streaming against the real WebSocket protocol**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `42c5ed5787`, `#121741`, `#73985`
- **#77285: fix(tts): rewrite xAI streaming against the real WebSocket protocol**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `444f31f5c`, `#73986`, `#73986`, `#73986`, `#73986`, `#73985`, `#73985`, `#73986`, `#73986`
- **#86368: fix(voice): xAI streaming TTS WebSocket protocol + websockets 15 compat**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#73986`

## Fix status

- Merged to main in PR #121741 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-26`.
- Subsystem: `agent`
