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

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

?? proclpc.m

?? 實現LPC線性預測分析,能夠提取AR模型參數并進行DCT變換處理
?? M
字號:
function [aCoeff,resid,pitch,G,parcor,stream] = proclpc(data,sr,L,fr,fs,preemp)

% USAGE: [aCoeff,resid,pitch,G,parcor,stream] = proclpc(data,sr,L,fr,fs,preemp)
%
% This function computes the LPC (linear-predictive coding) coefficients that
% describe a speech signal. The LPC coefficients are a short-time measure of
% the speech signal which describe the signal as the output of an all-pole
% filter. This all-pole filter provides a good description of the speech
% articulators; thus LPC analysis is often used in speech recognition and 
% speech coding systems. The LPC parameters are recalculated, by default in
% this implementation, every 20ms.
%
% The results of LPC analysis are a new representation of the signal
% s(n) = G e(n) - sum from 1 to L a(i)s(n-i)
% where s(n) is the original data. a(i) and e(n) are the outputs of the LPC 
% analysis with a(i) representing the LPC model. The e(n) term represents 
% either the speech source's excitation, or the residual: the details of the 
% signal that are not captured by the LPC coefficients. The G factor is a
% gain term.
%
% LPC analysis is performed on a monaural sound vector (data) which has been
% sampled at a sampling rate of "sr". The following optional parameters modify
% the behaviour of this algorithm.
% L - The order of the analysis. There are L+1 LPC coefficients in the output
% array aCoeff for each frame of data. L defaults to 13.
% fr - Frame time increment, in ms. The LPC analysis is done starting every
% fr ms in time. Defaults to 20ms (50 LPC vectors a second)
% fs - Frame size in ms. The LPC analysis is done by windowing the speech
% data with a rectangular window that is fs ms long. Defaults to 30ms
% preemp - This variable is the epsilon in a digital one-zero filter which 
% serves to preemphasize the speech signal and compensate for the 6dB
% per octave rolloff in the radiation function. Defaults to .9378.
%
% The output variables from this function are
%
% aCoeff - The LPC analysis results, a(i). One column of L numbers for each
% frame of data
% resid - The LPC residual, e(n). One column of sr*fs samples representing
% the excitation or residual of the LPC filter.
% pitch - A frame-by-frame estimate of the pitch of the signal, calculated
% by finding the peak in the residual's autocorrelation for each frame.
% G - The LPC gain for each frame.
% parcor - The parcor coefficients. The parcor coefficients give the ratio
% between adjacent sections in a tubular model of the speech 
% articulators. There are L parcor coefficients for each frame of 
% speech.
% stream - The LPC analysis' residual or excitation signal as one long vector.
% Overlapping frames of the resid output combined into a new one-
% dimensional signal and post-filtered.
%
% The synlpc routine inverts this transform and returns the original speech
% signal.
%


if (nargin<3), L = 13; end
if (nargin<4), fr = 20; end
if (nargin<5), fs = 30; end
if (nargin<6), preemp = .9378; end

[row col] = size(data);
if col==1 data=data'; end  %???

nframe = 0; 
msfr = round(sr/1000*fr); % Convert ms to samples
msfs = round(sr/1000*fs); % Convert ms to samples
duration = length(data);
speech = filter([1 -preemp], 1, data)'; % Preemphasize speech
msoverlap = msfs - msfr;
ramp = [0:1/(msoverlap-1):1]'; % Compute part of window


for frameIndex=1:msfr:duration-msfs+1 % frame rate=20ms
frameData = speech(frameIndex:(frameIndex+msfs-1)); % frame size=30ms
nframe = nframe+1;
autoCor = xcorr(frameData); % Compute the cross correlation
autoCorVec = autoCor(msfs+[0:L]);

