gpt4 book ai didi

node.js - 在单个 Alexa 技能中使用多个语音?

转载 作者:搜寻专家 更新时间:2023-10-31 23:06:54 25 4
gpt4 key购买 nike

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

关于node.js - 在单个 Alexa 技能中使用多个语音?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56117389/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com