4

我想在一项技能中使用多个 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?';

我希望“你的名字是蒂姆”的声音与句子的其余部分不同。

4

1 回答 1

5

使用<voice>标签。选项在此处列出

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>';
于 2019-05-13T22:44:02.243 回答