leaonline / easy-speech

🔊 Cross browser Speech Synthesis also known as Text to speech or TTS; no dependencies; uses Web Speech API
https://leaonline.github.io/easy-speech/
188 stars 21 forks source link

Voice codes changed #209

Closed nonoumasy closed 10 months ago

nonoumasy commented 1 year ago

Describe the bug Voice codes changed. My language mapping is no longer working. It's not really an issue as I can edit my mapping, but if this keeps changing, then it might be an issue in the future.

To Reproduce ...

Expected behavior ...

Screenshots This is my language mapping before.

Screenshot 2023-10-01 at 12 42 20 AM

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context not sure why the codes would change as it's standardized by Web Speech API, doesn't it? this is the correct mapping as of today.

Screenshot 2023-10-01 at 12 54 15 AM

The voice has been updated so this is no longer an issue. Just wondering how the voices code mapping changed. Was this changed on teh Web API side or from this library?

jankapunkt commented 1 year ago

Hey @nonoumasy did your browsers / os update since the last check? I know for sure, that Apple made lots of changes in their TTS voices recentrly, causing lots of trouble.

Since ios 16 there are also not all voices available anymore. This is on Apple unfortunately and a system-level setting we can't really influence.

https://developer.apple.com/forums/thread/723503

https://stackoverflow.com/questions/77079506/eloquence-voices-are-speaking-extra-bs

One approach might be to create an algorithm that makes sure the voices are always sorted and filtered, based on heuristics, rather than specific voice names.

nonoumasy commented 10 months ago

thanks. I disabled the tts feature on iOS since safari always had issues with the web speech api. But the issue was present on desktop chrome. At the moment, the mapping seems to be ok.