在单个 Alexa 技能中使用多个语音?

Use multiple voices in a single Alexa skill?

我想在一个技能中使用多个 Alexa 语音。这可能吗?

我知道有 Amazon Polly,但是您使用什么 SSML 来使用不同的字符。我尝试在网上查找,但一无所获。

let speech = '<speak>Your name is Tim. /*After this I want a different voice*/ You have decided to sneak into a haunted house with your cousin Sally. You used a ladder to barely heave yourself over the rusty 12 foot tall iron gate. You were able to get in, but can you get out?';

我希望 "You name is Tim" 与句子的其余部分使用不同的语调。

使用 <voice> 标签。选项已列出 here

let speech = '<speak><voice name="Kendra">Your name is Tim.</voice> You have decided to sneak into a haunted house with your cousin Sally. You used a ladder to barely heave yourself over the rusty 12 foot tall iron gate. You were able to get in, but can you get out?</speak>';