Skip to content
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

Speach Synthesis on Mobile Edge Browser Broken #270

Open
jensbuehl opened this issue Apr 16, 2024 · 3 comments
Open

Speach Synthesis on Mobile Edge Browser Broken #270

jensbuehl opened this issue Apr 16, 2024 · 3 comments

Comments

@jensbuehl
Copy link

[x] I have read the FAQ section and have checked
that none of it describe the issue I'm about to report.

Describe the bug
Since the goal of this library is cross platform and cross browser speech synthesis, I was expecting it to work on mobile MS Edge as well. (All other tested browsers are just fine: mobile chrome, firefox, desktop chrome, firefox, edge)

However, even the demo sample does not (or no longer?) work with mobile Edge since no voices are found.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the live demo
  2. Try to select a voice => not possible
  3. Try to speak any text => not possible due to no voice
  4. See error log on the right hand side and status

Expected behavior
Working speech synthesis on mobile Edge.
This might very well also be a browser issue - maybe you have more insights on that?

Screenshots
n/A

Smartphone (please complete the following information):

  • Device: Samsung Galaxy A52
  • OS: One UI 6 / Android 14
  • Browser: Microsoft Edge on Android
  • Version: 123.0.2420.74

Additional context
Yes, I read the FAQ.
Yes, I installed voices on Android system level.
Still, Edge does not resprect these settings.

I found at least one more reddit adressing the very same issue - it used to work in the past but is broken now:
https://www.reddit.com/r/edge/comments/1498gcn/any_idea_why_on_android_edge_the_voices_from/

MDN example is down as well:
https://mdn.github.io/web-speech-api/speak-easy-synthesis/

I really hope to get more insights here. Thanks in advance!

@jankapunkt
Copy link
Member

Thanks for reporting @jensbuehl I did not know there is a mobile edge browser. I will check it out.

@jankapunkt
Copy link
Member

Coming back this issue I found Eruda that displays a virtual console which allowed me to better debug on edge mobile (because it has no inspect options, very weird) and I found even more strange that the following code works:

const u = new SpeechSynthesisUtterance('Hello, world!');
speechSynthesis.speak(u);

it will speak with the voice that is globally set as default on my device. However, even with latest mobile edge-dev I can get no access to the list of voices.

@jankapunkt
Copy link
Member

Even more interesting: while listing properties of speechSyntehesis I found a mysterious preload function that is not part of the standard implementation (so it seems to be mobile-edge-specific).

It's undocumented and requires two arguments but I couldn't find out which ones it needs :-/

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

No branches or pull requests

2 participants