Nao机器人语音对话 |
您所在的位置:网站首页 › 唱歌机器人英语怎么写 › Nao机器人语音对话 |
C:\ProgramFiles\AldebaranRobotics\ChoregrapheSuite2.1\share\doc\getting_started\helloworld_choregraphe_dialog.html http://doc.aldebaran.com/2-1/naoqi/audio/dialog/dialog-syntax_full.html#delimiter-rule 首先根据这里建立一个工程,然后添加Set language和Dialog模块。 接着双击左上角添加到工程的对话配置文件,这里以中文文件为例子*_mnc.top 输入以下内容 concept:(欢迎语) ^rand[hi hello "你好" "很高兴见到你" "哇" "哇塞"] u:(~欢迎语) ~欢迎语 u:([hi 你好{Nao} 机器人 科科]) 你好,我的 [主人 老板] u:(你叫什么名字) 大家都叫我科科! u:(我的名字叫 _*) 很高兴见到你 $1 $name=$1 u:(我的名字叫 _[小熊 石头]) 很高兴见到你 $1 $name=$1 u:(我好饿) 那你想吃什么呢,$name u:(我想吃 _*) 你现在想吃 $1 吗,$name $food=$1 u:(我点了什么) ^first["你刚刚点了 $food" "我忘记了"] u:(给我讲个故事) %故事 好的,要听新故事吗? u:([!不要 给我讲个新故事 要 好的]) 好的,我会给你讲个新故事! u:([不要给我讲个新故事 不 不要]) 好的,我会给你讲三个和尚! u:([Shit Fuck]) 不能讲脏话 proposal: %天气 今天的天气?因为Nao的语音是离线的,关于对话需要有一定的规则。 NAOqi APIs—Audio—ALDialogfile:///C:/Program%20Files/Aldebaran%20Robotics/Choregraphe%20Suite%202.1/share/doc/naoqi/audio/dialog/aldialog.html#aldialog file:///C:/Program%20Files/Aldebaran%20Robotics/Choregraphe%20Suite%202.1/share/doc/naoqi/audio/dialog/dialog.html#rule u( )为用户说的话,写在括号里。方括号[ ]里的为可替代词汇,{ }里 的为可省略词汇。 Concept¶ A Concept is a list of words and/or phrases that refer to one idea. For example, a list of countries, a list of names, synonyms of a word.They can be used both in Human input or Robot output. There are two types of Concepts: TypeScopeAt run time ...May contain ...Staticglobalcannot be modifiedChoice: [ ], Optional part: { }, concepts (static and dynamic), functions (^rand, ^first), Variable: $ and Conditions: == > |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |