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

private
byte [] io.agora.rtc.VadProcessResult.outFrame

VAD 处理后输出的音频数据。

state

private
Constants.VadState io.agora.rtc.VadProcessResult.state

VAD 状态结果:

  • Unknown(-1):结果未知
  • NONE_SPEAKING(0):没有人讲话
  • START_SPEAKING(1):开始讲话
  • SPEAKING(2):正在讲话
  • STOP_SPEAKING(3):停止讲话

该类的文档由以下文件生成:

  • VadProcessResult.java

这个页面有帮助吗?