voicebox工具箱之基频估计
前面已有很多介绍基频的文章了,看我其他博客。今天主要学习voicebox工具箱之基频估计功能。
只要安装了voicebox工具箱,调用很简单。
参数说明及调用
%V_FXPEFAC PEFAC pitch tracker [FX,TT,PV,FV]=(S,FS,TINC,M,PP)
%
% Input: s(ns) Speech signal 读取出的语音序列
% fs Sample frequency (Hz)
帧间时间增量,帧移默认10ms
% tinc Time increment between frames (s) [0.01]
% or [start increment end]
设置模式,可以选择下边三种不同的模式
% m mode
% 'g' plot graph showing waveform and pitch
% 'G' plot spectrogram with superimposed pitch using
% options pp.sopt [default: 'ilcwpf']
% 'x' use external files for algorithm parameter
% initialization: fxpefac_g and fxpefac_w
% pp structure containing algorithm parameters 一般不做要求
%
% Outputs: fx(nframe) Estimated pitch (Hz)
% tx(nframe) Time at the centre of each frame (seconds).
% pv(nframe) Probability of the frame of being voiced
% fv structure containing feature vectors
% fv.vuvfea(nframe,2) = voiced/unvoiced GMM features
用默认参数调用:
先加载一条音频
clear
close all;
file = '1.wav';
[y,fs] = audioread(file);
直接调用
fxpefac(y,fs)
结果:
算法参考文献
[1] S. Gonzalez and M. Brookes. PEFAC - a pitch estimation algorithm robust to high levels of noise.IEEE Trans. Audio, Speech, Language Processing, 22 (2): 518-530, Feb. 2014.doi: 10.1109/TASLP.2013.2295918.
[2] S.Gonzalez and M. Brookes,A pitch estimation filter robust to high levels of noise (PEFAC), Proc EUSIPCO,Aug 2011.