pyreaper F0提取
# -*- coding:utf-8 -*-
# /usr/bin/python
'''
-------------------------------------------------
File Name : reaper
Description : AIM: reaper tools
Functions: 1.
2.
Envs : python == 3.5
pip install pyreaper -i https://pypi.douban.com/simple
Author : yanerrol
Date : 2020/3/9 17:29
-------------------------------------------------
Change Activity:
2020/3/9 : text
-------------------------------------------------
'''
__author__ = 'yanerrol'
import pyreaper
import pysptk
from scipy.io import wavfile
import matplotlib.pyplot as plt
print (pyreaper.__version__)
fs, x = wavfile.read(pysptk.util.example_audio_file())
pm_times, pm, f0_times, f0, corr = pyreaper.reaper(x, fs)
print(pm_times, pm, f0_times, f0, corr)