Skip to content

Realtime text-to-speech

Choose a tag to compare

@Elijaht-dev Elijaht-dev released this 06 Nov 00:15
377ba12

Changes

TTS entities now offer an explicit Standard / Realtime synthesis mode. Realtime sends text progressively over Mistral's WebSocket speech endpoint and returns audio through Home Assistant's native streaming TTS interface.

To enable it, reconfigure a TTS entity, choose a compatible model and an explicit voice, select Realtime, and disable Normalize speech loudness. Standard remains the default and keeps whole-clip two-pass normalization. Migration 1.6 preserves existing model, voice, audio and pipeline settings.

The implementation validates session settings and the final speech event, enforces the 5,000-character/25 MiB limits and request deadlines, and cleans up cancellation/unload. Bounded audio buffering keeps WebSocket control frames responsive when HA's audio conversion is slower than the provider. Failures do not retry through HTTP. Native audio-to-audio conversation is not included.

Home Assistant minimum remains 2026.7.4; Mistral SDK remains 3.7.0.

Validation

  • 580 tests passed in each of five pinned Home Assistant/HTTPX2 environments, with 90.00–90.13% branch coverage; formatting, linting, typing, dependency and offline HACS checks passed.
  • A real HA 2026.11.0 instance passed backup/restart, migration/settings preservation, Conversation/local follow-ups, a read-only tool round trip, structured AI Task, STT cancellation/recovery and Standard/Realtime TTS retrieval.
  • In one synthetic Assist run, audio arrived at 4.95 s before intent completion at 8.45 s. Complete audio retrieval took 38.20 s and decoded successfully. These are API-stream measurements, not physical playback latency guarantees.
  • Image generation/reference validation hit the Mistral account's HTTP 429 rate limit (I have a free tier account) and was not revalidated in this run. The last successful live image validation is recorded under 0.6.0.
  • Physical satellite behavior was not tested.

See QUALITY.md and CHANGELOG.md for the full validation boundaries.