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
q=<part>&total=<total parts>&idx=<part index>&textlen=<part length>
The text was updated successfully, but these errors were encountered:
Version 2.0.0 supports the long texts now. Please see the usage in README:
getAllAudioUrls(text, [option])
lang
slow
host
splitPunct
const googleTTS = require('google-tts-api'); const results = googleTTS.getAllAudioUrls('LONG_TEXT_...', { lang: 'en-US', slow: false, host: 'https://translate.google.com', splitPunct: ',.?', }); console.log(results); // [ // { shortText: '...', url: '...' }, // { shortText: '...', url: '...' }, // ... // ];
getAllAudioBase64(text, [option])
timeout
const googleTTS = require('google-tts-api'); googleTTS .getAllAudioBase64('LONG_TEXT_...', { lang: 'en-US', slow: false, host: 'https://translate.google.com', timeout: 10000, splitPunct: ',.?', }) .then(console.log) // [ // { shortText: '...', base64: '...' }, // { shortText: '...', base64: '...' }, // ... // ]; .catch(console.error);
Sorry, something went wrong.
No branches or pull requests
q=<part>&total=<total parts>&idx=<part index>&textlen=<part length>
The text was updated successfully, but these errors were encountered: