zlargon / google-tts

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

Translate long texts #30

Closed chayleaf closed 3 years ago

chayleaf commented 4 years ago
  1. Split text to parts of max 200 chars
  2. Add parameters: q=<part>&total=<total parts>&idx=<part index>&textlen=<part length>
zlargon commented 3 years ago

Version 2.0.0 supports the long texts now. Please see the usage in README:

3. getAllAudioUrls(text, [option]) (For text longer than 200 characters)

4. getAllAudioBase64(text, [option]) (For text longer than 200 characters)