public class AILocalLASRIntent extends BaseIntent
Modifier and Type | Field and Description |
---|---|
static int |
USE_REC_LOW |
static int |
USE_REC_NATIVE |
static int |
USE_REC_UPPERCASE |
needCopyFeedData, needCopyResultData, useCustomFeed
Constructor and Description |
---|
AILocalLASRIntent() |
Modifier and Type | Method and Description |
---|---|
IFespxEngine |
getFespxEngine() |
java.lang.String |
getLAsrParamJson() |
PhraseParams[] |
getPhraseParams() |
int |
getUseRecUppercase() |
boolean |
isUsePhrase() |
boolean |
isUseTprocess() |
boolean |
isUseTxtSmooth() |
void |
setFespxEngine(IFespxEngine fespxEngine)
设置关联的信号处理引擎AILocalSignalAndWakeupEngine实例,只在使用内部录音机且多麦模式下才需要设置
|
void |
setPhraseParams(PhraseParams[] phraseParams)
热词词表
|
void |
setUsePhrase(boolean usePhrase)
是否启用热词
|
void |
setUseRecUppercase(int useRecUppercase)
英文大小写
AILocalLASRIntent.USE_REC_NATIVE 和资源词表的大小写相同
AILocalLASRIntent.USE_REC_LOW rec结果为小写
AILocalLASRIntent.USE_REC_UPPERCASE rec结果为大写
|
void |
setUseTprocess(boolean useTprocess)
逆文本,将识别的中文数字改成阿拉伯数字
|
void |
setUseTxtSmooth(boolean useTxtSmooth)
是否启用口语顺滑
|
java.lang.String |
toString() |
isNeedCopyFeedData, isNeedCopyResultData, isUseCustomFeed, setNeedCopyFeedData, setNeedCopyResultData, setUseCustomFeed
public static final int USE_REC_NATIVE
public static final int USE_REC_LOW
public static final int USE_REC_UPPERCASE
public boolean isUseTprocess()
public void setUseTprocess(boolean useTprocess)
useTprocess
- 是否启用,默认 truepublic boolean isUseTxtSmooth()
public void setUseTxtSmooth(boolean useTxtSmooth)
useTxtSmooth
- 是否启用,默认 truepublic int getUseRecUppercase()
public void setUseRecUppercase(int useRecUppercase)
useRecUppercase
- 默认 AILocalLASRIntent.USE_REC_LOWpublic boolean isUsePhrase()
public void setUsePhrase(boolean usePhrase)
usePhrase
- 是否启用,默认 falsepublic PhraseParams[] getPhraseParams()
public void setPhraseParams(PhraseParams[] phraseParams)
phraseParams
- 热词数组public IFespxEngine getFespxEngine()
public void setFespxEngine(IFespxEngine fespxEngine)
fespxEngine
- 引擎实例java.lang.RuntimeException
- 内部录音机且多麦模式下没设置public java.lang.String getLAsrParamJson()
public java.lang.String toString()
toString
in class java.lang.Object