我想在一项技能中使用多个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?';
我希望“你的名字叫蒂姆”的发音与句子的其余部分不同。
答案 0 :(得分:5)
使用<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>';