类 LocalAsrParams

  • 所有已实现的接口:
    java.lang.Cloneable

    public class LocalAsrParams
    extends SpeechParams
    Created by wuwei on 18-5-14.
    • 字段详细资料

      • mode

        public int mode
        引擎模式 ASRMode
      • wakeupWordsFilePath

        public java.lang.String wakeupWordsFilePath
        唤醒词配置文件,用于oneshot场景过滤开头的唤醒词
      • wakeupWords

        public java.lang.String[] wakeupWords
        唤醒词列表,用于oneshot场景过滤开头的唤醒词
    • 构造器详细资料

      • LocalAsrParams

        public LocalAsrParams()
    • 方法详细资料

      • 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