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

Set new default voice #4

Open
coldes opened this issue May 20, 2017 · 6 comments
Open

Set new default voice #4

coldes opened this issue May 20, 2017 · 6 comments

Comments

@coldes
Copy link

coldes commented May 20, 2017

How to set new default voice rather than using the dropdown menu each time, eg Daniel en-GB?

@acoti
Copy link
Owner

acoti commented May 22, 2017

You can set a default voice in the code without using the dropdown menu by using any of the three methods described in the "Get and Set Voices" section on the following page:

http://articulate.purefreedom.com/guide.htm

I hope this helps.

Adam

@coldes
Copy link
Author

coldes commented May 22, 2017

...yes was on that page, I must be missing something, I forked one of the codepens and this is what I edited that is not working
function speak(obj) { $(obj).articulate('getVoices').articulate('setVoice','Daniel',voice).articulate('speak'); };
Any assistance appreciated, thank you

@acoti
Copy link
Owner

acoti commented May 22, 2017

How about this?
function speak(obj) { $(obj).articulate('setVoice','name','Daniel').articulate('speak'); }

@coldes
Copy link
Author

coldes commented May 22, 2017

...found the problem with codepen external link

WORKS USING [even though insecure http]
http://articulate.purefreedom.com/assets/js/articulate.min.js

NOT WORKING WITH [only default voice does]
https://s3-us-west-2.amazonaws.com/s.cdpn.io/915932/articulate.min.js

@pinecreativelabs
Copy link

How would I make it have a female voice?

@acoti
Copy link
Owner

acoti commented Jun 17, 2017

There isn't an option in the speechsynthesis API that allows choosing a voice based on gender. Each platform/OS combination usually does have at least one male and female voice, but you would have to find out which ones on your own.

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