在Alexa中创建全盘广告的最佳方法 [英] Best way to create a catch all slot in Alexa

查看:77
本文介绍了在Alexa中创建全盘广告的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,用Alexa创建可容纳所有广告位的最佳方法是什么,它可以与另一个自定义广告位一起使用(因此,不幸的是,该AMAZON.SearchQuery广告位不能与其他自定义广告位一起使用,不知道为什么

What is today the best way to create a catch-all slot with Alexa, usable with another custom slot (so unfortunately not an AMAZON.SearchQuery slot, that is not usable with other custom slots, don't know why by the way)?

我曾尝试过AMAZON。有人建议,但当我说些什么时,Alexa会试图将我所说的变成个人的名字,所以Alexa

I've tried with AMAZON.Person as someone suggested but when I say something, Alexa tries to enforce what I say into a Person's name, and so Alexa will not understand exactly what I say.

如果我创建带有一些随机单词的自定义广告位,也会出现相同的行为,Alexa会始终尝试在其中之一中匹配我的输入单词删除原始输入。

The same behavior appears if I create a custom slot with some random words, Alexa will always try to match my input in one of those words "deleting" the original input.

AMAZON。如果我使用开发人员控制台进行测试,则人员和带有随机单词的自定义广告位会起作用。在这种情况下,我说的任何话都会落入万能的口。当我使用Echo设备测试技能时出现问题,Alexa总是会尝试理解我的意思,以便将输入强制到某个插槽示例中,从而使输入不可用。

The AMAZON. Person and custom slot with random words do the work if I use the developer console to test. In that case, any word I say will fall into the catch-all slot. The problem appears when I test the skill with the Echo Device, Alexa will always try to understand what I say in order to "force" the input into one of the slot examples, making the input unusable.

该语言为英语。

是否可以解决此问题并建立一个真正的自定义插槽?

Is there a way to fix this problem and build a real custom slot?

谢谢

推荐答案

这是一个常见问题,通常被认为是不好的设计,因为它可以

This is a common question and it's generally considered bad design because it can interfere with other intents (because it's so ambiguous) and make the skill more error-prone.

话虽如此,但我使用<$取得了一定的成功c $ c> AMAZON.Book 插槽作为全部捕获插槽类型。

That being said, I've had moderate success achieving this using the AMAZON.Book slot as a "Catch all" slot type.

请注意,如果执行此操作,则应检查在冲突的语音窗格中查看哪些其他语音会与此冲突。可能还需要为内置意图创建自定义意图,例如 AMAZON.YesIntent AMAZON.NoIntent 如果您打算在技能上使用它们。否则,它们可能不会被识别。

Be aware that if you do this you should check to see which other utterances will conflict with this in the conflicting utterances pane. Likely, you will also have to create custom intents for built-in intents such as AMAZON.YesIntent and AMAZON.NoIntent if you intend to use them in your skill. Otherwise, they may not be recognized.

这篇关于在Alexa中创建全盘广告的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