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

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

?? proclpc.m

?? 語音中的經典LPc估計
?? 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一区二区三区免费野_久草精品视频
日本视频一区二区三区| 欧美日韩国产大片| 国产美女在线观看一区| 北岛玲一区二区三区四区| 91论坛在线播放| 欧美一级欧美三级| 亚洲伦在线观看| 国内久久精品视频| 欧美在线你懂得| 国产精品丝袜在线| 裸体一区二区三区| 欧美久久久久久久久中文字幕| 亚洲精品一区在线观看| 亚洲午夜电影在线| 99视频一区二区| 日本一区二区免费在线观看视频| 一区二区三区中文字幕精品精品| 国产一区二区三区在线观看免费| 91蝌蚪porny九色| 亚洲欧洲制服丝袜| 91色婷婷久久久久合中文| 成人av资源下载| 日韩久久精品一区| 另类调教123区| 精品sm在线观看| 国内精品视频666| 久久久久久久一区| 成人一区二区在线观看| 国产精品美女久久久久av爽李琼| 奇米影视7777精品一区二区| 视频一区中文字幕国产| 欧美综合色免费| 成人免费在线观看入口| 不卡av在线免费观看| 欧美国产禁国产网站cc| 国产在线观看一区二区| 国产午夜精品久久久久久免费视 | 欧美经典三级视频一区二区三区| 裸体一区二区三区| 欧美激情一区二区三区| 99久久精品国产精品久久| 国产精品成人免费精品自在线观看| 成人午夜av电影| 丝袜美腿亚洲综合| 欧美国产一区二区在线观看| 97久久精品人人爽人人爽蜜臀| 亚洲欧洲综合另类| 欧美成人福利视频| 欧亚洲嫩模精品一区三区| 精彩视频一区二区三区| 亚洲精品欧美专区| 欧美激情一区二区三区不卡| 日韩一区二区免费高清| 日本高清不卡aⅴ免费网站| 激情偷乱视频一区二区三区| 亚洲午夜精品网| 综合中文字幕亚洲| 亚洲免费电影在线| 欧美日韩一区二区三区在线| 制服丝袜成人动漫| 久久婷婷国产综合国色天香| 国产真实精品久久二三区| 91精品国产乱码| 欧美久久久久久久久| 972aa.com艺术欧美| 99免费精品视频| 成人18视频日本| 一本大道久久精品懂色aⅴ| 国产永久精品大片wwwapp| 美国av一区二区| 激情文学综合插| 91无套直看片红桃| 国产原创一区二区| 91浏览器在线视频| 欧美三级乱人伦电影| 国产aⅴ综合色| 欧美日韩一区二区三区在线| 国产资源精品在线观看| 91在线高清观看| 国产91高潮流白浆在线麻豆| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 国产婷婷一区二区| 2024国产精品| 成人免费一区二区三区在线观看| 国产欧美一二三区| 亚洲丝袜制服诱惑| 日韩综合小视频| 成人性视频免费网站| 91香蕉视频黄| 久久夜色精品一区| 亚洲女爱视频在线| 丁香婷婷综合网| 蜜臀av性久久久久蜜臀aⅴ| 国产精品77777| 制服丝袜av成人在线看| 中文字幕va一区二区三区| 国产精品久久久久久亚洲伦| 亚洲第一狼人社区| 不卡的av电影在线观看| 欧美精品一区二区三区在线播放| 国产精品久久久久久妇女6080| 伦理电影国产精品| 在线影院国内精品| 亚洲一区在线播放| 91精品国产综合久久香蕉的特点 | 国产精品高潮呻吟| 99国内精品久久| 亚洲欧美激情小说另类| 色婷婷国产精品| 亚洲成人免费看| 日韩免费视频线观看| 久久av老司机精品网站导航| 久久噜噜亚洲综合| 99久久国产综合精品色伊| 亚洲成人av电影| 久久综合九色综合97婷婷女人 | 奇米精品一区二区三区在线观看一 | 99久久精品国产毛片| 香蕉成人啪国产精品视频综合网 | 99久久精品免费看| 男女视频一区二区| 奇米四色…亚洲| 91日韩在线专区| 成人黄色a**站在线观看| 久久99精品久久久| 久久www免费人成看片高清| 日韩精品亚洲一区| 蜜芽一区二区三区| 九一久久久久久| 国产精品一区二区不卡| 风间由美一区二区av101 | 奇米在线7777在线精品 | 日韩电影免费在线| 一区二区免费视频| 亚洲视频综合在线| 中文字幕欧美日韩一区| 精品99999| 国产亚洲短视频| 久久久国产精品麻豆| 2019国产精品| 国产欧美精品区一区二区三区 | 亚洲午夜在线电影| 亚洲综合自拍偷拍| 午夜影院久久久| 日韩成人一级片| 老司机免费视频一区二区| 久久精品国产网站| 国产毛片一区二区| 不卡视频一二三| 日韩三级高清在线| 97久久精品人人做人人爽50路| 美女视频网站黄色亚洲| 亚洲精品中文在线影院| 精品国产亚洲在线| 国产亚洲欧洲997久久综合 | 亚洲一区二区美女| 亚洲黄一区二区三区| 肉肉av福利一精品导航| 国产乱子轮精品视频| 日本精品视频一区二区三区| 欧美精品色综合| 国产精品久久夜| 免费观看在线色综合| 91片在线免费观看| 欧美精品1区2区| 欧美激情一区二区在线| 日韩成人午夜精品| www.成人在线| 欧美一级日韩一级| 亚洲综合激情另类小说区| 国产精品一卡二| 日韩免费高清av| 日产精品久久久久久久性色| 一本大道久久精品懂色aⅴ| 国产亚洲欧美色| 国产乱色国产精品免费视频| 欧美一区二区三区思思人| 亚洲美女免费视频| 成人免费的视频| 17c精品麻豆一区二区免费| 国产九九视频一区二区三区| 日韩一二三四区| 久久精品国产色蜜蜜麻豆| 日韩欧美不卡在线观看视频| 日产精品久久久久久久性色| 欧美一区二区日韩| 国产一区日韩二区欧美三区| 精品国产一区二区三区不卡| 国产伦精品一区二区三区免费| 精品福利视频一区二区三区| 国产精品一级片| 亚洲激情综合网| 日韩亚洲电影在线| 国产精品中文字幕欧美| 亚洲乱码中文字幕| 337p亚洲精品色噜噜噜| 国产aⅴ综合色| 日本少妇一区二区| 亚洲人成网站影音先锋播放| 欧美日精品一区视频|