I noticed that the #synthesize method does not allow passing additional parameters, so as I understand it, there is no way to pass SSML to this method.
I was thinking, maybe provide one or both of these options:
If the text argument is detected as SSML (e.g., if it starts with <speak>), then automatically set text_type: 'ssml' when calling #synthesize_speech
Instead of (or better, in addition to) the above, maybe add optional opts={} argument to the method, and merge these options when calling #synthesize_speech
Thoughts?
Would you accept a pull request for this, and maybe for #1 as well?
Hi again.
I noticed that the
#synthesize
method does not allow passing additional parameters, so as I understand it, there is no way to pass SSML to this method.I was thinking, maybe provide one or both of these options:
text
argument is detected as SSML (e.g., if it starts with<speak>
), then automatically settext_type: 'ssml'
when calling#synthesize_speech
opts={}
argument to the method, and merge these options when calling#synthesize_speech
Thoughts?
Would you accept a pull request for this, and maybe for #1 as well?