Skip to content

Significant enhancements to example #590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

familan
Copy link

@familan familan commented Jun 15, 2025

Adds getting and displaying of voices in an additional drop-down button.
Adds getting of a default voice for non-Android platforms, based on the device/browser locale and list of voices.
Handles updating the voice when the language is changed and visa-versa.
Note: For best results in Edge/Chrome browsers, ensure the browser's Settings/Language contain the language and region.
Adds a button for Android and iOS to optionally save the spoken text to a file using synthesizeToFile. The text itself is mangled to a (up to 40 char) filename for saving.
Changes include bringing configuration files more up-to-date, incl. Grade version from 8.2 to 8.9.

familan and others added 3 commits June 15, 2025 20:09
Raised the Completer timeout to 2 seconds when getting the default voice to (hopefully) avoid race condition when switching between engines on Android.
Copy link
Owner

@dlutton dlutton left a comment

Choose a reason for hiding this comment

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

LGTM!

@dlutton dlutton self-assigned this Jun 21, 2025
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