public class AgoraAudioVadConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private float |
activePercent
active percent, if over this percent, will be recognized as speaking, default
value is 0.6
|
private float |
aggressive
aggressive factor, greater value means more aggressive, default value is 5.0
|
private int |
anaWindowSz
fft-window Size, will be used to calc rms, default value is 768
|
private int |
fftSz
fft-size, only support: 128, 256, 512, 1024, default value is 1024
|
private int |
frqInputAvailableFlag
whether Aed_InputData will contain external freq.
|
private int |
hopSz
fft-Hop Size, will be used to check, default value is 160
|
private float |
inactivePercent
inactive percent, if below this percent, will be recognized as non-speaking,
default value is 0.2
|
private float |
jointThr
joint threshold in dB, default value is 0.0
|
private int |
preStartRecognizeCount
pre start recognize count, buffer size for 10ms 16KHz 16bit 1channel PCM,
default value is 10
|
private float |
rmsThr
rms threshold in dB, default value is -40.0
|
private int |
startRecognizeCount
start recognize count, buffer size for 10ms 16KHz 16bit 1channel PCM, default
value is 10
|
private int |
stopRecognizeCount
stop recognize count, buffer size for 10ms 16KHz 16bit 1channel PCM, default
value is 6
|
private int |
useCVersionAIModule
whether to use the C version of AI submodules, default value is 0
|
private float |
voiceProbThr
voice probability threshold 0.0f ~ 1.0f, default value is 0.8
|
| Constructor and Description |
|---|
AgoraAudioVadConfig() |
AgoraAudioVadConfig(int fftSz,
int hopSz,
int anaWindowSz,
int frqInputAvailableFlag,
int useCVersionAIModule,
float voiceProbThr,
float rmsThr,
float jointThr,
float aggressive,
int startRecognizeCount,
int stopRecognizeCount,
int preStartRecognizeCount,
float activePercent,
float inactivePercent) |
| Modifier and Type | Method and Description |
|---|---|
float |
getActivePercent() |
float |
getAggressive() |
int |
getAnaWindowSz() |
int |
getFftSz() |
int |
getFrqInputAvailableFlag() |
int |
getHopSz() |
float |
getInactivePercent() |
float |
getJointThr() |
int |
getPreStartRecognizeCount() |
float |
getRmsThr() |
int |
getStartRecognizeCount() |
int |
getStopRecognizeCount() |
int |
getUseCVersionAIModule() |
float |
getVoiceProbThr() |
void |
setActivePercent(float activePercent) |
void |
setAggressive(float aggressive) |
void |
setAnaWindowSz(int anaWindowSz) |
void |
setFftSz(int fftSz) |
void |
setFrqInputAvailableFlag(int frqInputAvailableFlag) |
void |
setHopSz(int hopSz) |
void |
setInactivePercent(float inactivePercent) |
void |
setJointThr(float jointThr) |
void |
setPreStartRecognizeCount(int preStartRecognizeCount) |
void |
setRmsThr(float rmsThr) |
void |
setStartRecognizeCount(int startRecognizeCount) |
void |
setStopRecognizeCount(int stopRecognizeCount) |
void |
setUseCVersionAIModule(int useCVersionAIModule) |
void |
setVoiceProbThr(float voiceProbThr) |
java.lang.String |
toString() |
private int fftSz
private int hopSz
private int anaWindowSz
private int frqInputAvailableFlag
private int useCVersionAIModule
private float voiceProbThr
private float rmsThr
private float jointThr
private float aggressive
private int startRecognizeCount
private int stopRecognizeCount
private int preStartRecognizeCount
private float activePercent
private float inactivePercent
public AgoraAudioVadConfig()
public AgoraAudioVadConfig(int fftSz,
int hopSz,
int anaWindowSz,
int frqInputAvailableFlag,
int useCVersionAIModule,
float voiceProbThr,
float rmsThr,
float jointThr,
float aggressive,
int startRecognizeCount,
int stopRecognizeCount,
int preStartRecognizeCount,
float activePercent,
float inactivePercent)
public int getFftSz()
public void setFftSz(int fftSz)
public int getHopSz()
public void setHopSz(int hopSz)
public int getAnaWindowSz()
public void setAnaWindowSz(int anaWindowSz)
public int getFrqInputAvailableFlag()
public void setFrqInputAvailableFlag(int frqInputAvailableFlag)
public int getUseCVersionAIModule()
public void setUseCVersionAIModule(int useCVersionAIModule)
public float getVoiceProbThr()
public void setVoiceProbThr(float voiceProbThr)
public float getRmsThr()
public void setRmsThr(float rmsThr)
public float getJointThr()
public void setJointThr(float jointThr)
public float getAggressive()
public void setAggressive(float aggressive)
public int getStartRecognizeCount()
public void setStartRecognizeCount(int startRecognizeCount)
public int getStopRecognizeCount()
public void setStopRecognizeCount(int stopRecognizeCount)
public int getPreStartRecognizeCount()
public void setPreStartRecognizeCount(int preStartRecognizeCount)
public float getActivePercent()
public void setActivePercent(float activePercent)
public float getInactivePercent()
public void setInactivePercent(float inactivePercent)
public java.lang.String toString()
toString in class java.lang.Object