Prefer natural macOS say voices and skip novelty fallbacks#33
Merged
Prefer natural macOS say voices and skip novelty fallbacks#33
say voices and skip novelty fallbacks#33Conversation
Closed
4 tasks
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 22 |
| Duplication | 6 |
TIP This summary will be updated as you push new changes. Give us feedback
Agent-Logs-Url: https://github.com/harumiWeb/eitango/sessions/94f61f18-4d5a-45ea-bbad-dfea95f0fb58 Co-authored-by: harumiWeb <164025931+harumiWeb@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix voice selection logic for say command in macOS
Prefer natural macOS Apr 7, 2026
say voices and skip novelty fallbacks
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves macOS (say) voice auto-selection to avoid novelty/effect voices and produce more natural, deterministic speech for learning use.
Changes:
- Prefer a curated list of natural English voices (e.g., Samantha/Alex/Daniel/…) after parsing the full
say -v ?output. - Broaden English locale matching to
en*locales and update fallback to skip novelty voices (or return empty to letsaydecide). - Add Darwin-specific regression tests for preferred selection, novelty-skipping fallback, and “only novelty voices” behavior.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| internal/audio/factory_darwin.go | Implements deterministic preferred-voice selection and novelty-skipping English fallback for macOS say. |
| internal/audio/factory_darwin_test.go | Adds tests covering preferred voice choice vs earlier novelty voices, fallback skipping novelty voices, and empty selection when only novelty voices exist. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
harumiWeb
approved these changes
Apr 7, 2026
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.
macOS voice auto-selection currently picks the first
en_USvoice returned bysay -v ?, which can select novelty/system-effect voices and produce unnatural playback. This change makes voice selection deterministic for learning use by preferring a small set of natural English voices and excluding novelty voices from fallback.Voice selection
say -v ?voice list before choosing a voiceSamantha,Alex,Daniel,Karen,Moiraen_*,en-*) instead of relying on a single exact localeFallback behavior
sayto use its default behavior instead of forcing a poor-quality choiceRegression coverage