classifyVoiceActivity

Classify the voice activity level of audio.

Convenience over getVADRatio: bands the voiced-frame ratio into a VoiceActivityLevel (NONE / PARTIAL / FULL) via VADResult.fromRatio. Accepts any sample rate and resamples internally to 16kHz.

Return

Voice activity classification (VoiceActivityLevel.NONE when no chunk was processed)

Parameters

samples

Audio samples (mono, normalized -1.0 to 1.0)

sampleRate

Sample rate of the input audio in Hz (default: 16000)