pysptk.sptk.swipe¶
- pysptk.sptk.swipe(x, fs, hopsize, min=60.0, max=240.0, threshold=0.3, otype='f0')[source]¶
SWIPE’ - A Saw-tooth Waveform Inspired Pitch Estimation
- Parameters
- xarray
A whole audio signal
- fsint
Sampling frequency.
- hopsizeint
Hop size.
- minfloat, optional
Minimum fundamental frequency. Default is 60.0
- maxfloat, optional
Maximum fundamental frequency. Default is 240.0
- thresholdfloat, optional
Voice/unvoiced threshold. Default is 0.3.
- otypestr or int, optional
- Output format
pitch
f0
log(f0)
Default is f0.
- Returns
- f0array, shape(
np.ceil(float(len(x))/hopsize)
) Estimated f0 trajectory
- f0array, shape(
- Raises
- ValueError
if invalid otype is specified
See also
Examples