public class AgoraAudioVadConfigV2
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private float |
activePercent
The percentage of active frames required in startRecognizeCount frames to
enter speaking state.
|
private float |
inactivePercent
The percentage of inactive frames required in stopRecognizeCount frames to
enter stop speaking state.
|
private int |
preStartRecognizeCount
The number of audio frames to save before entering the start speaking state.
|
private int |
startRecognizeCount
The number of audio frames required to confirm the speaking state.
|
private int |
startRmsThreshold
rms: for rmsThreshold, the higher the value, the more sensitive to voice
activity.
|
private int |
startVoiceProb
voice prob:
The lower the gate threshold, the higher the probability that a frame is
judged as activity,
which allows the start phase to begin earlier.
|
private int |
stopRecognizeCount
The number of audio frames required to confirm the stop speaking state.
|
private int |
stopRmsThreshold
rms: for rmsThreshold, the higher the value, the more sensitive to voice
activity.
|
private int |
stopVoiceProb
voice prob:
The lower the gate threshold, the higher the probability that a frame is
judged as activity,
which allows the start phase to begin earlier.
|
| Constructor and Description |
|---|
AgoraAudioVadConfigV2() |
AgoraAudioVadConfigV2(int preStartRecognizeCount,
int startRecognizeCount,
int stopRecognizeCount,
float activePercent,
float inactivePercent,
int startVoiceProb,
int stopVoiceProb,
int startRmsThreshold,
int stopRmsThreshold) |
| Modifier and Type | Method and Description |
|---|---|
float |
getActivePercent() |
float |
getInactivePercent() |
int |
getPreStartRecognizeCount() |
int |
getStartRecognizeCount() |
int |
getStartRmsThreshold() |
int |
getStartVoiceProb() |
int |
getStopRecognizeCount() |
int |
getStopRmsThreshold() |
int |
getStopVoiceProb() |
void |
setActivePercent(float activePercent) |
void |
setInactivePercent(float inactivePercent) |
void |
setPreStartRecognizeCount(int preStartRecognizeCount) |
void |
setStartRecognizeCount(int startRecognizeCount) |
void |
setStartRmsThreshold(int startRmsThreshold) |
void |
setStartVoiceProb(int startVoiceProb) |
void |
setStopRecognizeCount(int stopRecognizeCount) |
void |
setStopRmsThreshold(int stopRmsThreshold) |
void |
setStopVoiceProb(int stopVoiceProb) |
java.lang.String |
toString() |
private int preStartRecognizeCount
private int startRecognizeCount
private int stopRecognizeCount
private float activePercent
private float inactivePercent
private int startVoiceProb
private int stopVoiceProb
private int startRmsThreshold
private int stopRmsThreshold
public AgoraAudioVadConfigV2()
public AgoraAudioVadConfigV2(int preStartRecognizeCount,
int startRecognizeCount,
int stopRecognizeCount,
float activePercent,
float inactivePercent,
int startVoiceProb,
int stopVoiceProb,
int startRmsThreshold,
int stopRmsThreshold)
public int getPreStartRecognizeCount()
public void setPreStartRecognizeCount(int preStartRecognizeCount)
public int getStartRecognizeCount()
public void setStartRecognizeCount(int startRecognizeCount)
public int getStopRecognizeCount()
public void setStopRecognizeCount(int stopRecognizeCount)
public float getActivePercent()
public void setActivePercent(float activePercent)
public float getInactivePercent()
public void setInactivePercent(float inactivePercent)
public int getStartVoiceProb()
public void setStartVoiceProb(int startVoiceProb)
public int getStopVoiceProb()
public void setStopVoiceProb(int stopVoiceProb)
public int getStartRmsThreshold()
public void setStartRmsThreshold(int startRmsThreshold)
public int getStopRmsThreshold()
public void setStopRmsThreshold(int stopRmsThreshold)
public java.lang.String toString()
toString in class java.lang.Object