public class VoiceActivityDetector
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
VoiceActivityDetector.SpeechEventsListener
Used to notify about speech begin/end events
|
| Modifier and Type | Field and Description |
|---|---|
static int |
FRAME_SIZE_IN_BYTES |
static java.lang.String |
TAG |
| Constructor and Description |
|---|
VoiceActivityDetector(int sampleRate) |
| Modifier and Type | Method and Description |
|---|---|
void |
processBuffer(byte[] buffer,
int bytesRead) |
void |
reset() |
void |
setEnabled(boolean enabled)
If enabled, voice activity detector fires onSpeechEnd events.
|
void |
setSpeechListener(VoiceActivityDetector.SpeechEventsListener eventsListener) |
public static final java.lang.String TAG
public static final int FRAME_SIZE_IN_BYTES
public void processBuffer(byte[] buffer,
int bytesRead)
public void reset()
public void setSpeechListener(VoiceActivityDetector.SpeechEventsListener eventsListener)
public void setEnabled(boolean enabled)
enabled - new option values