- SAMPLE_RATE_16K - 类 中的静态变量com.aispeech.lite.AISampleRate
-
16000采样率
- SAMPLE_RATE_8K - 类 中的静态变量com.aispeech.lite.AISampleRate
-
8000采样率
- SDK_VERSION - 类 中的静态变量com.aispeech.common.AIConstant
-
SDK版本
- send(String) - 接口 中的方法com.aispeech.net.IWebsocket
-
- send(byte[]) - 接口 中的方法com.aispeech.net.IWebsocket
-
- send(String) - 类 中的方法com.aispeech.net.WebsocketImpl
-
- send(byte[]) - 类 中的方法com.aispeech.net.WebsocketImpl
-
- set(Context, boolean, String) - 类 中的静态方法com.aispeech.common.Audio2RefSetting
-
- setAcousticResources(String) - 类 中的方法com.aispeech.export.config.AILocalASRConfig
-
设置声学资源
1.
- setAcousticResources(String) - 类 中的方法com.aispeech.export.config.AILocalSemanticConfig
-
设置声学资源
1.
- setAecResource(String) - 类 中的方法com.aispeech.AIEchoConfig
-
设置 ECHO 模式的 AEC 资源
1.
- setAecResource(String) - 类 中的方法com.aispeech.export.config.AILocalSignalAndWakeupConfig
-
设置aec资源
1.
- setAIEchoConfig(AIEchoConfig) - 类 中的方法com.aispeech.AIEchoConfig
-
- setAiEchoConfig(AIEchoConfig) - 类 中的静态方法com.aispeech.echo.EchoKernel
-
- setAsrppResource(String) - 类 中的方法com.aispeech.export.config.AILocalAsrppConfig
-
设置性别识别资源
1.
- setAudioRecorderType(int) - 类 中的方法com.aispeech.DUILiteConfig
-
设置录音机采集数据的方式
- setAudioSourceType(int) - 类 中的方法com.aispeech.DUILiteConfig
-
设置audioRecorder的声音源
- setAudioType(AICloudASRIntent.PCM_ENCODE_TYPE) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置 PCM 编码成其它格式,以减小传输大小。
- setAudioType(String) - 类 中的方法com.aispeech.export.intent.AICloudTTSIntent
-
- setAuthTimeout(int) - 类 中的方法com.aispeech.DUILiteConfig
-
授权网络连接超时时间
单位:毫秒 默认值:5000ms
- setBeamformingResource(String) - 类 中的方法com.aispeech.export.config.AILocalSignalAndWakeupConfig
-
beamforming 资源,beamforming 即波束成形,将多路音频数据 beamforming 成单声道音频,方便后续做唤醒,识别等
1.
- setCacheUploadMaxNumber(int) - 类 中的方法com.aispeech.DUILiteConfig
-
已过时。
- setChannels(int) - 类 中的方法com.aispeech.AIEchoConfig
-
音频总的通道数,1+1,默认为2
- setClippingRateThreshold(double) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
- setCloudVadEnable(boolean) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置是否开启服务端的vad功能,一般近场关闭,远场打开
- setComplexity(int) - 类 中的方法com.aispeech.speex.SpeexKernel
-
设置压缩的复杂度 可取值:2,3,4,5,默认为2
- setCustomWakeupWord(List<String>) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置自定义唤醒词,可用于过滤和指定唤醒词识别比如 ["你好小乐","你好小白"]
- setCustomWakeupWord(List<String>, boolean) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置自定义唤醒词和 是否过滤句首唤醒词,用于 oneshot 功能。
- setDcheck(int[]) - 类 中的方法com.aispeech.export.config.AILocalSignalAndWakeupConfig
-
设置唤醒是否开启校验,"1"表示开启校验,"0"表示不开启校验
- setDcheck(String[]) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
已过时。
- setDcheck(String[]) - 类 中的方法com.aispeech.export.intent.AIWakeupIntent
-
设置唤醒是否开启校验,"1"表示开启校验,"0"表示不开启校验
- setDeleteWord(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置删除唤醒词
须在start之前设置生效
- setDeviceId(String) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
已过时。
- setDeviceProfileDirPath(String) - 类 中的方法com.aispeech.DUILiteConfig
-
授权文件保存目录的绝对路径
取值:绝对路径字符串, e.g.
- setDictResource(String) - 类 中的方法com.aispeech.export.config.AILocalTTSConfig
-
设置合成字典
1.
- setDictResource(String, String) - 类 中的方法com.aispeech.export.config.AILocalTTSConfig
-
设置assets目录下的合成字典资源名字和对应的md5文件
- setDynamicList(List<String>) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
设置识别热词列表字符串,比如:"北京市,YOU ARE RIGHT,BLUCE,tfboys,天安门博物馆"
- setDynamicParam(String[], float[], int[]) - 类 中的方法com.aispeech.export.engines2.AILocalSignalAndWakeupEngine
-
动态调整参数,具体请参照 demo
- setDynamicParam(Map<String, ?>) - 类 中的方法com.aispeech.export.engines2.AILocalSignalAndWakeupEngine
-
设置唤醒env热更新/smode/nlms模式切换,可以在引擎初始化成功后动态设置,具体请参照 demo
- setDynamicParam(String[], float[]) - 类 中的方法com.aispeech.export.engines2.AIWakeupEngine
-
动态调整参数,只能调整唤醒词的thresh
- setDynamicParam(String) - 类 中的方法com.aispeech.export.engines2.AIWakeupEngine
-
- setEchoConfig(AIEchoConfig) - 类 中的方法com.aispeech.DUILiteConfig
-
设置 ECHO 模式的配置,其它模式下无影响
- setEnableLanguageClassifier(boolean) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置语言分类功能,默认为false,关闭
- setEnableNumberConvert(boolean) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置是否启用识别结果汉字数字转阿拉伯数字功能
- setEnableOptimization(boolean) - 类 中的方法com.aispeech.export.config.AILocalTTSConfig
-
设置是否开启cpu优化
若某些机器合成速度慢,可以关闭cpu优化功能,设置为false
- setEnablePunctuation(boolean) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置是否启用标点符号识别
- setEnableSNTime(boolean) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置rec结果增加对齐信息,默认为false,关闭
- setEnableTone(boolean) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置音调功能,默认为false,关闭
- setErrId(int) - 异常错误 中的方法com.aispeech.AIError
-
- setError(String) - 异常错误 中的方法com.aispeech.AIError
-
- setExt(String) - 异常错误 中的方法com.aispeech.AIError
-
- setExtraParameter(String, String) - 类 中的方法com.aispeech.DUILiteConfig
-
参数设置
需在init前调用生效
- setExtraParameter(String, int) - 类 中的方法com.aispeech.DUILiteConfig
-
参数设置
需在init前调用生效
- setFrontBinResource(String) - 类 中的方法com.aispeech.export.config.AILocalTTSConfig
-
设置 FrontBinResource,包含文本归一化,分词的,韵律等
1.
- setFrontBinResource(String, String) - 类 中的方法com.aispeech.export.config.AILocalTTSConfig
-
设置assets目录下的合成前端资源的名字和对应的md5文件,包含文本归一化,分词的,韵律等
- setGenderResBin(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置性别识别资源文件名,需提前放置与assets目录下
须在init之前设置才生效
- setGenderResBinPath(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置性别识别资源文件自定义绝对路径,包含文件名
须在init之前设置才生效
- setGenderResFileName(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
已过时。
- setInputContinuousAudio(boolean) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置是否输入实时的长音频,默认接受长音频为true(如果是一二级唤醒,即每个唤醒词独立且非实时,则需要设置为false,如果不设置会影响性能)
须在start之前设置生效
- setInputContinuousAudio(boolean) - 类 中的方法com.aispeech.export.intent.AIWakeupIntent
-
设置是否输入实时的长音频,默认接受长音频为true(如果是一二级唤醒,即每个唤醒词独立且非实时,则需要设置为false,如果不设置会影响性能)
当设置为false时,每次送一段音频段都会给予是否唤醒的反馈,如果没有被唤醒,则抛出wakeupWord:null, confidence:0的信息
- setInputJson(JSONObject) - 异常错误 中的方法com.aispeech.AIError
-
- setIntervalTime(int) - 类 中的方法com.aispeech.DUILiteConfig
-
设置录音机录音间隔
- setLast(boolean) - 类 中的方法com.aispeech.AIResult
-
- setLmId(String) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置识别lmid
- setLocalVadEnable(boolean) - 类 中的方法com.aispeech.export.config.AICloudASRConfig
-
设置是否启用本地vad,一般都会打开,
- setLowThreshold(float[]) - 类 中的方法com.aispeech.export.config.AILocalSignalAndWakeupConfig
-
设置大音量场景下的预唤醒阈值,是否需要设置和唤醒资源有关系
- setMaxSpeechTimeS(int) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置音频最大录音时长,达到该值将取消语音引擎并抛出异常
允许的最大录音时长 单位秒
0 表示无最大录音时长限制
默认大小为60S
- setMaxSpeechTimeS(int) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
设置音频最大录音时长,达到该值将取消语音引擎并抛出异常
允许的最大录音时长 单位秒
0 表示无最大录音时长限制
默认大小为60S
- setMaxSpeechTimeS(int) - 类 中的方法com.aispeech.export.intent.AILocalAsrppIntent
-
设置音频最大录音时长,达到该值将取消语音引擎并抛出异常
允许的最大录音时长 单位秒
0 表示无最大录音时长限制
默认大小为60S
- setMaxSpeechTimeS(int) - 类 中的方法com.aispeech.export.intent.AILocalSemanticIntent
-
设置音频最大录音时长,达到该值将取消语音引擎并抛出异常
允许的最大录音时长 单位秒
0 表示无最大录音时长限制
默认大小为60S
- setMaxVolumeMode(boolean) - 类 中的方法com.aispeech.DUILiteConfig
-
设置开启线性四麦大音量检测模式
- setMicNumber(int) - 类 中的方法com.aispeech.AIEchoConfig
-
mic数,默认为1
- setMonitorUploadEnable(boolean) - 类 中的方法com.aispeech.DUILiteConfig
-
设置 SDK信息(异常监控信息/音频)是否上传,默认上传
- setMp3Quality(String) - 类 中的方法com.aispeech.export.intent.AICloudTTSIntent
-
- setNbest(int) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置 nbest
- setNetbinResource(String) - 类 中的方法com.aispeech.export.config.AILocalASRConfig
-
设置网络资源
1.
- setNetbinResource(String) - 类 中的方法com.aispeech.export.config.AILocalSemanticConfig
-
设置网络资源
1.
- setNoSpeechTimeOut(int) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置无语音超时时长,单位毫秒,默认值为5000ms ;如果达到该设置值时,自动停止录音
设置为0表示不进行语音超时判断
- setNoSpeechTimeOut(int) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
设置无语音超时时长,单位毫秒,默认值为5000ms ;如果达到该设置值时,自动停止录音并放弃请求识别内核
- setNoSpeechTimeOut(int) - 类 中的方法com.aispeech.export.intent.AILocalAsrppIntent
-
设置无语音超时时长,单位毫秒,默认值为5000ms ;如果达到该设置值时,自动停止录音并放弃请求识别内核
- setNoSpeechTimeOut(int) - 类 中的方法com.aispeech.export.intent.AILocalSemanticIntent
-
设置无语音超时时长,单位毫秒,默认值为5000ms ;如果达到该设置值时,自动停止录音并放弃请求识别内核
- setOneShotCacheTime(int) - 类 中的方法com.aispeech.export.config.AIWakeupConfig
-
设置oneshot功能下需要缓存的音频时长,根据具体的硬件性能和唤醒词长度调节。
- setOneShotCacheTime(int) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置oneshot功能下需要缓存的音频时长,根据具体的硬件性能和唤醒词长度调节
- setOneshotOptimization(boolean) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
初始化前设置有效,oneshot 功能优化,当用户说 唤醒词+命令词 时,vad在唤醒词后即结束,导致asr识别结果是空,
可打开此功能,此功能会保留唤醒词后vad结束后的音频,即命令词的音频,然后重新asr识别
- setPauseTime(int) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置VAD右边界
- setPauseTime(int) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
设置VAD右边界
- setPauseTime(int) - 类 中的方法com.aispeech.export.intent.AILocalSemanticIntent
-
- setProductId(String) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
已过时。
- setQuality(int) - 类 中的方法com.aispeech.speex.SpeexKernel
-
设置压缩后ogg音频质量,取值范围:1~10,越大质量越好,cpu占用越高。
- setRealback(boolean) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置是否使用实时反馈功能
- setRealBack(boolean) - 类 中的方法com.aispeech.export.intent.AICloudTTSIntent
-
设置是否开启实时反馈,默认开启为true
- setRecChannel(int) - 类 中的方法com.aispeech.AIEchoConfig
-
默认为1,即左通道为rec录音音频,右通道为play参考音频(播放音频)
若设置为2, 通道会互换,即左通道为play参考音频(播放音频),右通道为rec录音音频
- setRecordId(String) - 异常错误 中的方法com.aispeech.AIError
-
- setRecordId(String) - 类 中的方法com.aispeech.AIResult
-
- setRecPinyinWhenLast(String, String) - 类 中的方法com.aispeech.common.JSONResultParser
-
语音结束时rec为空,把上一次的结果放进来
- setResourceType(String) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置识别引擎的资源类型,默认为comm
- setResultObject(Object) - 类 中的方法com.aispeech.AIResult
-
- setResultType(int) - 类 中的方法com.aispeech.AIResult
-
- setRollBackTime(int) - 类 中的方法com.aispeech.export.config.AILocalSignalAndWakeupConfig
-
oneshot回退的时间,单位为ms(只有主唤醒词才会回退音频,即major为1)
- setSampleRate(int) - 类 中的方法com.aispeech.speex.SpeexKernel
-
设置音频采样率:只支持8k和16K,默认为16k
- setSaveAudioFilePath(String) - 类 中的方法com.aispeech.export.config.AILocalSignalAndWakeupConfig
-
设置音频保存路径,会保存原始多声道音频和经过 beamforming 后的单声道音频
如果设置了就会保存,没设置不会保存
- setSaveAudioFilePath(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置原始单路音频保存路径,例如"/sdcard/speech"。
- setSaveAudioFilePath(String) - 类 中的方法com.aispeech.export.intent.AILocalTTSIntent
-
设置合成的音频的全路径包含文件名
- setSaveAudioPath(String) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置保存的音频路径,最终的音频路径为path + recordId + ".ogg"
- setSaveAudioPath(String) - 类 中的方法com.aispeech.export.intent.AICloudTTSIntent
-
设置合成音的保存路径
- setSaveAudioPath(String) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
设置保存的音频路径,最终的音频路径为path + local_asr_+ recordId + ".pcm"
- setSaveAudioPath(String) - 类 中的方法com.aispeech.export.intent.AILocalSemanticIntent
-
设置保存的音频路径,最终的音频路径为path + local_semantic_+ recordId + ".pcm"
- setSavedDirPath(String) - 类 中的方法com.aispeech.AIEchoConfig
-
AEC保存的音频文件目录,
aec之前的原始音频文件格式:echoSavedPath/echo_in_时间戳.pcm,
aec之后的一路音频文件格式:echoSavedPath/echo_out_时间戳.pcm
- setSelfCustomWakeupScore(int) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置自定义唤醒词得分, 默认为0
- setSemanticLuaFolder(String) - 类 中的方法com.aispeech.export.config.AILocalSemanticConfig
-
设置语义lua资源所在文件夹
1.
- setSemanticResourceFolder(String) - 类 中的方法com.aispeech.export.config.AILocalSemanticConfig
-
设置语义资源文件夹
1.
- setServer(String) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置服务器地址,默认不用设置
- setServer(String) - 类 中的方法com.aispeech.export.intent.AICloudTTSIntent
-
设置云端tts合成请求地址
- setSNRValidThreshold(double) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置SNR检查的有效阈值,低于该阈值声纹训练会无效,同时抛出错误
须在start之前设置生效
- setSpeaker(String) - 类 中的方法com.aispeech.export.intent.AICloudTTSIntent
-
设置合成音类型
- setSpeakerName(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置训练或删除的说话人名字
须在start之前设置生效
- setSpeed(String) - 类 中的方法com.aispeech.export.intent.AICloudTTSIntent
-
设置合成音语速
- setSpeed(float) - 类 中的方法com.aispeech.export.intent.AILocalTTSIntent
-
设置语音合成的速度
- setSpeexSavedPath(String) - 类 中的方法com.aispeech.speex.SpeexKernel
-
设置SPEEX保存的音频文件目录
speex压缩之前的原始pcm音频文件格式:speexSavedPath/speex_in_时间戳.pcm
speex压缩之后的ogg音频文件格式:speexSavedPath/speex_out_时间戳.ogg
- setStreamType(int) - 类 中的方法com.aispeech.export.intent.AICloudTTSIntent
-
设置音频流通道
- setStreamType(int) - 类 中的方法com.aispeech.export.intent.AILocalTTSIntent
-
设置播放器的stream type,默认为AudioManager.STREAM_MUSIC
- setTextType(String) - 类 中的方法com.aispeech.export.intent.AICloudTTSIntent
-
设置合成的文本类型
- setThreadAffinity(int) - 类 中的方法com.aispeech.DUILiteConfig
-
设置算法绑定线程开关,降低CPU占用,默认值:0
取值:具体的核id
- setThreshold(float[]) - 类 中的方法com.aispeech.export.config.AILocalSignalAndWakeupConfig
-
设置唤醒词对应阈值,是否需要设置和唤醒资源有关系
- setThreshold(String[]) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
已过时。
- setTimestamp(Long) - 异常错误 中的方法com.aispeech.AIError
-
- setTimestamp(long) - 类 中的方法com.aispeech.AIResult
-
设置时间戳
- setTrainNum(int) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置注册时训练声纹的次数。
- setUpdateTrailProfileToOnlineProfile(boolean) - 类 中的方法com.aispeech.DUILiteConfig
-
当试用授权文件认证检查时,是否尝试更新为在线授权文件。
- setUpgradeAudioPath(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置用于自动升级声纹模型的原始声纹音频的保存路径,例如"/sdcard/speech" 。
- setUploadAudioLevel(int) - 类 中的方法com.aispeech.DUILiteConfig
-
已过时。
- setUploadAudioLevel(int, int) - 类 中的方法com.aispeech.DUILiteConfig
-
已过时。
- setUploadUrl(String) - 类 中的方法com.aispeech.DUILiteConfig
-
设置大数据上传url地址
取值:字符串
是否必需:否
默认值:http://log.aispeech.com
- setUseCache(boolean) - 类 中的方法com.aispeech.export.config.AICloudTTSConfig
-
设置是否使用缓存,默认为true
缓存TTS缓存信息和音频文件,存放在应用外部缓存目录下的 ttsCache 文件夹下。
- setUseCache(boolean, String) - 类 中的方法com.aispeech.export.config.AICloudTTSConfig
-
设置是否使用缓存和缓存的文件夹
- setUseCache(boolean) - 类 中的方法com.aispeech.export.config.AILocalTTSConfig
-
设置是否使用缓存,默认为true
缓存TTS缓存信息和音频文件,存放在应用外部缓存目录下的 ttsCache 文件夹下。
- setUseCache(boolean, String) - 类 中的方法com.aispeech.export.config.AILocalTTSConfig
-
设置是否使用缓存和缓存的文件夹
- setUseConf(boolean) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
设置是否开启置信度
- setUseConf(boolean) - 类 中的方法com.aispeech.export.intent.AILocalSemanticIntent
-
设置是否开启置信度
- setUseCustomFeed(boolean) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置是否自行feed数据,不使用内部录音机(包括MockRecord和AIAudioRecord),
须init之前调用, 默认为false
- setUseCustomFeed(boolean) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置是否自行feed数据,不使用内部录音机(包括MockRecord和AIAudioRecord)
- setUseCustomFeed(boolean) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
设置是否自行feed数据,不使用内部录音机(包括MockRecord和AIAudioRecord),默认为false
- setUseCustomFeed(boolean) - 类 中的方法com.aispeech.export.intent.AILocalAsrppIntent
-
设置是否自行feed数据,不使用内部录音机(包括MockRecord和AIAudioRecord),默认为false
- setUseCustomFeed(boolean) - 类 中的方法com.aispeech.export.intent.AILocalSemanticIntent
-
设置是否自行feed数据,不使用内部录音机(包括MockRecord和AIAudioRecord),默认为false
- setUseCustomFeed(boolean) - 类 中的方法com.aispeech.export.intent.AILocalSignalAndWakeupIntent
-
设置是否自行feed数据
默认false,使用内部录音机
true 用户调用 feedData 方法输入音频数据
- setUseCustomFeed(boolean) - 类 中的方法com.aispeech.export.intent.AIWakeupIntent
-
设置是否自行feed数据
默认false,使用内部录音机
true 用户调用 feedData 方法输入音频数据
- setUseHoldConf(boolean) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
设置是否开启ngram置信度
- setUseOneShot(boolean) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
是否使用oneshot功能,default is false
true 使用one shot功能,唤醒后立马起识别
false 不使用oneshot,合成后启动识别,或只是启动识别
- setUseOneShot(boolean, int) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置是否使用oneshot功能,以及oneshot功能的唤醒词和命令词之间的时间间隔阈值,
如果小于该阈值,就认为不是oneshot,如果大于该阈值,就认为是oneshot
- setUseOneShot(boolean) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
是否使用oneshot功能,default is false
true 使用one shot功能,唤醒后立马起识别
false 不使用oneshot,合成后启动识别,或只是启动识别
- setUseOneShot(boolean, int) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
设置是否使用oneshot功能,以及oneshot功能的唤醒词和命令词之间的时间间隔阈值,
如果小于该阈值,就认为不是oneshot,如果大于该阈值,就认为是oneshot
- setUseOneShot(boolean) - 类 中的方法com.aispeech.export.intent.AILocalSemanticIntent
-
是否使用oneshot功能,default is false
true 使用one shot功能,唤醒后立马起识别
false 不使用oneshot,合成后启动识别,或只是启动识别
- setUseOneShot(boolean, int) - 类 中的方法com.aispeech.export.intent.AILocalSemanticIntent
-
设置是否使用oneshot功能,以及oneshot功能的唤醒词和命令词之间的时间间隔阈值,
如果小于该阈值,就认为不是oneshot,如果大于该阈值,就认为是oneshot
- setUseOneShot(boolean) - 类 中的方法com.aispeech.export.intent.AIWakeupIntent
-
设置是否使用 oneshot 功能,default is false
oneshot 功能即 唤醒词+命令词,如用户说:你好小弛,打开设置。
- setUseOneShotFunction(boolean) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置是否使用oneshot功能,默认为false
须在start之前设置才生效,默认为false
- setUsePinyin(boolean) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
设置是否开启拼音输出
- setUsePinyin(boolean) - 类 中的方法com.aispeech.export.intent.AILocalSemanticIntent
-
设置是否开启拼音输出
- setUseRealBack(boolean) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
设置是否开启实时反馈
- setUseRefText(boolean) - 类 中的方法com.aispeech.export.config.AILocalSemanticConfig
-
设置是否只传入语义文本功能,此时关闭录音机和asr
- setUserId(String) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置用户标示
- setUseSSML(boolean) - 类 中的方法com.aispeech.export.intent.AILocalTTSIntent
-
设置是否使用ssml 默认不使用为false
- setUseXbnfRec(boolean) - 类 中的方法com.aispeech.export.intent.AILocalASRIntent
-
设置是否启用基于语法的语义识别
- setUseXbnfRec(boolean) - 类 中的方法com.aispeech.export.intent.AILocalSemanticIntent
-
设置是否启用基于语法的语义识别
- setVadEnable(boolean) - 类 中的方法com.aispeech.export.config.AILocalASRConfig
-
设置是否启用vad,默认为true
- setVadEnable(boolean) - 类 中的方法com.aispeech.export.config.AILocalAsrppConfig
-
设置是否启用本地vad
- setVadEnable(boolean) - 类 中的方法com.aispeech.export.config.AILocalSemanticConfig
-
设置是否启用vad,默认为true
- setVadEnable(boolean) - 类 中的方法com.aispeech.export.intent.AIWakeupIntent
-
设置是否启动vad功能,需要资源配合。
- setVadPauseTime(int) - 类 中的方法com.aispeech.export.config.AILocalAsrppConfig
-
设置VAD右边界
- setVadResBinPath(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置VAD资源的绝对路径,包括文件名,
需要在init之前调用
- setVadResource(String) - 类 中的方法com.aispeech.export.config.AICloudASRConfig
-
设置本地vad资源
1.
- setVadResource(String) - 类 中的方法com.aispeech.export.config.AILocalASRConfig
-
设置本地vad资源
1.
- setVadResource(String) - 类 中的方法com.aispeech.export.config.AILocalAsrppConfig
-
设置本地vad资源
1.
- setVadResource(String) - 类 中的方法com.aispeech.export.config.AILocalSemanticConfig
-
设置本地vad资源
1.
- setVadResource(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置VAD资源名字
需要在init之前调用
- setVoiceDetectTimeOut(int) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置声纹环境噪声检测定时器,单位毫秒,默认值为5000ms ;如果达到该设置值时,则会提示错误,并重新开启新的一轮检测。
- setVolume(String) - 类 中的方法com.aispeech.export.intent.AICloudTTSIntent
-
设置音量大小
- setVolume(int) - 类 中的方法com.aispeech.export.intent.AILocalTTSIntent
-
设置语音合成的音量
- setVprintMode(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
- setVprintModuleFilePath(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置生成的声纹模型保存路径,包含文件名
须在init之前设置才生效
- setVprintResBin(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置声纹资源文件名,需提前放置与assets目录下
须在init之前设置才生效
- setVprintResBinPath(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置声纹资源文件自定义绝对路径,包含文件名
须在init之前设置才生效
- setVprintResFileName(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
已过时。
- setVprintWord(String[]) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置声纹唤醒词
须在start之前设置生效
- setWaitingTimeout(int) - 类 中的方法com.aispeech.export.intent.AICloudASRIntent
-
设置等待识别结果超时时间 单位毫秒,小于或等于0则不设置超时,默认5000ms.
- setWakeupDcheck(String[]) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置唤醒是否开启校验,"1"表示开启校验,"0"表示不开启校验
须在start之前设置生效
- setWakeupResBin(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置唤醒资源文件名,需提前放置与assets目录下
须在init之前设置才生效
- setWakeupResBinPath(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置唤醒资源文件自定义绝对路径,包含文件名
须在init之前设置才生效
- setWakeupResFileName(String) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
已过时。
- setWakeupResource(String) - 类 中的方法com.aispeech.export.config.AILocalSignalAndWakeupConfig
-
唤醒资源
1.
- setWakeupResource(String) - 类 中的方法com.aispeech.export.config.AIWakeupConfig
-
设置唤醒资源
1.
- setWakeupThreshold(String[]) - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
设置声纹唤醒词的阈值
须在start之前设置生效
- setWakeupWord(String[], int[]) - 类 中的方法com.aispeech.export.config.AILocalSignalAndWakeupConfig
-
设置唤醒词以及是否作为主唤醒词,主唤醒词为1,副唤醒词为0
- setWakeupWord(String[], float[]) - 类 中的方法com.aispeech.export.intent.AIWakeupIntent
-
设置唤醒词列表
- speak(AICloudTTSIntent, String, String) - 类 中的方法com.aispeech.export.engines2.AICloudTTSEngine
-
- speak(AILocalTTSIntent, String, String) - 类 中的方法com.aispeech.export.engines2.AILocalTTSEngine
-
合成并播放
- SpeexKernel - com.aispeech.speex中的类
-
pcm 转 ogg
- SpeexKernel(SpeexKernelListener) - 类 的构造器com.aispeech.speex.SpeexKernel
-
- SpeexKernelListener - com.aispeech.speex中的接口
-
- start() - 类 中的方法com.aispeech.analysis.AudioUpload
-
- start() - 类 中的方法com.aispeech.analysis.IAnalysisAudio.AnalysisAudioEmpty
-
- start() - 接口 中的方法com.aispeech.analysis.IAnalysisAudio
-
- start(AICloudASRIntent) - 类 中的方法com.aispeech.export.engines2.AICloudASREngine
-
启动录音,开始语音识别
- start(AILocalASRIntent) - 类 中的方法com.aispeech.export.engines2.AILocalASREngine
-
启动录音,开始语音识别
- start(AILocalAsrppIntent) - 类 中的方法com.aispeech.export.engines2.AILocalAsrppEngine
-
启动录音,开始语音识别
- start() - 类 中的方法com.aispeech.export.engines2.AILocalNREngine
-
启动本地nr引擎
- start(AILocalSignalAndWakeupIntent) - 类 中的方法com.aispeech.export.engines2.AILocalSignalAndWakeupEngine
-
启动信号处理模块和唤醒引擎
- start() - 类 中的方法com.aispeech.export.engines2.AILocalVadEngine
-
启动本地vad引擎
- start() - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
启动声纹引擎
- start(AIWakeupIntent) - 类 中的方法com.aispeech.export.engines2.AIWakeupEngine
-
开启唤醒,如果使用内部录音机的话一并开启
- startBuild(String, String) - 类 中的方法com.aispeech.export.engines2.AILocalGrammarEngine
-
构建语法,生成或更新本地识别需要的资源,如果资源文件不存在,则生成,如果存在,则覆盖
- startKernel() - 类 中的方法com.aispeech.echo.EchoKernel
-
启动echo内核
- startKernel() - 类 中的方法com.aispeech.speex.SpeexKernel
-
启动speex内核
- startWithASR(AILocalSemanticIntent) - 类 中的方法com.aispeech.export.engines2.AILocalSemanticEngine
-
启动录音,开始语音识别
- startWithText(String) - 类 中的方法com.aispeech.export.engines2.AILocalSemanticEngine
-
启动引擎,输入文本
- stop() - 类 中的方法com.aispeech.analysis.AudioUpload
-
- stop() - 类 中的方法com.aispeech.analysis.IAnalysisAudio.AnalysisAudioEmpty
-
- stop() - 接口 中的方法com.aispeech.analysis.IAnalysisAudio
-
- stop() - 类 中的方法com.aispeech.export.engines2.AICloudASREngine
-
停止录音,等待识别结果
- stop() - 类 中的方法com.aispeech.export.engines2.AICloudTTSEngine
-
- stop() - 类 中的方法com.aispeech.export.engines2.AILocalASREngine
-
停止录音,等待识别结果
- stop() - 类 中的方法com.aispeech.export.engines2.AILocalAsrppEngine
-
停止录音,等待识别结果
- stop() - 类 中的方法com.aispeech.export.engines2.AILocalNREngine
-
停止引擎
- stop() - 类 中的方法com.aispeech.export.engines2.AILocalSemanticEngine
-
停止录音,等待识别结果
- stop() - 类 中的方法com.aispeech.export.engines2.AILocalSignalAndWakeupEngine
-
停止信号处理模块和唤醒引擎
该方法会停止接收录音数据和停止信号处理,唤醒,程序退出时可以调用
- stop() - 类 中的方法com.aispeech.export.engines2.AILocalTTSEngine
-
停止合成和播放
- stop() - 类 中的方法com.aispeech.export.engines2.AILocalVadEngine
-
停止本地vad引擎
- stop() - 类 中的方法com.aispeech.export.engines2.AILocalWakeupAndVprintEngine
-
停止声纹引擎
- stop() - 类 中的方法com.aispeech.export.engines2.AIWakeupEngine
-
关闭唤醒,如果使用内部录音机的话一并关闭
- stopKernel() - 类 中的方法com.aispeech.echo.EchoKernel
-
- stopKernel() - 类 中的方法com.aispeech.speex.SpeexKernel
-
停止speex内核
- string() - 接口 中的方法com.aispeech.net.IResponse
-
- string() - 类 中的方法com.aispeech.net.ResponseImpl
-
- stringToJSON(String) - 异常错误 中的方法com.aispeech.AIError
-
- success() - 接口 中的方法com.aispeech.DUILiteSDK.InitListener
-
- switchToSpeaker(String) - 类 中的方法com.aispeech.export.intent.AILocalTTSIntent
-
- synthesize(AILocalTTSIntent, String, String) - 类 中的方法com.aispeech.export.engines2.AILocalTTSEngine
-
只合成,不播放,同时抛出实时合成音频流