Skip to content

Feature/tts - #3

Merged
FI-153 merged 6 commits into
FI-153:developfrom
DerPicknicker:feature/tts
Jul 14, 2026
Merged

FI-153 merged 6 commits into
FI-153:developfrom
DerPicknicker:feature/tts

Conversation

@DerPicknicker

Copy link
Copy Markdown

Hi,

as promised here is the PR for the TTS part. The Commit History contains all previous commits but the Files are now restored to the TTS parts only.

Feel Free to test it, Close it or merge it ;-).

All the best!

DerPicknicker and others added 4 commits July 11, 2026 12:41
Exposes macOS's private Siri text-to-speech engine over the Wyoming protocol
alongside existing STT, using only system-managed voices (System Settings →
Siri) since the frozen 2021 download catalog no longer loads on current
macOS. A worker pool keeps an engine pre-warmed at all times so synthesis
starts immediately, spawning a replacement worker in the background so
concurrent requests never wait on engine init. Both one-shot synthesize and
streaming synthesize-start/chunk/stop are supported with sentence-level
incremental synthesis.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Explain that macOS only keeps full voice bundles for voices selected at
least once, and describe the per-request worker scaling behavior with
measured latency/memory figures.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
discoverSystemVoices deduped on language|name|version, but Home Assistant
keys a voice by name-language-footprint. A speaker shipped as multiple
model/version variants (e.g. damon en-US premium as both neural v1301 and
natural v5030) surfaced twice under the same voice_id. Dedup on
language|name|footprint instead, keeping the highest content version.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VgEMUdF2PNywdnyfzn4E89
Voices that force the "hydra" text frontend (frontend.cfg with
"force_hydra_fe": true — the en-US / en-GB / en-IN "nashville" family) init
and preheat fine but throw `map::at: key not found` on synthesize: that
frontend needs the shared com.apple.siri.tts.resource.<lang> bundle, which the
in-process engine can't load on macOS 26, and the failed call also poisons the
autorelease pool. Refuse such voices in voiceIsCompatibleWithSystemEngine so
discovery never advertises them to Home Assistant and the engine never loads
one. Verified on-device: en-AU/en-IE/en-ZA synthesize; en-US/en-GB/en-IN are
filtered out.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VgEMUdF2PNywdnyfzn4E89
@DerPicknicker
DerPicknicker changed the base branch from main to develop July 11, 2026 11:09
FI-153 and others added 2 commits July 14, 2026 20:55
Beta tags (vX.Y.Z-beta.N) now produce a GitHub prerelease and a separate
wyoming-apple-stt-beta formula (class WyomingAppleSttBeta) that coexists with,
and conflicts_with, the stable one, so a beta push never overwrites the stable
formula in the tap. release.yml branches on the -beta suffix; the formula
template gains {{CLASS}} and {{CONFLICTS}} placeholders filled per channel.
Also fixes the pre-existing depends_on ordering nit (macos before python).

A -beta suffix is used rather than @beta because Homebrew derives a formula's
Ruby class from its filename and only maps @ to AT before a digit
(python@3.12), so wyoming-apple-stt@beta would be an invalid class.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VgEMUdF2PNywdnyfzn4E89
Integrate the STT-streaming work (PR FI-153#4, now on develop) with the Siri TTS
feature. STT and TTS are complementary: the merged handler serves both the
transcribe/streaming-transcript flow and the synthesize/streaming-synthesis
flow, and __main__ wires up both an SttService and a TtsService, advertising
a streaming AsrProgram alongside the TtsProgram.

Conflicts resolved as a union in __main__.py and handler.py; docs (CLAUDE.md,
README.md) carry both feature descriptions; build-release-tarball.sh and
install.sh copy apple-tts and re-sign apple-stt for TCC.

Tests: Python 70/70, Swift 33/33, ruff + mypy clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VgEMUdF2PNywdnyfzn4E89
@FI-153
FI-153 merged commit 5c6f04c into FI-153:develop Jul 14, 2026
2 checks passed
@DerPicknicker
DerPicknicker deleted the feature/tts branch July 14, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants