簡體   English   中英

如何在谷歌的建議芯片操作中添加 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。

如果您希望讀出建議,則應將它們放在您的操作輸出的文本旁邊。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM