类 LocalNgramParams
- java.lang.Object
-
- com.aispeech.lite.param.BaseRequestParams
-
- com.aispeech.lite.param.SpeechParams
-
- com.aispeech.lite.param.LocalNgramParams
-
- 所有已实现的接口:
java.lang.Cloneable
public class LocalNgramParams extends SpeechParams implements java.lang.Cloneable
Created by wuwei on 18-5-11.
-
-
字段概要
-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 LocalNgramParams()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 LocalNgramParams
clone()
java.lang.String
getInputPath()
java.lang.String
getOutputPath()
void
setInputPath(java.lang.String inputPath)
按文件路径指定词库void
setOutputPath(java.lang.String outputPath)
设置输出文件路径void
setSlotData(java.lang.String slotData)
设置词库内容,每个词条一行org.json.JSONObject
toJson()
-
从类继承的方法 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, toJSON, toString
-
从类继承的方法 com.aispeech.lite.param.BaseRequestParams
getCoreType, getQuickStopWhenNoUseRecorder, getRes, getVersion, isAutoStopRecorder, isUseRecorder, setAutoStopRecorder, setCoreType, setQuickStopWhenNoUseRecorder, setRes, setTag, setUseRecorder, setVersion
-
-
-
-
方法详细资料
-
getOutputPath
public java.lang.String getOutputPath()
-
setOutputPath
public void setOutputPath(java.lang.String outputPath)
设置输出文件路径- 参数:
outputPath
- 输出文件路径
-
getInputPath
public java.lang.String getInputPath()
-
setInputPath
public void setInputPath(java.lang.String inputPath)
按文件路径指定词库- 参数:
inputPath
- 词库文件路径,每行一个词条
-
setSlotData
public void setSlotData(java.lang.String slotData)
设置词库内容,每个词条一行- 参数:
slotData
- 词库内容
-
toJson
public org.json.JSONObject toJson()
-
clone
public LocalNgramParams clone() throws java.lang.CloneNotSupportedException
- 覆盖:
clone
在类中SpeechParams
- 抛出:
java.lang.CloneNotSupportedException
-
-