Skip to content

Exclude iOS joke voices from ReadAloud - #1545

Open
cdrini wants to merge 3 commits into
internetarchive:masterfrom
cdrini:feature/exclude-ios-joke-voices
Open

cdrini wants to merge 3 commits into
internetarchive:masterfrom
cdrini:feature/exclude-ios-joke-voices

Conversation

@cdrini

@cdrini cdrini commented May 15, 2026 •

Copy link
Copy Markdown
Contributor

QA link:

Before:

Loads of novelty voices for things like "Bubbles", which play a bubbly sound. Funny, but not super helpful :P . Or very old low quality synthesized voices like "Grandma". Most user's won't want these, so disable them.

image

After:

image

@codecov

codecov Bot commented May 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.69%. Comparing base (e0cd8b1) to head (06e77ac).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1545      +/-   ##
==========================================
+ Coverage   64.63%   64.69%   +0.06%     
==========================================
  Files          69       69              
  Lines        6309     6317       +8     
  Branches     1399     1402       +3     
==========================================
+ Hits         4078     4087       +9     
+ Misses       2191     2190       -1     
  Partials       40       40              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR filters Web Speech API voices used by ReadAloud to hide known Apple novelty or low-quality voice families.

Changes:

  • Adds WebTTSEngine.isGoodVoice() to reject selected Apple voice URI prefixes.
  • Applies the filter in getVoices().
  • Adds a Jest test covering the new voice filtering behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/plugins/tts/WebTTSEngine.js Adds and applies voice filtering for Web TTS voices.
tests/jest/plugins/tts/WebTTSEngine.test.js Adds coverage for filtering known Apple novelty voice prefixes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/plugins/tts/WebTTSEngine.js Outdated
Comment thread src/plugins/tts/WebTTSEngine.js
Comment thread src/plugins/tts/WebTTSEngine.js Outdated
Comment on lines 101 to 102
const voices = speechSynthesis.getVoices().filter(WebTTSEngine.isGoodVoice);
if (voices.filter(v => v.default).length != 1) {
cdrini and others added 2 commits October 23, 2026 00:41
…oices

Co-Authored-By: Drini Cami <cdrini@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cdrini
cdrini force-pushed the feature/exclude-ios-joke-voices branch from 6a96b6b to 4e425f5 Compare October 23, 2026 07:42
@cdrini
cdrini marked this pull request as ready for review October 23, 2026 07:45
Co-Authored-By: Drini Cami <cdrini@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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