detectFromPitch

Detect natural speaking pitch from pitch contour.

Analyzes an existing pitch contour to find the median pitch. This is useful when you've already extracted pitches from audio.

Return

Detected frequency in Hz, or -1 if detection failed

Parameters

pitchesHz

Pitch values in Hz (-1 for unvoiced frames)