接口 IASR
-
- 所有超级接口:
IEngine<AILocalASRConfig,AILocalASRIntent,AIASRListener>
public interface IASR extends IEngine<AILocalASRConfig,AILocalASRIntent,AIASRListener>
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
cancel()
停止引擎并取消当前结果上抛,区别与stopvoid
feed(byte[] data)
feed 音频void
updateDecoder(AIUpdateListener updateListener, com.aispeech.export.engines2.bean.Decoder... decoders)
更新解码网络void
updateVocab(com.aispeech.export.Vocab vocab, AIUpdateListener updateListener)
更新词库void
updateVocabs(AIUpdateListener updateListener, com.aispeech.export.Vocab... vocabs)
批量更新更新词库
-
-
-
方法详细资料
-
feed
void feed(byte[] data)
feed 音频- 参数:
data
- pcm数据
-
cancel
void cancel()
停止引擎并取消当前结果上抛,区别与stop
-
updateVocab
void updateVocab(com.aispeech.export.Vocab vocab, AIUpdateListener updateListener)
更新词库- 参数:
vocab
- 词库内容updateListener
- 更新结果回调
-
updateVocabs
void updateVocabs(AIUpdateListener updateListener, com.aispeech.export.Vocab... vocabs)
批量更新更新词库- 参数:
vocabs
- 词库内容updateListener
- 更新结果回调
-
updateDecoder
void updateDecoder(AIUpdateListener updateListener, com.aispeech.export.engines2.bean.Decoder... decoders)
更新解码网络- 参数:
updateListener
- 更新结果回调decoders
- 解码网络
-
-