zlargon / google-tts

Google TTS (Text-To-Speech) for node.js
https://www.npmjs.com/package/google-tts-api
MIT License
278 stars 56 forks source link

Change api host, https://translate.google.cn/ #16

Open yuanoook opened 6 years ago

yuanoook commented 6 years ago

Thanks for the great repo, it is very useful. I have one suggestion: In some countries, we cannot access https://translate.google.com It will be helpful if we support use other api host

zlargon commented 6 years ago

It is a great idea. I would love to implement this new feature in the next release. Thank you.

ghost commented 3 years ago

any update?

zlargon commented 3 years ago

Hi @yuanoook, version 2.0.0 can support customized host now. Please read more here: https://github.com/zlargon/google-tts#options-all-options-are-optional

MrRasmus commented 3 years ago

Hello zlargon Its pretty amazing what you have made. I have a small question as im not that smart in this coding stuff. But where can I change the language? Do I change it in the app im using, or can I change it somewhere in your google-tts files? -Rasmus

zlargon commented 3 years ago

Hi @MrRasmus, here is an example to change the language to Chinese. https://github.com/zlargon/google-tts/blob/master/example/chinese.js

You can change the language by setting the option lang with language codes. Hope it's helpful. 😁

brettz9 commented 3 years ago

Seems like this can be closed?