如何在 google 上的建议条操作中添加 ssml

How to add ssml in suggestion chips actions on google

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。

如果您希望读出建议,应将它们放在您的操作输出的文本旁边。