micado-eu / migrant_application

Application for the migrant
European Union Public License 1.2
1 stars 4 forks source link

Text-to-speech uses the correct language only in Chrome #176

Open balcse opened 2 years ago

balcse commented 2 years ago

At least in the case of german, if I want to read out some german texts (after changing the language to german), the app uses a female english sounding voice in Firefox. As a comparision, Chrome has a german male voice, which sounds correct. The problem appears both in our local installaiton and the development instance

webdevotion commented 2 years ago

To add to the issue raised by @balcse:

gi-dorio commented 2 years ago

It seems it's heavily dependent on the combination of OS and Browser. I also have no problemn with voice on Firefox, but have nothing to test it on Safari. Right now the component uses the lang field of the SpeechSynthesisUtterance, which should be the most efficient way. It just seems that every instance of a browser has a different list of languages and some can have none at all