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

How to change the language and voice? #46

Open
FE-Girl opened this issue Nov 19, 2014 · 2 comments
Open

How to change the language and voice? #46

FE-Girl opened this issue Nov 19, 2014 · 2 comments

Comments

@FE-Girl
Copy link

FE-Girl commented Nov 19, 2014

see the title

@Luid101
Copy link

Luid101 commented Sep 17, 2018

I am also working on this too, the voice sounds very robotic

@Luid101
Copy link

Luid101 commented Sep 17, 2018

There is some info on the page:

Language Support
eSpeak supports multiple languages so speak.js can too. To do this, you need to build a custom version of speak.js:

Bundle the proper language files. For french, you need fr_dict and voices/fr. See commented-out code in emscripten.sh and bundle.py
Expose those files to the emulated filesystem, in post.js. See commented-out code in there as well.
Run emscripten.sh to build.
You then need to call speak() with the voice option that tells it to use the right voice for your language. For example, for French this should work:

speak('boulanger', { voice: 'fr' })

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