public class AgoraAudioVad
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr |
| Constructor and Description |
|---|
AgoraAudioVad() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the VAD module
|
int |
initialize(AgoraAudioVadConfig config)
Initialize the VAD module
|
private void |
nativeDestroy(long cptr) |
private long |
nativeInitialize(AgoraAudioVadConfig config) |
private VadProcessResult |
nativeProcessPcmFrame(byte[] frame) |
VadProcessResult |
processPcmFrame(byte[] frame)
Process the PCM frame
|
public int initialize(AgoraAudioVadConfig config)
config - the configuration of the VAD modulepublic VadProcessResult processPcmFrame(byte[] frame)
frame - the PCM framepublic void destroy()
private void nativeDestroy(long cptr)
private long nativeInitialize(AgoraAudioVadConfig config)
private VadProcessResult nativeProcessPcmFrame(byte[] frame)