We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The sample code present in the examples is not working:
// get base64 text googleTTS.getAudioBase64('Hello World', { lang: 'en-US', slow: false, host: 'https://translate.google.com', timeout: 10000, }) .then(console.log) // base64 text .catch(console.error);
Error: lang "en-US" might not exist
It successfully returned base64 output for language codes: 'en', 'es'. en-Us, en-AU are working fine for getAudioUrl,getAllAudioUrls functions though.
The text was updated successfully, but these errors were encountered:
Seems like this is an expected behavior, when sending a request to the endpoint to get the base64 data, we only sends 2 characters country code
With exception for Chinese Simplified and Traditional (zh-CN and zh-TW respectively)
zh-CN
zh-TW
Sorry, something went wrong.
Thank you for reporting this issue.
Looks like google translate API has a minor change. I will some updates next release.
en
Thanks
No branches or pull requests
The sample code present in the examples is not working:
Error: lang "en-US" might not exist
It successfully returned base64 output for language codes: 'en', 'es'.
en-Us, en-AU are working fine for getAudioUrl,getAllAudioUrls functions though.
The text was updated successfully, but these errors were encountered: