简体   繁体   English

Google Actions SDK 2 Node.js响应/聊天气泡数限制

[英]Google actions sdk 2 nodejs response / chat bubble limit

I am using the Google-actions-sdk v2 and trying to build a gaming application. 我正在使用Google-actions-sdk v2,并尝试构建游戏应用程序。 In the documentation it says conv.ask() is limited to 2 responses per turn. 在文档中说conv.ask()每转仅限2个响应。 So this basically means I can only show 2 chat bubbles then it will not allow me to display more until after user input. 因此,这基本上意味着我只能显示2个聊天气泡,然后才允许在用户输入之前显示更多内容。 But when I look at some other published applications they have many more then 2 in a row displayed. 但是,当我查看其他一些已发布的应用程序时,它们显示的行数要多于2。 I can't seem to understand or find any info on how they can get around this limitation. 我似乎无法理解或找到任何有关如何解决此限制的信息。 2 seems a unreasonable limit. 2似乎是一个不合理的限制。

For speech you can merge text lines together and it will sound fine, but presentation on screen is awful without being able to break it down to more responses. 对于语音,您可以将文本行合并在一起,听起来会不错,但是在屏幕上的演示却很糟糕,无法将其分解为更多的响应。

Does anyone out there have any insight on this? 有没有人对此有任何见识?

In fact, everything in a single line would sound bad. 实际上,单行中的所有内容听起来都是不好的。 Why don't you try to separate the necessary texts with the help of the SSML library, I recommend it to you. 为什么不尝试在SSML库的帮助下分隔必要的文本,我推荐给您。 You can use the break tag to put a pause between each text. 您可以使用break标签在每个文本之间放置一个暂停。

<speak>
  I can pause <break time="3s"/>.
  I can pause by second time <break time="3s"/>.
</speak>

Here you have the documentation. 这里有文档。

Now if what you want to give is multiple selection options, you can also use the suggestion chip. 现在,如果您想提供多个选择选项,则还可以使用建议芯片。

建议筹码

https://developers.google.com/actions/assistant/responses#suggestion_chip https://developers.google.com/actions/assistant/responses#suggestion_chip

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM