Repository navigation
Feature/tts - #3
Merged
Merged
Conversation
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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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!