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

SSML possible? #29

Closed ozett closed 4 years ago

ozett commented 4 years ago

can i use SSML-Tags to control the tts? i dont see anything mentioned here...

https://cloud.google.com/text-to-speech/docs/ssml

thx,

solyarisoftware commented 4 years ago

Hi @ozett

I agree with @Hypnos3 here: https://github.com/Hypnos3/node-red-contrib-cast/issues/75#issuecomment-561871642

Now, some/small SSML features, as controlling pauses, could be possible, working on-top of zlargon/google-tts.

BTW, I'm working on https://github.com/solyarisoftware/jointts, a concatenative TTS experiment (that use this package, as an option). So by example, you can build speech, configuring that a BLANK correspond to some number of millisecond, A FULL_STOP to a bigger value of msecs, etc.

Nevertheless, I fair it's not worth implementing SSML for such a strict set of features. My two cents.

ozett commented 4 years ago

thx for the link to your github, i will have a look