Encode Decode
Encode Decode
Encode Decode
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
CODE.PPT 6.17<br />
CODE.PPT 6.18<br />
Filter Adaptation<br />
Prediction Filter<br />
We adjust the b i to reduce the signal d 2 (n) by moving them<br />
∂<br />
∂<br />
a little in the direction − ( ) =−<br />
∂b d 2<br />
n d n dn ( )<br />
( ) 2 ( )<br />
i<br />
∂bi<br />
Filters:<br />
−1<br />
−2<br />
Az () = az 1 + az 2<br />
We express D in terms of previous values of D:<br />
−1<br />
−2<br />
−3<br />
−4<br />
−5<br />
−6<br />
Bz () = bz 1 + bz 2 + bz 3 + bz 4 + bz 5 + bz 6<br />
Note that ∂ D S Q X S Q A +<br />
= + − = + −<br />
B A ∂B<br />
i<br />
= = z<br />
− 1−<br />
A D<br />
∂ai<br />
∂b<br />
∂D<br />
i<br />
−i<br />
1<br />
z<br />
Note that A(z) and B(z) filters involve only past values<br />
b A D z −i<br />
D ∂dn<br />
( )<br />
=− ≈− ⇒ ≈−dn<br />
( −i)<br />
∂ i 1−<br />
∂bi<br />
Signals:<br />
1 B<br />
Y = D + BD + AY ⇒ Y = + 1−<br />
A D<br />
X BD AY Y D A +<br />
= + = − =<br />
B 1−<br />
A D<br />
D= S+ Q− X = S+ Q− Y+ D ⇒ Y = S+<br />
Q<br />
In the absence of transmission errors, the y(n) output at the<br />
receiver and transmitter will be identical and equal to the<br />
input speech plus the quantisation noise<br />
Hence we want to adjust b i in the direction d(n)d(n-i):<br />
The function sgn() takes the sign of its argument. The<br />
0.996 leakage factor assists in recovery from transmission<br />
errors and prevents b i from exceeding ±2.<br />
( )<br />
b ← 0. 996b + 0. 008× sgn d( n) d( n−i)<br />
i<br />
i<br />
Adjustment of a i is similar but more ad-hoc:<br />
a ← 0.996a<br />
+ 0.012×<br />
sgn<br />
1<br />
2<br />
1<br />
a ← 0.996a<br />
2<br />
+ 0.008×<br />
sgn<br />
( v(<br />
n)<br />
v(<br />
n −1)<br />
)<br />
( v(<br />
n)<br />
v(<br />
n − 2) ) − 0.03a<br />
× sgn( v(<br />
n)<br />
v(<br />
n −1)<br />
)<br />
1<br />
Page 6. Speech Coding E.4.14 – Speech Processing