Agora Server Gateway SDK Java API Reference
Loading...
Searching...
No Matches
io.agora.rtc.VadProcessResult Class Reference

Public Member Functions

 VadProcessResult (byte[] outFrame, Constants.VadState state)
 
byte[] getOutFrame ()
 
void setOutFrame (byte[] outFrame)
 
Constants.VadState getState ()
 
void setState (Constants.VadState state)
 
String toString ()
 

Private Attributes

byte[] outFrame
 
Constants.VadState state
 

Detailed Description

The VadProcessResult class, which represents the result of a Voice Activity Detection (VAD) process.

Constructor & Destructor Documentation

◆ VadProcessResult()

io.agora.rtc.VadProcessResult.VadProcessResult ( byte[] outFrame,
Constants.VadState state )

Constructor for VadProcessResult.

Parameters
outFrameThe output frame after VAD processing
stateThe state of the VAD process

Member Function Documentation

◆ getOutFrame()

byte[] io.agora.rtc.VadProcessResult.getOutFrame ( )

Gets the output frame.

Returns
The output frame after VAD processing

◆ getState()

Constants.VadState io.agora.rtc.VadProcessResult.getState ( )

Gets the state of the VAD process.

Returns
The state of the VAD process

◆ setOutFrame()

void io.agora.rtc.VadProcessResult.setOutFrame ( byte[] outFrame)

Sets the output frame.

Parameters
outFrameThe output frame after VAD processing

◆ setState()

void io.agora.rtc.VadProcessResult.setState ( Constants.VadState state)

Sets the state of the VAD process.

Parameters
stateThe state of the VAD process

◆ toString()

String io.agora.rtc.VadProcessResult.toString ( )

Returns a string representation of the VadProcessResult.

Returns
A string representation of the object

Member Data Documentation

◆ outFrame

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

The output frame after VAD processing.

◆ state

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

The state of the VAD process:

  • Unknown(-1)
  • NONE_SPEAKING(0)
  • START_SPEAKING(1)
  • SPEAKING(2)
  • STOP_SPEAKING(3)

The documentation for this class was generated from the following file: