public class WakeupWordIntent extends WakeupWord
限定符和类型 | 字段和说明 |
---|---|
protected WakeupType |
mWakeupType |
action, dcheck, greetingList, incrementWord, major, mCreateEngine, name, pinyin, threshold, threshold2
构造器和说明 |
---|
WakeupWordIntent(WakeupType wakeupType) |
限定符和类型 | 方法和说明 |
---|---|
WakeupWordIntent |
addGreeting(java.lang.String greeting)
添加唤醒词欢迎语
|
WakeupWordIntent |
setAction(java.lang.String action)
设置唤醒词对应的command命令
|
WakeupWordIntent |
setGreetings(java.util.ArrayList<java.lang.String> greetingList)
设置唤醒词欢迎语
|
WakeupWordIntent |
setPinyin(java.lang.String pinyin)
设置唤醒词拼音
|
WakeupWordIntent |
setThreshold(java.lang.String threshold)
设置唤醒词阈值
|
WakeupWordIntent |
setThreshold(java.lang.String threshold,
java.lang.String threshold2)
设置唤醒词阈值
|
WakeupWordIntent |
setWord(java.lang.String word)
设置唤醒词汉字
|
getAction, getDcheck, getGreetingList, getIncrementWord, getJson, getJsonObject, getMajor, getName, getPinyin, getPriority, getThreshold, getThreshold2, isIncrementWord, setCreateEngine, setDcheck, setIncrementWord, setMajor, setPriority, toString
protected WakeupType mWakeupType
public WakeupWordIntent(WakeupType wakeupType)
public WakeupWordIntent setWord(java.lang.String word)
WakeupWord
setWord
在类中 WakeupWord
word
- 唤醒词汉字public WakeupWordIntent setPinyin(java.lang.String pinyin)
WakeupWord
setPinyin
在类中 WakeupWord
pinyin
- 唤醒词拼音public WakeupWordIntent setThreshold(java.lang.String threshold)
WakeupWord
setThreshold
在类中 WakeupWord
threshold
- 唤醒词阈值public WakeupWordIntent setThreshold(java.lang.String threshold, java.lang.String threshold2)
WakeupWord
setThreshold
在类中 WakeupWord
threshold
- 唤醒词阈值threshold2
- 唤醒词阈值2public WakeupWordIntent addGreeting(java.lang.String greeting)
WakeupWord
addGreeting
在类中 WakeupWord
greeting
- 唤醒词欢迎语public WakeupWordIntent setGreetings(java.util.ArrayList<java.lang.String> greetingList)
WakeupWord
setGreetings
在类中 WakeupWord
greetingList
- 唤醒词欢迎语集合public WakeupWordIntent setAction(java.lang.String action)
WakeupWord
setAction
在类中 WakeupWord
action
- 唤醒词对应的command命令