Skip to content
New issue

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

configuration to take array as a input and user random item from array for ssml building. #19

Open
itachiRedhair opened this issue Aug 10, 2018 · 0 comments

Comments

@itachiRedhair
Copy link

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:

  1. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant