我正在开发一个对话框流项目,我需要一种不用等待语音命令就可以使用tell或ask的方法,但我也需要会话保持打开状态。我不能使用tell,因为它会立即杀死会话。Ask总是在等待用户的语音命令。如果它不能得到任何语音命令,那么它就会结束对话。
假设用户在这种状态下有多个选项,并且用户可以说任何时候都可以使用next或previous这样的可用命令,并且flow将继续工作。
例如,我们得到了我们想要的状态,然后:
user: next
google-home: got it! (Do not kill the session here and do not expect user voice command)
after 10 minutes...
user: previous
google-home: got it! (Do not kill the session here and do not expect user voice command)在DialogFlow中是否存在以某种方式实现此功能的构建。
谢谢。
发布于 2017-11-24 13:01:44
不,这目前是不可能的,一般来说,这是一个糟糕的设计目标。谷歌不想鼓励开放麦克风,因为这可能是一个隐私问题。
你有几种方法可以解决这个问题:
- Start the "ultimate slide advancer" action, so Google would say "Ok, getting Ultimate Slide Advancer"
- Activate an Intent that matched "Go to the next slide"
- That intent would take the action (going to the next slide) and respond accordingly.
- If that sounds like a mouthfull, your users can set a shortcut for "next slide" to "ask ultimate slide advancer to go to the next slide". The Assistant would still be responding with the whole routine, however.
(有些情况下,开放麦克风是可以接受的,但它们应被视为退化的情况,特别是因为很难区分开放麦克风可能被滥用的情况)。
https://stackoverflow.com/questions/47468840
复制相似问题