如何在Google的建议筹码操作中添加ssml

时间:2019-11-15 14:49:49

标签: dialogflow actions-on-google google-assistant-sdk 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`]));
});

1 个答案:

答案 0 :(得分:2)

建议筹码旨在提示用户,而不是您的操作说的话。因此,不会在建议芯片中使用SSML。

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