类 CloudDmKernel
- java.lang.Object
-
- com.aispeech.lite.BaseKernel
-
- com.aispeech.lite.dm.CloudDmKernel
-
- 所有已实现的接口:
ICInfo
,WSClientListener
,java.lang.Runnable
public class CloudDmKernel extends BaseKernel implements WSClientListener, ICInfo
dds 协议 https://wiki.aispeech.com.cn/pages/viewpage.action?pageId=1220387
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.aispeech.lite.BaseKernel
BaseKernel.EngineState
-
-
字段概要
-
从类继承的字段 com.aispeech.lite.BaseKernel
mErrorProcessor, mQueue, mState, profile
-
-
构造器概要
构造器 构造器 说明 CloudDmKernel(CloudAsrKernelListener listener)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
isConnected()
void
onClose()
链接已关闭void
onError(java.lang.String text)
错误回调void
onMessage(java.lang.String text)
报文回调void
onOpen()
链接创建成功void
run()
void
sendPing()
Each frame starts with two bytes of data.void
setOneShotCache(OneshotCache<byte[]> oneShotCache)
void
uploadProductContext(ProductContext intent)
上传产品配置void
uploadSkillContext(SkillContext context)
上传技能配置void
uploadVocabs(com.aispeech.export.Vocab... vocabs)
上传词库-
从类继承的方法 com.aispeech.lite.BaseKernel
async, cancelKernel, clearMessage, close, feed, feed, feedback, feedback2PRIVCloud, forceRequestWakeupResult, get, getInnerThreadName, getNewConf, getProfile, getStartConf, getValueOf, innerRelease, newKernel, releaseKernel, semaphoreP, semaphoreV, sendMessage, set, setMaxMessageQueueSize, setProfile, showErrorMessage, startKernel, stopKernel, trackInvalidState, transferState, triggerIntent, update, updateNaviVocab, updateTrails, updateVocab, updateVocab, updateVocabs, useBuiltinWakeupWords, waitMessage
-
-
-
-
构造器详细资料
-
CloudDmKernel
public CloudDmKernel(CloudAsrKernelListener listener)
-
-
方法详细资料
-
setOneShotCache
public void setOneShotCache(OneshotCache<byte[]> oneShotCache)
-
sendPing
public void sendPing()
Each frame starts with two bytes of data.0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 +-+-+-+-+-------+ +-+-------------+ |F|R|R|R| OP | |M| LENGTH | |I|S|S|S| CODE | |A| | |N|V|V|V| | |S| | | |1|2|3| | |K| | +-+-+-+-+-------+ +-+-------------+
-
uploadVocabs
public void uploadVocabs(com.aispeech.export.Vocab... vocabs)
从接口复制的说明:ICInfo
上传词库- 指定者:
uploadVocabs
在接口中ICInfo
- 参数:
vocabs
-Vocab
-
uploadProductContext
public void uploadProductContext(ProductContext intent)
从接口复制的说明:ICInfo
上传产品配置- 指定者:
uploadProductContext
在接口中ICInfo
- 参数:
intent
-ProductContext
-
uploadSkillContext
public void uploadSkillContext(SkillContext context)
从接口复制的说明:ICInfo
上传技能配置- 指定者:
uploadSkillContext
在接口中ICInfo
- 参数:
context
-SkillContext
-
run
public void run()
- 指定者:
run
在接口中java.lang.Runnable
- 覆盖:
run
在类中BaseKernel
-
onMessage
public void onMessage(java.lang.String text)
从接口复制的说明:WSClientListener
报文回调- 指定者:
onMessage
在接口中WSClientListener
-
onError
public void onError(java.lang.String text)
从接口复制的说明:WSClientListener
错误回调- 指定者:
onError
在接口中WSClientListener
- 参数:
text
- 错误信息
-
onOpen
public void onOpen()
从接口复制的说明:WSClientListener
链接创建成功- 指定者:
onOpen
在接口中WSClientListener
-
onClose
public void onClose()
从接口复制的说明:WSClientListener
链接已关闭- 指定者:
onClose
在接口中WSClientListener
-
isConnected
public boolean isConnected()
-
-