public class AILocalHotWordsEngine extends BaseEngine
mBaseProcessor, TAG, tagSuffix| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
停止热词引擎
|
static boolean |
checkLibValid()
检查so是否加载成功
|
static AILocalHotWordsEngine |
createInstance()
创建实例引擎
|
void |
destroy()
销毁引擎
|
void |
feedData(byte[] data)
传入数据,在不使用SDK内部录音机时调用
|
java.lang.String |
getTag() |
void |
init(AILocalHotWordConfig config,
AILocalHotWordsListener listener)
初始化引擎
|
void |
start(AILocalHotWordIntent intent)
启动本地热词引擎
|
void |
stop()
Deprecated.
不推荐外部直接调用,仅供外置vad方案使用。
|
init, initTAG, parseConfig, parseIntent, startpublic java.lang.String getTag()
getTag in class BaseEnginepublic static AILocalHotWordsEngine createInstance()
public static boolean checkLibValid()
public void feedData(byte[] data)
data - 音频数据流
// * @see #setUseCustomFeed(boolean)public void init(AILocalHotWordConfig config, AILocalHotWordsListener listener)
config - AILocalHotWordConfiglistener - AILocalHotWordsListenerpublic void start(AILocalHotWordIntent intent)
intent - 启动参数 AILocalHotWordIntentpublic void cancel()
cancel in class BaseEngine@Deprecated public void stop()
stop in class BaseEnginepublic void destroy()
destroy in class BaseEngine