You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current version has Speech.prototype.sayRandomChoice for random picking from array of strings.
But say I want to pass an array to Speech.prototype.sentence and get random item wrapped around <s> tag, I won't be able to do it in this case. I propose some changes:
Allow passing of an array of strings to every builder function, if saying parameter is an array, just pick random word from it and wrap it with particular ssml tag of that builder.
2.(Optional) You can provide a configuration in Speech() constructor to allow random picking for array types.
The text was updated successfully, but these errors were encountered:
Current version has
Speech.prototype.sayRandomChoice
for random picking from array of strings.But say I want to pass an array to
Speech.prototype.sentence
and get random item wrapped around<s>
tag, I won't be able to do it in this case. I propose some changes:saying
parameter is an array, just pick random word from it and wrap it with particular ssml tag of that builder.2.(Optional) You can provide a configuration in
Speech()
constructor to allow random picking for array types.The text was updated successfully, but these errors were encountered: