AGENT SKILL

ambient-macos-voice

暂无简介

License 许可
MIT
最近更新
2026-08-22
Stars
★ 0
Forks
0

02 资源文件 2

03 SKILL.md 正文

macOS system voices

Reads text aloud using /usr/bin/say, the speech synthesiser built into macOS.

Why this package exists

Before it, Ambient shipped no text-to-speech provider at all. AREA_BINDINGS.tts advertised a choice, the provider list was always empty, and the "Read aloud" onboarding step could never be completed by any action available inside the app — it required a third-party ambient-cli package the UI never named. The user's standard is that everything should work from a plain install of the app, and on macOS the voices are already there: this machine reports 184 of them.

What it does

Invocation Behaviour
--health Verifies /usr/bin/say exists and is executable. Fails with a plain reason on non-macOS.
--list-voices Emits { "voices": [...] } parsed from say -v '?' — the real voices installed on THIS Mac.
--text … --output … --format wav [--voice …] Writes a 16-bit PCM WAV and emits { audioPath, mimeType, durationMs }.

--voice system-default (the one statically declared voice) passes no -v flag, so it uses whatever voice the user has chosen in System Settings. That is the only voice guaranteed to exist on every Mac, which is why it is the static entry and the other 180-odd arrive through discovery.

Limits, stated plainly

  • macOS only. There is no cross-platform fallback here; --health says so rather than failing oddly.
  • No voice cloning, no network, no account. Whatever macOS has is what you get.
  • Output is WAV at 22.05 kHz mono. say can emit other rates, but Ambient's voice pipeline treats one format per provider and this is the one every macOS version has produced consistently.

04 同仓库更多 Skills