has Voice Activity
fun hasVoiceActivity(samples: FloatArray, sampleRate: Int = 16000, threshold: Float = 0.3f): Boolean
Check if audio contains significant voice activity.
Convenience over getVADRatio: returns true when the voiced-frame ratio exceeds threshold. Accepts any sample rate and resamples internally to 16kHz.
Return
true if the VAD ratio exceeds threshold
Parameters
samples
Audio samples (mono, normalized -1.0 to 1.0)
sample Rate
Sample rate of the input audio in Hz (default: 16000)
threshold
Detection threshold (default: 0.3)