pysptk.sptk.swipe

pysptk.sptk.swipe()

SWIPE’ - A Saw-tooth Waveform Inspired Pitch Estimation

Parameters:
x : array

A whole audio signal

fs : int

Sampling frequency.

hopsize : int

Hop size.

min : float, optional

Minimum fundamental frequency. Default is 50.0

max : float, optional

Maximum fundamental frequency. Default is 800.0

threshold : float, optional

Voice/unvoiced threshold. Default is 0.3.

otype : int, optional

Output format (0) pitch (1) f0 (2) log(f0). Default is 1.

Returns:
f0 : array, shape(len(x)/frame_shift+1)

Estimated f0 trajectory

Raises:
ValueError

if invalid otype is specified

Examples