io.agora.rtc.VadProcessResult类 参考
- Java
更新时间不可用
VadProcessResult 类,包含 VAD 检测结果。
构造及析构函数说明
VadProcessResult()
io.agora.rtc.VadProcessResult.VadProcessResult(byte[] outFrame, Constants.VadState state)Constructor for VadProcessResult.
| 参数名 | 描述 |
|---|---|
outFrame | The output frame after VAD processing |
state | The state of the VAD process |
成员函数说明
getOutFrame()
byte[] io.agora.rtc.VadProcessResult.getOutFrame()Gets the output frame.
返回值
The output frame after VAD processing
getState()
Constants.VadState io.agora.rtc.VadProcessResult.getState()Gets the state of the VAD process.
返回值
The state of the VAD process
setOutFrame()
void io.agora.rtc.VadProcessResult.setOutFrame(byte[] outFrame)Sets the output frame.
| 参数名 | 描述 |
|---|---|
outFrame | The output frame after VAD processing |
setState()
void io.agora.rtc.VadProcessResult.setState(Constants.VadState state)Sets the state of the VAD process.
| 参数名 | 描述 |
|---|---|
state | The state of the VAD process |
toString()
String io.agora.rtc.VadProcessResult.toString()Returns a string representation of the VadProcessResult.
返回值
A string representation of the object
类成员变量说明
outFrame
byte [] io.agora.rtc.VadProcessResult.outFrameVAD 处理后输出的音频数据。
state
Constants.VadState io.agora.rtc.VadProcessResult.stateVAD 状态结果:
- Unknown(-1):结果未知
- NONE_SPEAKING(0):没有人讲话
- START_SPEAKING(1):开始讲话
- SPEAKING(2):正在讲话
- STOP_SPEAKING(3):停止讲话
该类的文档由以下文件生成:
- VadProcessResult.java