|
Agora Server Gateway SDK Java API Reference
|
Public Member Functions | |
| AgoraAudioVadConfigV2 () | |
| AgoraAudioVadConfigV2 (int preStartRecognizeCount, int startRecognizeCount, int stopRecognizeCount, float activePercent, float inactivePercent, int startVoiceProb, int stopVoiceProb, int startRmsThreshold, int stopRmsThreshold) | |
| int | getPreStartRecognizeCount () |
| void | setPreStartRecognizeCount (int preStartRecognizeCount) |
| int | getStartRecognizeCount () |
| void | setStartRecognizeCount (int startRecognizeCount) |
| int | getStopRecognizeCount () |
| void | setStopRecognizeCount (int stopRecognizeCount) |
| float | getActivePercent () |
| void | setActivePercent (float activePercent) |
| float | getInactivePercent () |
| void | setInactivePercent (float inactivePercent) |
| int | getStartVoiceProb () |
| void | setStartVoiceProb (int startVoiceProb) |
| int | getStopVoiceProb () |
| void | setStopVoiceProb (int stopVoiceProb) |
| int | getStartRmsThreshold () |
| void | setStartRmsThreshold (int startRmsThreshold) |
| int | getStopRmsThreshold () |
| void | setStopRmsThreshold (int stopRmsThreshold) |
| String | toString () |
Private Attributes | |
| int | preStartRecognizeCount |
| int | startRecognizeCount |
| int | stopRecognizeCount |
| float | activePercent |
| float | inactivePercent |
| int | startVoiceProb |
| int | stopVoiceProb |
| int | startRmsThreshold |
| int | stopRmsThreshold |
Configuration class for Agora Audio Voice Activity Detection (VAD) V2.
| io.agora.rtc.AgoraAudioVadConfigV2.AgoraAudioVadConfigV2 | ( | ) |
| io.agora.rtc.AgoraAudioVadConfigV2.AgoraAudioVadConfigV2 | ( | int | preStartRecognizeCount, |
| int | startRecognizeCount, | ||
| int | stopRecognizeCount, | ||
| float | activePercent, | ||
| float | inactivePercent, | ||
| int | startVoiceProb, | ||
| int | stopVoiceProb, | ||
| int | startRmsThreshold, | ||
| int | stopRmsThreshold ) |
| float io.agora.rtc.AgoraAudioVadConfigV2.getActivePercent | ( | ) |
| float io.agora.rtc.AgoraAudioVadConfigV2.getInactivePercent | ( | ) |
| int io.agora.rtc.AgoraAudioVadConfigV2.getPreStartRecognizeCount | ( | ) |
| int io.agora.rtc.AgoraAudioVadConfigV2.getStartRecognizeCount | ( | ) |
| int io.agora.rtc.AgoraAudioVadConfigV2.getStartRmsThreshold | ( | ) |
| int io.agora.rtc.AgoraAudioVadConfigV2.getStartVoiceProb | ( | ) |
| int io.agora.rtc.AgoraAudioVadConfigV2.getStopRecognizeCount | ( | ) |
| int io.agora.rtc.AgoraAudioVadConfigV2.getStopRmsThreshold | ( | ) |
| int io.agora.rtc.AgoraAudioVadConfigV2.getStopVoiceProb | ( | ) |
| void io.agora.rtc.AgoraAudioVadConfigV2.setActivePercent | ( | float | activePercent | ) |
| void io.agora.rtc.AgoraAudioVadConfigV2.setInactivePercent | ( | float | inactivePercent | ) |
| void io.agora.rtc.AgoraAudioVadConfigV2.setPreStartRecognizeCount | ( | int | preStartRecognizeCount | ) |
| void io.agora.rtc.AgoraAudioVadConfigV2.setStartRecognizeCount | ( | int | startRecognizeCount | ) |
| void io.agora.rtc.AgoraAudioVadConfigV2.setStartRmsThreshold | ( | int | startRmsThreshold | ) |
| void io.agora.rtc.AgoraAudioVadConfigV2.setStartVoiceProb | ( | int | startVoiceProb | ) |
| void io.agora.rtc.AgoraAudioVadConfigV2.setStopRecognizeCount | ( | int | stopRecognizeCount | ) |
| void io.agora.rtc.AgoraAudioVadConfigV2.setStopRmsThreshold | ( | int | stopRmsThreshold | ) |
| void io.agora.rtc.AgoraAudioVadConfigV2.setStopVoiceProb | ( | int | stopVoiceProb | ) |
| String io.agora.rtc.AgoraAudioVadConfigV2.toString | ( | ) |
|
private |
The percentage of active frames required in startRecognizeCount frames to enter speaking state.
The default value is 0.7 (70%). The value range is [0.0, 1.0].
|
private |
The percentage of inactive frames required in stopRecognizeCount frames to enter stop speaking state.
The default value is 0.5 (50%). The value range is [0.0, 1.0].
|
private |
The number of audio frames to save before entering the start speaking state.
The default value is 16 (frames). The value range is [0, 2^31 - 1].
|
private |
The number of audio frames required to confirm the speaking state.
The default value is 30 (frames). The value range is [1, 2^31 - 1].
|
private |
The RMS threshold for starting the voice activity detection. The default value is -50. The value range is [-100, 0].
The higher the value, the more sensitive to voice activity.
|
private |
The threshold for starting the voice activity detection. The default value is 70. The value range is [0, 100].
The lower the value, the higher the probability that a frame is judged as activity, which allows the start phase to begin earlier.
Conversely, the higher the value, the lower the probability that a frame is judged as activity, and the higher the probability of being judged as inactivity, which makes the start phase to begin later.
|
private |
The number of audio frames required to confirm the stop speaking state.
The default value is 20 (frames). The value range is [1, 2^31 - 1].
|
private |
The RMS threshold for stopping the voice activiy detection. The default value is -50. The value range is [-100, 0].
The higher the value, the more sensitive to voice activity.
|
private |
The threshold for stopping the voice activity detection. The default value is 70. The value range is [0, 100].
The lower the value, the higher the probability that a frame is judged as activity, which makes the end phase to begin later.
Conversely, the higher the value, the lower the probability that a frame is judged as activity, and the higher the probability of being judged as inactivity, which allows the end phase to begin earlier.