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

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

?? proclpc.m

?? lpc算法在matlab下的運行
?? 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一区二区三区免费野_久草精品视频
gogogo免费视频观看亚洲一| 欧美日韩成人在线一区| 色综合天天综合在线视频| 精品视频在线免费观看| 久久综合色鬼综合色| 亚洲精品免费在线观看| 国产乱人伦偷精品视频不卡 | 成人国产免费视频| 欧美精品久久一区二区三区| 国产农村妇女精品| 麻豆精品在线观看| 日本韩国欧美一区| 国产欧美日韩精品一区| 日韩一区欧美二区| 欧美亚洲国产bt| 国产欧美一区二区精品秋霞影院| 日韩av一二三| 欧美日韩视频在线一区二区| 国产女同互慰高潮91漫画| 成人国产一区二区三区精品| 欧美一级黄色片| 亚洲永久精品国产| 91视视频在线观看入口直接观看www| 日韩丝袜美女视频| 日韩精品乱码免费| 欧美久久免费观看| 亚洲国产成人av好男人在线观看| av亚洲精华国产精华| 久久久青草青青国产亚洲免观| 日韩在线播放一区二区| 欧美日韩一本到| 一区二区成人在线观看| 色诱亚洲精品久久久久久| 国产精品免费免费| 不卡电影免费在线播放一区| 国产精品全国免费观看高清 | 国产成人在线视频免费播放| 日韩一区二区不卡| 另类小说综合欧美亚洲| 91精品欧美一区二区三区综合在| 香蕉av福利精品导航| 欧美午夜精品一区二区三区| 一区二区三区在线视频观看58| 色婷婷精品久久二区二区蜜臂av| 国产精品电影院| 色哟哟一区二区| 亚洲精品亚洲人成人网在线播放| 91麻豆文化传媒在线观看| 亚洲美女精品一区| 欧美日韩成人激情| 热久久一区二区| 久久久久综合网| 成人视屏免费看| 亚洲欧美日本韩国| 91热门视频在线观看| 一区二区三区日本| 91精品国产91久久久久久一区二区 | 日韩精品电影在线| 精品免费一区二区三区| 国产高清在线观看免费不卡| 国产精品精品国产色婷婷| 91视频在线观看免费| 亚洲综合激情小说| 欧美变态tickling挠脚心| 国产福利一区二区三区视频| 亚洲欧洲av色图| 欧美日韩一区二区三区免费看| 日本欧美久久久久免费播放网| 精品少妇一区二区三区在线视频| 精品一区二区免费| 亚洲日本一区二区三区| 欧美日韩免费在线视频| 黄色成人免费在线| 精品一区二区三区欧美| 国产精品国产三级国产| 欧美日韩一区不卡| 国产精品中文字幕日韩精品| 亚洲欧美日韩成人高清在线一区| 欧美疯狂做受xxxx富婆| 国产成人精品影视| 亚洲一区二区三区在线| 久久久精品tv| 欧美日韩国产一二三| 国产精品资源网站| 日韩中文欧美在线| 中文字幕欧美区| 欧美三区免费完整视频在线观看| 六月丁香婷婷色狠狠久久| 亚洲天堂网中文字| 久久久久久久久久久黄色| 欧美吻胸吃奶大尺度电影| 国产经典欧美精品| 日本成人超碰在线观看| 亚洲人成精品久久久久| 国产香蕉久久精品综合网| 欧美老肥妇做.爰bbww| 不卡高清视频专区| 国产成人自拍网| 秋霞国产午夜精品免费视频| 亚洲蜜臀av乱码久久精品| 国产三级精品三级在线专区| 欧美日韩色一区| 99国产精品视频免费观看| 国产九色精品成人porny| 午夜欧美在线一二页| 亚洲品质自拍视频| 亚洲欧洲性图库| 国产三级精品三级在线专区| 日韩精品一区二区三区在线观看 | 奇米精品一区二区三区在线观看 | 成人看片黄a免费看在线| 欧美亚洲自拍偷拍| 99在线精品一区二区三区| 国产一区啦啦啦在线观看| 老司机免费视频一区二区| 日韩精品免费专区| 日韩影院精彩在线| 日韩电影一二三区| 男女男精品视频| 日本伊人精品一区二区三区观看方式| 一区二区三区欧美激情| 亚洲嫩草精品久久| 一区二区三区四区在线免费观看| 亚洲人成网站影音先锋播放| 自拍偷拍欧美激情| 亚洲美女偷拍久久| 亚洲综合一区二区三区| 亚洲一区二区三区四区五区中文| 亚洲色图在线看| 一区二区三区中文在线| 夜夜嗨av一区二区三区中文字幕| 亚洲精品高清在线观看| 亚洲综合在线五月| 日韩在线卡一卡二| 国产又黄又大久久| 成人毛片视频在线观看| 日本韩国欧美一区二区三区| 欧美精品在线视频| 欧美va亚洲va在线观看蝴蝶网| 精品成人私密视频| 国产精品福利av| 樱桃视频在线观看一区| 亚洲国产精品影院| 日韩精品一级二级 | 色天使色偷偷av一区二区| 91高清在线观看| 91麻豆精品91久久久久久清纯 | 香蕉av福利精品导航| 美女任你摸久久| 国产精品99久久久久久久vr| a美女胸又www黄视频久久| 欧美日韩国产一级片| 国产亚洲女人久久久久毛片| 国产精品成人一区二区三区夜夜夜| 亚洲欧洲美洲综合色网| 日本伊人精品一区二区三区观看方式| 精品亚洲国产成人av制服丝袜 | 日韩一区二区三区高清免费看看| 久久久亚洲精华液精华液精华液| 中文字幕中文字幕一区| 日韩高清中文字幕一区| 成人黄色软件下载| 国产性做久久久久久| 亚洲国产aⅴ成人精品无吗| 捆绑变态av一区二区三区| 99精品在线免费| 日韩精品一区二区三区视频 | 欧美精品一区视频| 亚洲乱码国产乱码精品精小说 | 亚洲成av人影院| 成人午夜在线播放| 欧美一区二区人人喊爽| 国产精品国产三级国产有无不卡| 日韩高清国产一区在线| 色偷偷成人一区二区三区91 | 欧美日韩1区2区| 久久精品在线免费观看| 日本成人中文字幕在线视频| 波多野结衣精品在线| 日韩欧美一区二区在线视频| 日韩毛片视频在线看| 国产一区久久久| 制服丝袜亚洲色图| 亚洲乱码日产精品bd| 成人免费视频播放| 欧美大胆一级视频| 天天综合色天天综合色h| 91蜜桃免费观看视频| 中文字幕第一区综合| 韩日av一区二区| 91精品国产综合久久国产大片| 亚洲欧美色综合| 成人av集中营| 久久久777精品电影网影网| 麻豆91在线播放免费| 3d动漫精品啪啪一区二区竹菊| 亚洲一区二区三区四区在线观看| 91网上在线视频| 中文字幕日韩欧美一区二区三区| 国产99久久久精品|