public class AICloudSemanticEngine
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Deprecated.
取消本次识别操作
|
static AICloudSemanticEngine |
createInstance()
Deprecated.
创建实例
|
void |
destroy()
Deprecated.
销毁云端识别引擎
|
void |
feedData(byte[] data)
Deprecated.
传入数据,在不使用SDK录音机时调用
|
void |
init(AICloudSemanticConfig config,
AIASRListener listener)
Deprecated.
初始化云端识别引擎。
|
void |
start(AICloudSemanticIntent intent)
Deprecated.
启动引擎
|
void |
stop()
Deprecated.
主动结束语义
|
void |
stopRecording()
Deprecated.
停止录音,等待识别结果
|
void |
triggerIntent(SkillIntent intent)
Deprecated.
主动触发意图
|
void |
updateContact(boolean addOrDelete,
org.json.JSONArray data)
Deprecated.
已废弃, 使用下面的新接口替换
|
void |
updateProductContext(AIUpdateListener listener,
ProductContext context)
Deprecated.
更新产品配置
|
void |
updateSkillPriority(org.json.JSONArray skills)
Deprecated.
已废弃, 使用下面的接口
|
void |
updateVocabs(AIUpdateListener listener,
com.aispeech.export.Vocab... vocabs)
Deprecated.
更新词库接口
|
public static AICloudSemanticEngine createInstance()
public void init(AICloudSemanticConfig config, AIASRListener listener)
config
- 初始化参数 AICloudSemanticConfig
listener
- 引擎回调 AIASRListener
public void start(AICloudSemanticIntent intent)
intent
- 启动参数public void stop()
public void stopRecording()
public void cancel()
public void feedData(byte[] data)
data
- 音频数据流public void destroy()
@Deprecated public void updateSkillPriority(org.json.JSONArray skills)
skills
- 技能排序列表 ["skillId1" , ""skillId2"","skillId3"]updateProductContext(AIUpdateListener, ProductContext)
public void updateProductContext(AIUpdateListener listener, ProductContext context)
listener
- AIUpdateListener
context
- ProductContext
usage: http://car.aispeech.com/duilite/docs/duilite/yu-yin-shi-bie/56-yun-duan-dui-hua.html@Deprecated public void updateContact(boolean addOrDelete, org.json.JSONArray data)
addOrDelete
- 删除还是增加data
- 联系人数据 ["张三","李四"]updateVocabs(AIUpdateListener, Vocab...)
public void updateVocabs(AIUpdateListener listener, com.aispeech.export.Vocab... vocabs)
更新指定词库的词条。
listener
- AIUpdateListener
上传词库结果回调监听vocabs
- Vocab
需要更新的词库列表public void triggerIntent(SkillIntent intent)
intent
- SkillIntent