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

Spanish language support? #3

Open
martinmurciego opened this issue Jan 8, 2017 · 3 comments
Open

Spanish language support? #3

martinmurciego opened this issue Jan 8, 2017 · 3 comments

Comments

@martinmurciego
Copy link

Has some support for Spanish language.
Congratulations great idea!

@acoti
Copy link
Owner

acoti commented Jan 9, 2017

Thanks!

I have not tested this with Spanish. Depending on the browser/platform, there are voices available that support various languages . For example, on Windows 10/Chrome, you can see quite a few when visiting this link:

Microsoft Demo

But it all depends on the browser. Right now, everything in Articulate.js is voiced with the default. I'm not sure, but maybe the default voice is always the same language as the operating system default. Regardless, I think the mechanics of this plugin would work in any language.

If you test this, please let us know what you find.

@Yimiprod
Copy link

Can confirm @acoti on chrome the first voice get from speechSynthesis.getVoices() is based on the local language.

Knowing that, at https://github.com/acoti/articulate.js/blob/master/articulate.js#L136 we can test on en-EN or something similar to get the first one with the locale of the text read and not just the locale of the user.

@acoti
Copy link
Owner

acoti commented Jan 10, 2017

Thanks for testing this.

Later today, I'll be updating Articulate.js to allow for selecting a voice by name or language.

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

3 participants