类 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)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanisConnected()voidonClose()链接已关闭voidonError(java.lang.String text)错误回调voidonMessage(java.lang.String text)报文回调voidonOpen()链接创建成功voidrun()voidsendPing()Each frame starts with two bytes of data.voidsetOneShotCache(OneshotCache<byte[]> oneShotCache)voiduploadProductContext(ProductContext intent)上传产品配置voiduploadSkillContext(SkillContext context)上传技能配置voiduploadVocabs(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, 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()
-
-