預加重及C代碼

 

預加重及C代碼

 

預加重的作用

預加重是提高信號高頻部分,使得低頻部分到高頻部分的頻譜平穩。使低頻到高頻的信噪比一樣。經常在頻譜分析中使用。

 

在語音頻譜分析中,我們為什麼要使用預加重?

語音信號中由於人聲的激勵,使得頻譜低頻向高頻呈跌落狀態,也就是說高頻比低頻的成分少,高頻比低頻難求。所以在頻譜分析之前我們需要對時域語音信號進行預加重。

 

以下是預加重的C代碼

pfData 是輸入語音信號

fMem   用於保存計算中語音信號的前一個信號值pfData[i-1]

fPreemph 預加重值,值在0.0~1.0區間,值越大,高頻提高的程度越高

nFrameSize pfData的個數

void PreEmphasis(float* pfData, int nFrameSize, float fPreemph, float& fMem)

{

float fTmp = 0;

for(int i = 0; i < nFrameSize; i++)

{

fTmp = pfData[i] - fPreemph * fMem;

fMem = pfData[i];

pfData[i] = fTmp;

}

}

 

标题 Pre-emphasis apparatus, low voltage differential signaling transmitter including the same and pre-emphasis method Pre-emphasis apparatus, low voltage differential signaling transmitter including the same and pre-emphasis method Pre-emphasis circuitry including a pre-emphasis voltage variation compensation engine Voltage regulator for impedance matching and pre-emphasis, method of regulating voltage for impedance matching and pre-emphasis, voltage mode driver including the voltage regulator, and voltage-mode driver using the method Pre-emphasis circuit and differential current signaling system having the same Pre-emphasis circuit and differential current signaling system having the same Semiconductor device with output driver pre-emphasis scheme Pre-emphasis circuit Pre-emphasis automatic adjusting system, method of adjusting pre-emphasis and pre-emphasis setting signal generating circuit Distributed pre-emphasis equalizer Pre-emphasis automatic adjusting system, method of adjusting pre-emphasis and pre-emphasis setting signal generating circuit DAC based driver with selectable pre-emphasis signal levels DAC based driver with selectable pre-emphasis signal levels Method and apparatus for performing transmit pre-emphasis Differential Data Transmitter With Pre-Emphasis Method of half-bit pre-emphasis for multi-level signal Method of Half-Bit Pre-Emphasis for Multi-Level Signal DAC based driver with selectable pre-emphasis signal levels DAC based driver with selectable pre-emphasis signal levels Phase-adjusted pre-emphasis and equalization for data communication Method and apparatus for increased communication channel pre-emphasis for clock-like data patterns Transmitters for loop-back adaptive pre-emphasis data transmission Method and apparatus for increased communication channel pre-emphasis for clock-like data patterns Semiconductor memory device having pre-emphasis signal generator Method and apparatus for performing transmit pre-emphasis System and method of gen
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值