如何在谷歌上的建议芯片操作中添加ssml


app.intent('Default Welcome Intent', (conv) => {
if (!conv.screen) {
conv.ask(`Your device is not compatible`);
return;
}
conv.ask(`It's a rhyming word game app. A Random word will be given to you. You have to enter a rhyming word against it. if you are ready to play? press the button below`);
conv.ask(new Suggestions([`Start Game`, `Exit`]));
});

建议芯片旨在提示用户将要说的内容,而不是Action所说的内容。因此,在建议芯片中使用SSML是不可能的。

如果您希望宣读这些建议,则应将它们放在Action输出的文本旁边。

最新更新