类 LocalAsrParams
- java.lang.Object
-
- com.aispeech.lite.param.BaseRequestParams
-
- com.aispeech.lite.param.SpeechParams
-
- com.aispeech.lite.param.LocalAsrParams
-
- 所有已实现的接口:
java.lang.Cloneable
public class LocalAsrParams extends SpeechParams
Created by wuwei on 18-5-14.
-
-
字段概要
字段 修饰符和类型 字段 说明 int
mode
引擎模式ASRMode
java.lang.String[]
wakeupWords
唤醒词列表,用于oneshot场景过滤开头的唤醒词java.lang.String
wakeupWordsFilePath
唤醒词配置文件,用于oneshot场景过滤开头的唤醒词-
从类继承的字段 com.aispeech.lite.param.SpeechParams
TAG
-
从类继承的字段 com.aispeech.lite.param.BaseRequestParams
CN_ASR_REC, CN_CLOUD_GRAMMAR, CN_DLG_ITA, CN_DOUBLE_DECODE_ASR_REC, CN_LOCAL_DIALOG, CN_LOCAL_DIALOG_RES, CN_LOCAL_GRAMMAR, CN_LOCAL_SEMANTIC, CN_LOCAL_SV, CN_LOCAL_WAKEUP, CN_LOCAL_WAKEUP_DNN, CN_SDS, CN_TTS, CN_WAKEUP_REC, CUSTOM_ASR_REC, ECHO, EN_TTS, GRAMMAR_ASR_REC, KEY_ATTACH_APPLICATION_ID, KEY_ATTACH_RECORD_ID, KEY_ATTACH_URL, KEY_CALLBACK_TYPE, KEY_CLOUD, KEY_CORE_TYPE, KEY_PAUSETIME, KEY_PROVISION, KEY_RANK, KEY_REF_TEXT, KEY_REQUEST, KEY_RES, KEY_USER_ID, KEY_USER_KEY, KEY_VERSION, RANK_100, RANK_2, RANK_4, reqJson, SPEEX, SV_CLOUD, tag, TYPE_CLOUD, TYPE_NATIVE, VAD
-
-
构造器概要
构造器 构造器 说明 LocalAsrParams()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
addDecoder(com.aispeech.export.engines2.bean.Decoder decoder)
添加解码网络LocalAsrParams
clone()
java.lang.String
getActiveDecoderList()
java.util.Map<java.lang.String,java.lang.Double>
getCustomThresholdMap()
java.util.List<com.aispeech.export.engines2.bean.Decoder>
getDecoders()
java.lang.String
getDynamicList()
java.lang.String
getExpandFnPath()
float
getFillerPenaltyScore()
boolean
getIsIgnoreThreshold()
int
getMode()
com.aispeech.export.ASRMode
getModeTrans()
float
getThreshToUploadServer()
java.lang.String
getUseDynamicBackList()
double
getUseEnglishThreshold()
double
getUseThreshold()
java.lang.String
getUseWrdSep()
java.lang.String[]
getWakeupWords()
java.lang.String
getWakeupWordsFilePath()
boolean
isUseConf()
boolean
isUseContinuousRecognition()
boolean
isUseFiller()
boolean
isUseFrameSplit()
boolean
isUseHoldConf()
boolean
isUseMaxSpeechResult()
boolean
isUseNgram()
boolean
isUsePinyin()
boolean
isUseRealBack()
boolean
isUseXbnfRec()
void
setActiveDecoderList(java.lang.String activeDecoderList)
void
setCustomThresholdMap(java.util.Map<java.lang.String,java.lang.Double> customThresholdMap)
void
setDynamicList(java.lang.String dynamicList)
void
setExpandFnPath(java.lang.String expandFnPath)
void
setFillerPenaltyScore(float fillerPenaltyScore)
void
setIsIgnoreThreshold(boolean isIgnoreThreshold)
设置是否忽略阈值,不管kernel返回的结果是大于还是小于阈值,都将结果返回给上层void
setMode(int mode)
void
setThreshToUploadServer(float threshToUploadServer)
上传大数据的阈值,识别后的结果包含置信度,启动上传大数据功能后,如果达不到阈值就会上传大数据void
setUseConf(boolean useConf)
void
setUseContinuousRecognition(boolean useContinuousRecognition)
void
setUseDynamicBackList(java.lang.String useDynamicBackList)
void
setUseDynamicList(java.lang.String dynamicList)
void
setUseEnglishThreshold(double useEnglishThreshold)
void
setUseFiller(boolean useFiller)
void
setUseFrameSplit(boolean useFrameSplit)
void
setUseHoldConf(boolean useHoldConf)
void
setUseMaxSpeechResult(boolean useMaxSpeechResult)
void
setUseNgram(boolean useNgram)
void
setUsePinyin(boolean usePinyin)
void
setUseRealBack(boolean useRealBack)
void
setUseThreshold(double useThreshold)
void
setUseWrdSep(java.lang.String useWrdSep)
void
setUseXbnfRec(boolean useXbnfRec)
void
setWakeupWords(java.lang.String[] wakeupWords)
void
setWakeupWordsFilePath(java.lang.String wakeupWords)
org.json.JSONObject
toJSON()
封装相关参数为JSON格式并返回-
从类继承的方法 com.aispeech.lite.param.SpeechParams
getAilasKey, getAiType, getDeviceId, getDumpAudioPath, getDumpTime, getFespxEngine, getIntervalTime, getMaxSpeechTimeS, getNoSpeechTimeout, getOneshotCache, getOneShotIntervalTime, getProductId, getRecordId, getSampleRate, getSaveAudioPath, getServer, getSessionId, getTag, getTopic, getUserId, getWaitingTimeout, getWakeupTime, isUseCustomFeed, isUseOneShot, setAilasKey, setAiType, setAudioType, setDeviceId, setDumpAudioPath, setDumpTime, setFespxEngine, setIntervalTime, setIsAttachAudioParam, setMaxSpeechTimeS, setNoSpeechTimeout, setOneshotCache, setOneShotIntervalTime, setProductId, setRecordId, setSampleRate, setSaveAudioPath, setServer, setSessionId, setTopic, setUseCustomFeed, setUseOneShotFunction, setUserId, setWaitingTimeout, setWakeupTime, toString
-
从类继承的方法 com.aispeech.lite.param.BaseRequestParams
getCoreType, getQuickStopWhenNoUseRecorder, getRes, getVersion, isAutoStopRecorder, isUseRecorder, setAutoStopRecorder, setCoreType, setQuickStopWhenNoUseRecorder, setRes, setTag, setUseRecorder, setVersion
-
-
-
-
方法详细资料
-
getDecoders
public java.util.List<com.aispeech.export.engines2.bean.Decoder> getDecoders()
-
setIsIgnoreThreshold
public void setIsIgnoreThreshold(boolean isIgnoreThreshold)
设置是否忽略阈值,不管kernel返回的结果是大于还是小于阈值,都将结果返回给上层
-
getIsIgnoreThreshold
public boolean getIsIgnoreThreshold()
-
addDecoder
public void addDecoder(com.aispeech.export.engines2.bean.Decoder decoder)
添加解码网络- 参数:
decoder
- 解码网络信息
-
getActiveDecoderList
public java.lang.String getActiveDecoderList()
-
setActiveDecoderList
public void setActiveDecoderList(java.lang.String activeDecoderList)
-
isUseMaxSpeechResult
public boolean isUseMaxSpeechResult()
-
setUseMaxSpeechResult
public void setUseMaxSpeechResult(boolean useMaxSpeechResult)
-
getUseDynamicBackList
public java.lang.String getUseDynamicBackList()
-
setUseDynamicBackList
public void setUseDynamicBackList(java.lang.String useDynamicBackList)
-
isUseContinuousRecognition
public boolean isUseContinuousRecognition()
-
setUseContinuousRecognition
public void setUseContinuousRecognition(boolean useContinuousRecognition)
-
getUseWrdSep
public java.lang.String getUseWrdSep()
-
setUseWrdSep
public void setUseWrdSep(java.lang.String useWrdSep)
-
getExpandFnPath
public java.lang.String getExpandFnPath()
-
isUseNgram
public boolean isUseNgram()
-
setUseNgram
public void setUseNgram(boolean useNgram)
-
setExpandFnPath
public void setExpandFnPath(java.lang.String expandFnPath)
-
isUseXbnfRec
public boolean isUseXbnfRec()
-
setUseXbnfRec
public void setUseXbnfRec(boolean useXbnfRec)
-
isUseConf
public boolean isUseConf()
-
setUseConf
public void setUseConf(boolean useConf)
-
isUsePinyin
public boolean isUsePinyin()
-
setUsePinyin
public void setUsePinyin(boolean usePinyin)
-
isUseRealBack
public boolean isUseRealBack()
-
setUseRealBack
public void setUseRealBack(boolean useRealBack)
-
isUseHoldConf
public boolean isUseHoldConf()
-
setUseHoldConf
public void setUseHoldConf(boolean useHoldConf)
-
isUseFrameSplit
public boolean isUseFrameSplit()
-
setUseFrameSplit
public void setUseFrameSplit(boolean useFrameSplit)
-
getDynamicList
public java.lang.String getDynamicList()
-
setUseDynamicList
public void setUseDynamicList(java.lang.String dynamicList)
-
setDynamicList
public void setDynamicList(java.lang.String dynamicList)
-
isUseFiller
public boolean isUseFiller()
-
setUseFiller
public void setUseFiller(boolean useFiller)
-
getFillerPenaltyScore
public float getFillerPenaltyScore()
-
setFillerPenaltyScore
public void setFillerPenaltyScore(float fillerPenaltyScore)
-
getMode
public int getMode()
-
getModeTrans
public com.aispeech.export.ASRMode getModeTrans()
-
setMode
public void setMode(int mode)
-
getCustomThresholdMap
public java.util.Map<java.lang.String,java.lang.Double> getCustomThresholdMap()
-
setCustomThresholdMap
public void setCustomThresholdMap(java.util.Map<java.lang.String,java.lang.Double> customThresholdMap)
-
getUseThreshold
public double getUseThreshold()
-
setUseThreshold
public void setUseThreshold(double useThreshold)
-
getUseEnglishThreshold
public double getUseEnglishThreshold()
-
setUseEnglishThreshold
public void setUseEnglishThreshold(double useEnglishThreshold)
-
getWakeupWordsFilePath
public java.lang.String getWakeupWordsFilePath()
-
setWakeupWordsFilePath
public void setWakeupWordsFilePath(java.lang.String wakeupWords)
-
setWakeupWords
public void setWakeupWords(java.lang.String[] wakeupWords)
-
getWakeupWords
public java.lang.String[] getWakeupWords()
-
toJSON
public org.json.JSONObject toJSON()
从类复制的说明:SpeechParams
封装相关参数为JSON格式并返回- 覆盖:
toJSON
在类中SpeechParams
- 返回:
- JSON格式的参数配置
-
clone
public LocalAsrParams clone() throws java.lang.CloneNotSupportedException
- 覆盖:
clone
在类中SpeechParams
- 抛出:
java.lang.CloneNotSupportedException
-
getThreshToUploadServer
public float getThreshToUploadServer()
-
setThreshToUploadServer
public void setThreshToUploadServer(float threshToUploadServer)
上传大数据的阈值,识别后的结果包含置信度,启动上传大数据功能后,如果达不到阈值就会上传大数据默认为1,即启动上传大数据功能后,所有音频都可以上传大数据
- 参数:
threshToUploadServer
- 阈值 取值范围 0-1
-
-