亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fxrapt.m

?? voice box tool box for matlab
?? M
?? 第 1 頁 / 共 2 頁
字號:
function [fx,tt]=fxrapt(s,fs,mode);
%FXRAPT RAPT pitch tracker [FX,VUV]=(S,FS)
%
% Input:   s(ns)      Speech signal
%          fs         Sample frequency (Hz)
%          mode       'g' will plot a graph [default if no output arguments]
%
% Outputs: fx(nframe)     Larynx frequency for each fram,e (or NaN for silent/unvoiced)
%          tt(nframe,3)  Start and end samples of each frame
%
% Plots a graph if no outputs are specified showing lag candidates and selected path
%

% Bugs/Suggestions:
%   (1) Include backward DP pass and output the true cost for each candidate.
%   (2) Add an extra state to distinguish between voiceless and silent
%   (3) N-best DP to allow longer term penalties (e.g. for frequent pitch doubling/halving)

% The algorithm is taken from [1] with the following differences:
%
%      (a)  the factor AFACT which in the Talkin algorithm corresponds roughly
%           to the absolute level of harmonic noise in the correlation window. This value
%           is here calculated as the maximum of three figures:
%                   (i) an absolute floor set by PP.rapt_absnoise
%                  (ii) a multiple of the peak signal set by PP.rapt_signoise
%                 (iii) a multiple of the noise floor set by PP.rapt_relnoise
%      (b) The LPC used in calculating the Itakura distance uses a Hamming window rather than
%          a Hanning window.
%
% A C implementation of this algorithm by Derek Lin and David Talkin is included as  "get_f0.c"
% in the esps.zip package available from http://www.speech.kth.se/esps/esps.zip under the BSD
% license.
%
% Refs:
%      [1]   D. Talkin, "A Robust Algorithm for Pitch Tracking (RAPT)"
%            in "Speech Coding & Synthesis", W B Kleijn, K K Paliwal eds,
%            Elsevier ISBN 0444821694, 1995

%      Copyright (C) Mike Brookes 2006
%      Version: $Id: fxrapt.m,v 1.3 2007/05/04 07:01:38 dmb Exp $
%
%   VOICEBOX is a MATLAB toolbox for speech processing.
%   Home page: http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%   This program is free software; you can redistribute it and/or modify
%   it under the terms of the GNU General Public License as published by
%   the Free Software Foundation; either version 2 of the License, or
%   (at your option) any later version.
%
%   This program is distributed in the hope that it will be useful,
%   but WITHOUT ANY WARRANTY; without even the implied warranty of
%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%   GNU General Public License for more details.
%
%   You can obtain a copy of the GNU General Public License from
%   http://www.gnu.org/copyleft/gpl.html or by writing to
%   Free Software Foundation, Inc.,675 Mass Ave, Cambridge, MA 02139, USA.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

s=s(:); % force s to be a column
if nargin<3
    mode=' ';
end
doback=0;   % don't do backwards DP for now

% read in parameters

PP=voicebox;
f0min=PP.rapt_f0min;            % Min F0 (Hz)                               [50]
f0max=PP.rapt_f0max;            % Max F0 (Hz)                               [500]
tframe=PP.rapt_tframe;          % frame size (s)                            [0.01]
tlpw=PP.rapt_tlpw;              % low pass filter window size (s)           [0.005]
tcorw=PP.rapt_tcorw;            % correlation window size (s)               [0.0075]
candtr=PP.rapt_candtr;          % minimum peak in NCCF                      [0.3]
lagwt=PP.rapt_lagwt;            % linear lag taper factor                   [0.3]
freqwt=PP.rapt_freqwt;          % cost factor for F0 change                 [0.02]
vtranc=PP.rapt_vtranc;          % fixed voice-state transition cost         [0.005]
vtrac=PP.rapt_vtrac;            % delta amplitude modulated transition cost [0.5]
vtrsc=PP.rapt_vtrsc;            % delta spectrum modulated transition cost  [0.5]
vobias=PP.rapt_vobias;          % bias to encourage voiced hypotheses       [0.0]
doublec=PP.rapt_doublec;        % cost of exact doubling or halving         [0.35]
absnoise=PP.rapt_absnoise;      % absolute rms noise level                  [0]
relnoise=PP.rapt_relnoise;      % rms noise level relative to noise floor   [2.0]
signoise=PP.rapt_signoise;      % ratio of peak signal rms to noise floor   [0.001]
ncands=PP.rapt_ncands;          % max hypotheses at each frame              [20]
trms=PP.rapt_trms;              % window length for rms measurement         [0.03]
dtrms=PP.rapt_dtrms;            % window spacing for rms measurement        [0.02]
preemph=PP.rapt_preemph;        % s-plane position of preemphasis zero      [-7000]
nfullag=PP.rapt_nfullag;        % number of full lags to try (must be odd)  [7]