% Levinson's method
err(1) = autoCorVec(1);
k(1) = 0;
A = [];
for index=1:L
numerator = [1 A.']*autoCorVec(index+1:-1:2);
denominator = -1*err(index);
k(index) = numerator/denominator; % PARCOR coeffs
A = [A+k(index)*flipud(A); k(index)]; 
err(index+1) = (1-k(index)^2)*err(index);
end

aCoeff(:,nframe) = [1; A];
parcor(:,nframe) = k'; % 偏相關系數

% Calculate the filter 
% response
% by evaluating the 
% z-transform
if 0
gain=0;
cft=0:(1/255):1;
for index=1:L
gain = gain + aCoeff(index,nframe)*exp(-i*2*pi*cft).^index;
end
gain = abs(1./gain);
spec(:,nframe) = 20*log10(gain(1:128))';
plot(20*log10(gain));
title(nframe);
drawnow;
end

% Calculate the filter response
% from the filter's impulse
% response (to check above).
if 0
impulseResponse = filter(1, aCoeff(:,nframe), [1 zeros(1,255)]);
freqResp = 20*log10(abs(fft(impulseResponse)));
plot(freqResp);
end

errSig = filter([1 A'],1,frameData); % find excitation noise

G(nframe) = sqrt(err(L+1)); % gain
autoCorErr = xcorr(errSig); % calculate pitch & voicing information
[B,I] = sort(autoCorErr);
num = length(I);
if B(num-1) > .01*B(num)
pitch(nframe) = abs(I(num) - I(num-1));
else
pitch(nframe) = 0;
end

% calculate additional info to improve the compressed sound quality
resid(:,nframe) = errSig/G(nframe);
if(frameIndex==1) % add residual frames using a trapezoidal window
stream = resid(1:msfr,nframe);
else
stream = [stream; 
overlap+resid(1:msoverlap,nframe).*ramp; 
resid(msoverlap+1:msfr,nframe)];
end
if(frameIndex+msfr+msfs-1 > duration)
stream = [stream; resid(msfr+1:msfs,nframe)];
else
overlap = resid(msfr+1:msfs,nframe).*flipud(ramp); 
end 
end
stream = filter(1, [1 -preemp], stream)';

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产一区二区三区久久影院 | 国产午夜亚洲精品午夜鲁丝片| 国产午夜精品理论片a级大结局| 综合中文字幕亚洲| 日本不卡123| 欧洲一区二区三区在线| 国产人成亚洲第一网站在线播放| 亚洲高清视频在线| 99久久免费精品高清特色大片| 欧美一区二区三区啪啪| 亚洲欧美日韩在线播放| 国产精品88av| 久久亚洲精品国产精品紫薇| 偷偷要91色婷婷| 91麻豆.com| 国产蜜臀97一区二区三区| 久久99精品国产.久久久久久| 91网站视频在线观看| 26uuu国产日韩综合| 天堂精品中文字幕在线| 91福利在线免费观看| 国产精品久久久久久久久免费樱桃| 日本女人一区二区三区| 欧美日韩aaa| 亚洲国产另类精品专区| 色八戒一区二区三区| 亚洲视频小说图片| www.色综合.com| 一区精品在线播放| 9久草视频在线视频精品| 久久精品综合网| 国产毛片精品国产一区二区三区| 日韩欧美国产系列| 麻豆精品一区二区| 337p粉嫩大胆色噜噜噜噜亚洲| 日本91福利区| 精品久久久久一区二区国产| 经典三级视频一区| www激情久久| 大白屁股一区二区视频| 国产精品视频你懂的| aaa欧美大片| 亚洲综合精品自拍| 在线91免费看| 国产专区综合网| 欧美国产日韩亚洲一区| 色综合欧美在线| 亚洲成人综合在线| 欧美一区二区三区视频免费 | 亚洲欧美日韩中文播放| 91美女片黄在线| 夜夜嗨av一区二区三区中文字幕 | 亚洲人成人一区二区在线观看| 成年人国产精品| 亚洲免费成人av| 7777精品伊人久久久大香线蕉经典版下载 | 成人小视频在线| 亚洲精品久久7777| 91精品蜜臀在线一区尤物| 久久99日本精品| 国产精品黄色在线观看| 欧美亚洲综合另类| 狠狠色狠狠色综合| 国产精品国产自产拍高清av王其| 欧美午夜宅男影院| 国产精品中文字幕欧美| 一区二区三区免费网站| 精品国产乱码久久久久久久久| 成人黄色777网| 秋霞午夜鲁丝一区二区老狼| 中文字幕乱码一区二区免费| 欧美人妖巨大在线| 国产一区欧美一区| 亚洲午夜视频在线观看| 久久久另类综合| 欧美日韩在线观看一区二区| 国产精品一区二区男女羞羞无遮挡| 国产精品久久久久aaaa樱花| 欧美高清hd18日本| 菠萝蜜视频在线观看一区| 日韩精品亚洲专区| 亚洲视频你懂的| 久久日一线二线三线suv| 欧美色图在线观看| zzijzzij亚洲日本少妇熟睡| 人人狠狠综合久久亚洲| 亚洲男人天堂av网| 久久午夜色播影院免费高清 | 亚洲主播在线观看| 中文字幕免费不卡| 久久一二三国产| 91精品蜜臀在线一区尤物| 一本大道综合伊人精品热热| 国产麻豆精品theporn| 日韩电影一二三区| 亚洲一区二区五区| 日韩一区欧美小说| 欧美国产精品中文字幕| 欧美精品一区二区三区高清aⅴ | 精品久久久久久久久久久久久久久久久| 99久久亚洲一区二区三区青草| 国产原创一区二区三区| 美脚の诱脚舐め脚责91| 丝袜亚洲另类欧美| 亚洲va韩国va欧美va精品| 亚洲精品日韩一| 国产精品灌醉下药二区| 欧美国产乱子伦| 国产日韩欧美一区二区三区综合| 精品乱人伦小说| 精品精品欲导航| 欧美一区二区三区四区视频| 欧美人与性动xxxx| 欧美二区三区91| 51精品国自产在线| 91精品国产综合久久蜜臀| 欧美电影一区二区| 欧美一卡2卡三卡4卡5免费| 91精品国产综合久久蜜臀| 欧美一区日韩一区| 日韩一区二区精品| 欧美成va人片在线观看| 久久中文字幕电影| 国产亚洲1区2区3区| 中文字幕欧美三区| 亚洲色图都市小说| 亚洲一区二区三区四区中文字幕| 一个色妞综合视频在线观看| 亚洲va欧美va人人爽午夜| 日韩精品欧美精品| 国产一区中文字幕| 本田岬高潮一区二区三区| 色综合咪咪久久| 欧美精品久久99久久在免费线| 91精品国产一区二区三区| 欧美mv日韩mv国产网站app| 国产欧美综合在线| 亚洲免费资源在线播放| 三级一区在线视频先锋| 久久99国产精品久久99果冻传媒| 国产一区二区三区在线观看免费视频| 国产真实乱偷精品视频免| 成人av在线一区二区三区| 欧美性生活久久| 欧美成人在线直播| 中文字幕一区二区三区色视频| 亚洲精品免费看| 久久精品国产亚洲a| 国产成人av电影免费在线观看| 91免费国产视频网站| 51精品久久久久久久蜜臀| 中文无字幕一区二区三区| 亚洲国产精品久久不卡毛片| 国产在线视频不卡二| 在线影视一区二区三区| 欧美电视剧在线看免费| 亚洲欧美日韩电影| 久久爱www久久做| 色88888久久久久久影院野外| 日韩欧美一级特黄在线播放| 综合精品久久久| 久久99久久久欧美国产| 91国在线观看| 久久精品夜色噜噜亚洲aⅴ| 洋洋成人永久网站入口| 国产又黄又大久久| 欧美日韩国产123区| 国产精品麻豆视频| 黄页网站大全一区二区| 欧美少妇一区二区| 国产精品福利av| 久热成人在线视频| 欧美日韩国产综合草草| 最新成人av在线| 国产成人精品午夜视频免费| 欧美二区三区的天堂| 亚洲精品高清在线| 懂色av一区二区三区免费观看| 91精品久久久久久久91蜜桃| 亚洲与欧洲av电影| 91啪亚洲精品| 国产精品久久久久久久久图文区| 极品美女销魂一区二区三区免费| 欧美日韩精品综合在线| 亚洲美女免费在线| 99re这里只有精品6| 国产欧美日韩精品在线| 国内精品写真在线观看| 日韩欧美精品三级| 日韩国产精品大片| 8v天堂国产在线一区二区| 一区二区三区国产豹纹内裤在线| 99久久婷婷国产综合精品电影 | 亚洲国产精品国自产拍av| 久久av资源网| 日韩美一区二区三区| 美女脱光内衣内裤视频久久影院| 欧美一区二区三区的| 日韩不卡手机在线v区| 欧美挠脚心视频网站|