Cobra Voice Activity Detection
Class for the Cobra VAD engine.
Constructor for the Cobra VAD engine.
accessKeyString : AccessKey obtained from Picovoice Console.
Cobra: Returns an instance of Cobra.
CobraException: If an error occurs while creating an instance of Cobra VAD engine.
Getter for required number of audio samples per frame.
int: Required number of audio samples per frame.
Getter for required audio sample rate
int: Required audio sample rate.
String: Cobra version.
Releases resources acquired by
Processes a frame of the incoming audio stream and emits the detection result.
The required number of samples-per-frame can be obtained by calling
The incoming audio needs to have a sample rate equal to
.getSampleRate() and be 16-bit linearly-encoded.
Cobra operates on single-channel audio.
pcmshort : A frame of audio samples.
float: Probability of voice activity. It is a floating-point number within [0, 1].
CobraException: If an error occurs while processing.
Exception thrown if an error occurs within
Cobra VAD engine.