类 AIFespCarConfig
- java.lang.Object
-
- com.aispeech.export.config.AIFespCarConfig
-
public class AIFespCarConfig extends java.lang.Object
Created by wanbing on 2021/9/6 11:38
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
AIFespCarConfig.Builder
static class
AIFespCarConfig.WakeupWord
唤醒词
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.String
getAecResource()
java.lang.String
getBeamformingResource()
int
getBoundary()
int[]
getDcheck()
Languages
getLanguage()
float[]
getLowThreshold()
int[]
getMajors()
AIOneshotConfig
getOneshotConfig()
int[]
getRanges()
int
getRightMarginFrame()
java.lang.String
getSspeResource()
int
getSspeType()
int
getStateFrame()
float[]
getThreshold()
java.lang.String
getWakeupResource()
AIFespCarConfig.WakeupWord
getWakeupWord()
java.lang.String[]
getWakeupWordArray()
boolean
isSspe()
boolean
isVad()
void
setAecResource(java.lang.String aecResource)
设置aec资源void
setBeamformingResource(java.lang.String beamformingResource)
beamforming 资源,beamforming 即波束成形,将多路音频数据 beamforming 成单声道音频,方便后续做唤醒,识别等void
setDcheck(int[] dcheck)
设置唤醒是否开启校验,"1"表示开启校验,"0"表示不开启校验void
setLanguage(Languages language)
设置唤醒词语种void
setOneshotConfig(AIOneshotConfig oneshotConfig)
void
setSspeResource(java.lang.String sspeResource)
sspe 资源, 包含 AEC BSS 等,不同项目含义有所差别void
setSspeType(int sspeType)
设置FespCar类型void
setThreshold(float[] threshold)
设置唤醒词对应阈值,是否需要设置和唤醒资源有关系void
setVad(boolean vad)
void
setWakeupResource(java.lang.String wakeupResource)
唤醒资源void
setWakeupWord(java.lang.String[] wakeupWord, int[] majors)
设置唤醒词以及是否作为主唤醒词,主唤醒词为1,副唤醒词为0java.lang.String
toString()
-
-
-
方法详细资料
-
getSspeType
public int getSspeType()
-
setSspeType
public void setSspeType(int sspeType)
设置FespCar类型- 参数:
sspeType
-
-
isVad
public boolean isVad()
-
setVad
public void setVad(boolean vad)
-
getOneshotConfig
public AIOneshotConfig getOneshotConfig()
-
setOneshotConfig
public void setOneshotConfig(AIOneshotConfig oneshotConfig)
-
getBoundary
public int getBoundary()
-
getLanguage
public Languages getLanguage()
-
getStateFrame
public int getStateFrame()
-
getRightMarginFrame
public int getRightMarginFrame()
-
getSspeResource
public java.lang.String getSspeResource()
-
setSspeResource
public void setSspeResource(java.lang.String sspeResource)
sspe 资源, 包含 AEC BSS 等,不同项目含义有所差别1. 如在 sd 里设置为绝对路径 如/sdcard/speech/***.bin
2. 如在 assets 里设置为名称
sspe 资源,和
wakeupResource
配合使用。设置 sspe 资源时,无需设置
aecResource
和beamformingResource
- 参数:
sspeResource
- sspe 资源
-
isSspe
public boolean isSspe()
-
setWakeupWord
public void setWakeupWord(java.lang.String[] wakeupWord, int[] majors)
设置唤醒词以及是否作为主唤醒词,主唤醒词为1,副唤醒词为0- 参数:
wakeupWord
- 唤醒词,如 ["ni hao xiao chi", "ni hao xiao le","bu ding bu ding"] 还需要设置唤醒词相应的阈值setThreshold(float[])
和setLowThreshold(float[])
majors
- 是否是主唤醒词,如 [1,0,0]
-
getThreshold
public float[] getThreshold()
-
setThreshold
public void setThreshold(float[] threshold)
设置唤醒词对应阈值,是否需要设置和唤醒资源有关系- 参数:
threshold
- 置信度
-
getLowThreshold
public float[] getLowThreshold()
-
getWakeupWordArray
public java.lang.String[] getWakeupWordArray()
-
getWakeupWord
public AIFespCarConfig.WakeupWord getWakeupWord()
-
getMajors
public int[] getMajors()
-
getDcheck
public int[] getDcheck()
-
getRanges
public int[] getRanges()
-
setDcheck
public void setDcheck(int[] dcheck)
设置唤醒是否开启校验,"1"表示开启校验,"0"表示不开启校验- 参数:
dcheck
- 是否开启校验,如 [1,0,0]
-
getWakeupResource
public java.lang.String getWakeupResource()
-
setWakeupResource
public void setWakeupResource(java.lang.String wakeupResource)
唤醒资源1. 如在 sd 里设置为绝对路径 如/sdcard/speech/***.bin
2. 如在 assets 里设置为名称
- 参数:
wakeupResource
- 唤醒资源
-
getBeamformingResource
public java.lang.String getBeamformingResource()
-
setBeamformingResource
public void setBeamformingResource(java.lang.String beamformingResource)
beamforming 资源,beamforming 即波束成形,将多路音频数据 beamforming 成单声道音频,方便后续做唤醒,识别等1. 如在 sd 里设置为绝对路径 如/sdcard/speech/***.bin
2. 如在 assets 里设置为名称
- 参数:
beamformingResource
- beamforming 资源 兼容老接口,会将beamform资源对接上sspe资源
-
getAecResource
public java.lang.String getAecResource()
-
setAecResource
public void setAecResource(java.lang.String aecResource)
设置aec资源1. 如在 sd 里设置为绝对路径 如/sdcard/speech/***.bin
2. 如在 assets 里设置为名称
- 参数:
aecResource
- aec资源
-
toString
public java.lang.String toString()
- 覆盖:
toString
在类中java.lang.Object
-
-