% derived parameters (mostly dependent on sample rate fs)

krms=round(trms*fs);            % window length for rms measurement
kdrms=round(dtrms*fs);          % window spacing for rms measurement
rmswin=hanning(krms).^2;
kdsmp=round(0.25*fs/f0max);
hlpw=round(tlpw*fs/2);          % force window to be an odd length
blp=sinc((-hlpw:hlpw)/kdsmp).*hamming(2*hlpw+1).';
fsd=fs/kdsmp;
kframed=round(fsd*tframe);      % downsampled frame length
kframe=kframed*kdsmp;           % frame increment at full rate
rmsix=(1:krms)+floor((kdrms-kframe)/2); % rms index according to Talkin; better=(1:krms)+floor((kdrms-krms+1)/2)
minlag=ceil(fsd/f0max);
maxlag=round(fsd/f0min);        % use round() only because that is what Talkin does
kcorwd=round(fsd*tcorw);        % downsampled correlation window
kcorw=kcorwd*kdsmp;             % full rate correlation window
spoff=max(hlpw-floor(kdsmp/2),1+kdrms-rmsix(1)-kframe);  % offset for first speech frame at full rate
sfoff=spoff-hlpw+floor(kdsmp/2); % offset for downsampling filter
sfi=1:kcorwd;                   % initial decimated correlation window index array
sfhi=1:kcorw;                   % initial correlation window index array
sfj=1:kcorwd+maxlag;
sfmi=repmat((minlag:maxlag)',1,kcorwd)+repmat(sfi,maxlag-minlag+1,1);
lagoff=(minlag-1)*kdsmp;        % lag offset when converting to high sample rate
beta=lagwt*f0min/fs;            % bias towards low lags
log2=log(2);
lpcord=2+round(fs/1000);        % lpc order for itakura distance
hnfullag=floor(nfullag/2);
jumprat=exp((doublec+log2)/2);  % lag ratio at which octave jump cost is lowest
ssq=s.^2;
csssq=cumsum(ssq);
sqrt(min(csssq(kcorw+1:end)-csssq(1:end-kcorw))/kcorw);
afact=max([absnoise^2,max(ssq)*signoise^2,min(csssq(kcorw+1:end)-csssq(1:end-kcorw))*(relnoise/kcorw)^2])^2*kcorw^2;

% downsample signal to approx 2 kHz to speed up autocorrelation calculation
% kdsmp is the downsample factor

sf=filter(blp/sum(blp),1,s(sfoff+1:end));
sp=filter([1 exp(preemph/fs)],1,s); % preemphasised speech for LPC calculation
sf(1:length(blp)-1)=[];         % remove startup transient
sf=sf(1:kdsmp:end);             % downsample to =~2kHz
nsf=length(sf);                 % length of downsampled speech
ns=length(s);                   % length of full rate speech

% Calculate the frame limit to ensure we don't run off the end of the speech or decimated speech:
%   (a) For decimated autocorrelation when calculating sff():  (nframe-1)*kframed+kcorwd+maxlag <= nsf
%   (b) For full rate autocorrelation when calculating sfh():  max(fho)+kcorw+maxlag*kdsamp+hnfllag <= ns
%   (c) For rms ratio window when calculating rr            :  max(fho)+rmsix(end) <= ns
% where max(fho) = (nframe-1)*kframe + spoff

nframe=floor(1+min((nsf-kcorwd-maxlag)/kframed,(ns-spoff-max(kcorw-maxlag*kdsmp-hnfullag,rmsix(end)))/kframe));

% now search for autocorrelation peaks in the downsampled signal

cost=zeros(nframe,ncands);      % cumulative cost
prev=zeros(nframe,ncands);      % traceback pointer
mcands=zeros(nframe,1);         % number of actual candidates excluding voiceless
lagval=repmat(NaN,nframe,ncands-1);    % lag of each voiced candidate
tv=zeros(nframe,3);             % diagnostics: 1=voiceless cost, 2=min voiced cost, 3:cumulative voiceless-min voiced
if doback
    costms=cell(nframe,1);
end

% Main processing loop for each 10 ms frame

for iframe=1:nframe       % loop for each frame (~10 ms)
    
    % Find peaks in the normalized autocorrelation of subsampled (2Khz) speech
    % only keep peaks that are > 30% of highest peak
    
    sff=sf((iframe-1)*kframed+sfj);
    sffdc=mean(sff(sfi));       % mean of initial correlation window length
    sff=sff-sffdc;              % subtract off the mean
    nccfd=normxcor(sff(1:kcorwd),sff(minlag+1:end));
    [ipkd,vpkd]=findpeaks(nccfd,'q');
    
    % Debugging: execute the line below to plot the autocorrelation peaks.
    % findpeaks(nccfd,'q'); xlabel(sprintf('Lag = (x+%d)*%g ms',minlag-1,1000*kdsmp/fs)); ylabel('Normalized Cross Correlation'); title (sprintf('Frame %d/%d',iframe,nframe));
    
    vipkd=[vpkd ipkd];

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美三级日韩三级| 不卡的av网站| 亚洲蜜桃精久久久久久久| 337p亚洲精品色噜噜噜| 从欧美一区二区三区| 亚洲成a人v欧美综合天堂下载 | 91蜜桃在线免费视频| 午夜精品免费在线观看| 国产精品高潮呻吟久久| 91麻豆精品91久久久久久清纯| 成人av电影在线网| 欧美日韩卡一卡二| 欧美日韩卡一卡二| 91无套直看片红桃| 极品美女销魂一区二区三区免费| 亚洲美女视频在线观看| 国产欧美一区二区三区在线看蜜臀| 欧美日韩一区高清| 色噜噜狠狠一区二区三区果冻| 国产成人精品一区二区三区四区| 天天色综合成人网| 亚洲一区二区精品视频| 亚洲日本青草视频在线怡红院| 精品国产露脸精彩对白| 欧美精选午夜久久久乱码6080| 972aa.com艺术欧美| 国产不卡高清在线观看视频| 国产自产v一区二区三区c| 奇米在线7777在线精品| 亚洲成av人片在线观看无码| 亚洲欧美国产高清| 亚洲色图一区二区| 亚洲丝袜精品丝袜在线| 中国av一区二区三区| 亚洲成人动漫精品| 久久综合久久综合九色| 久久久久国产精品麻豆| 91麻豆免费视频| 成人夜色视频网站在线观看| 国产成人av电影在线播放| 国产成人免费视频网站高清观看视频| 麻豆精品国产传媒mv男同| 青青草成人在线观看| 麻豆精品新av中文字幕| 狠狠狠色丁香婷婷综合久久五月| 久久精品国内一区二区三区| 久久国产三级精品| 国产一区二区三区电影在线观看| 国产一区在线精品| 国产aⅴ综合色| 91麻豆福利精品推荐| 色综合久久中文综合久久牛| 欧美综合一区二区三区| 欧美久久久久久久久中文字幕| 777午夜精品免费视频| 日韩午夜精品视频| 国产欧美日本一区视频| 综合久久国产九一剧情麻豆| 亚洲精品一二三四区| 欧美日韩小视频| 秋霞电影一区二区| 日韩av在线发布| 久久99热狠狠色一区二区| 国内精品伊人久久久久av影院 | 日韩亚洲欧美成人一区| 精品捆绑美女sm三区| 国产午夜精品一区二区三区嫩草| 国产精品视频第一区| 亚洲综合激情网| 日本欧美一区二区三区乱码| 国产乱人伦精品一区二区在线观看| 国产suv一区二区三区88区| 色综合天天做天天爱| 欧美乱妇15p| 国产亚洲精品超碰| 一区二区三区丝袜| 久久国产精品色婷婷| av一区二区不卡| 6080日韩午夜伦伦午夜伦| 国产午夜精品美女毛片视频| 一区二区三区四区蜜桃| 麻豆免费看一区二区三区| 不卡一区在线观看| 欧美日韩精品系列| 欧美国产日韩一二三区| 日一区二区三区| 国产a精品视频| 欧美肥胖老妇做爰| 亚洲欧洲日韩一区二区三区| 欧美日韩在线播放一区| 国产女人18毛片水真多成人如厕 | 日韩小视频在线观看专区| 欧美国产日韩亚洲一区| 午夜精品国产更新| 国产成人精品免费在线| 欧美久久久久免费| 国产精品每日更新在线播放网址| 日韩中文字幕区一区有砖一区 | 国产精品伦一区二区三级视频| 一区二区高清视频在线观看| 国产一区视频在线看| 欧美日韩在线不卡| 中文字幕中文字幕在线一区 | 日韩二区三区四区| 91免费视频网| 久久先锋影音av鲁色资源网| 一区二区免费在线| 粉嫩aⅴ一区二区三区四区 | 亚洲人成人一区二区在线观看| 捆绑变态av一区二区三区| 91九色02白丝porn| 欧美极品aⅴ影院| 久久国产夜色精品鲁鲁99| 欧美日韩免费高清一区色橹橹| 国产农村妇女精品| 另类小说欧美激情| 欧美日韩二区三区| 亚洲美女精品一区| 不卡av在线网| 国产亚洲一区二区在线观看| 蜜臀a∨国产成人精品| 欧美日韩国产综合草草| 亚洲一区国产视频| 色悠悠亚洲一区二区| 国产精品视频免费看| 精品成人在线观看| 亚洲成av人片观看| 精品国产乱码久久久久久影片| 亚洲欧美激情视频在线观看一区二区三区| 极品少妇一区二区三区精品视频| 欧美日韩高清一区二区三区| 艳妇臀荡乳欲伦亚洲一区| 99久久精品久久久久久清纯| 久久久www免费人成精品| 经典三级一区二区| 精品对白一区国产伦| 免费高清视频精品| 日韩精品一区二区三区视频| 蜜乳av一区二区| 日韩女优电影在线观看| 久久国产精品无码网站| 精品国产91洋老外米糕| 精品一区二区三区视频| 精品免费国产一区二区三区四区| 久久97超碰国产精品超碰| 日韩女优毛片在线| 国产很黄免费观看久久| 国产欧美一二三区| 91亚洲精品一区二区乱码| 亚洲乱码国产乱码精品精可以看 | 麻豆国产欧美日韩综合精品二区| 日韩一区二区免费在线观看| 26uuu色噜噜精品一区二区| 欧美一级一区二区| 欧美日韩免费电影| 麻豆国产欧美一区二区三区| 久久久亚洲午夜电影| 本田岬高潮一区二区三区| 伊人一区二区三区| 制服.丝袜.亚洲.另类.中文| 国产在线精品视频| 亚洲欧洲精品一区二区三区不卡| 在线视频你懂得一区二区三区| 午夜激情一区二区| 精品国产亚洲一区二区三区在线观看 | 久久久99久久| 一本到不卡精品视频在线观看| 亚洲观看高清完整版在线观看| 欧美一区二区精美| 成人福利视频网站| 亚洲第一久久影院| 久久婷婷国产综合国色天香| 不卡一区在线观看| 视频一区二区不卡| 精品国产乱码久久久久久夜甘婷婷| 成人精品国产一区二区4080| 亚洲永久精品国产| 久久久久青草大香线综合精品| 91视频国产观看| 美女一区二区在线观看| 中文天堂在线一区| 在线综合视频播放| 成人免费视频网站在线观看| 亚洲理论在线观看| 成人视屏免费看| 成人av网站免费| 亚洲视频在线一区观看| 91视频一区二区三区| 蜜臀av性久久久久蜜臀aⅴ流畅| 中文子幕无线码一区tr| 7777精品伊人久久久大香线蕉超级流畅| 国产精品综合在线视频| 亚洲最大的成人av| 久久精品水蜜桃av综合天堂| 欧美日韩精品二区第二页| 成人v精品蜜桃久久一区| 日韩1区2区日韩1区2区| 亚洲精品视频一区| 久久久久久久久一| 777色狠狠一区二区三区|