我如何阅读对话中的语音输入?七聊

How can i read a voice input in a dialog? QiChat

我可以通过某种方式从 nao 的对话中读取语音识别吗?

例如:

proposal: What is your name
    u1:(John Doe) ["Hey John Doe, how are you doing"]
    u1:(anything) ["Sorry, i cant hear you, please repeat"] ^previousProposal

我想要的是,如何将零件 (John Doe) 设置为用户提供的动态输入。有一些我可以创建的变量或用户输入的预定义变量?

你可以使用 $.

这里有一些示例 documentation

输入选择作为变量:

u:(my name is _[david robert]) your name is 

分配一个变量:

u:(my name is david) i store your name $name=david

条件

u:(is my name david) [“$name==david yes” “no it is $name”]