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

ax.say(SSMLSpeechBlock) is limiting #94

Open
kevindra opened this issue Oct 28, 2020 · 0 comments
Open

ax.say(SSMLSpeechBlock) is limiting #94

kevindra opened this issue Oct 28, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Milestone

Comments

@kevindra
Copy link
Collaborator

ax.say(string | SSMLSpeechBlock)
ax.say(string | SSMLSpeechBlock)

These are limiting because I can not plugin a compound block that localizes the output speech. For example: following can render localized message but it isn't possible right now.

ax
  .compound()
  .add(ax.ssml(text).build())
  .add(
    ax
      .localize([Locale.en_US, Locale.en_CA])
      .block(ax.ssml(text).voice(ssml.Voice.Matthew).build())
      .build()
  )
  .add(
    ax.localize([Locale.en_AU]).block(ax.ssml(text).voice(ssml.Voice.Russell).build()).build()
  )
  .add(ax.localize([Locale.en_IN]).block(ax.ssml(text).voice(ssml.Voice.Aditi).build()).build())
  .build();
@kevindra kevindra added enhancement New feature or request good first issue Good for newcomers labels Oct 28, 2020
@kevindra kevindra added this to the Release #3 milestone Oct 28, 2020
@kevindra kevindra added this to To do in 0.4.x Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
0.4.x
To do
Development

No branches or pull requests

1 participant