hasEnoughData

fun hasEnoughData(times: FloatArray, pitchesHz: FloatArray): Boolean

Check if there's enough data for breath analysis.

Breath analysis requires at least 5 seconds of cumulative voiced audio to produce meaningful results.

Return

true if there's at least 5 seconds of voiced audio

Parameters

times

Array of timestamps in seconds

pitchesHz

Array of pitch values in Hz (-1 for unvoiced frames)