seminar presentation u10ec107
TRANSCRIPT
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 1/41
A
SEMINAR ONACOUSTIC ECHO CANCELLATION
Presented By: Guided By:
Amrendra Kumar Mishra Prof. P.K.Shah
B.Tech-IV Associate professorU10EC107 ECED,SVNIT
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 2/41
OUTLINE
• Introduction
• Acoustic Echo Modeling
• Components of AEC• Algorithms for AEC
• MATLAB Simulation
• Uses & Features• Conclusion
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 3/41
WHAT IS ACOUSTIC ECHO ?
Acoustic echo is a time delayed andattenuated version of original speechproduced by a sound source.
Echo is produced due to reflection oforiginal sound from nearby objects ofsound source.
In order to be sensed by human minimum
additional pressure level must be greater
than 20μ pascal at the vicinity of ear ofunderlying person.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 4/41
Continued..
If a person perceives a original sound andit’s echo with an interval of less than 100ms it go unnoticed due to limited capacityof human hearing.
considering above condition if at roomtemperature speed of sound is 340 m/s andthe reflecting object is d distance apartfrom original sound source ,for detection ofecho by a typical human being
(2*d)/velocity of sound > 100 ms.Placingthe proper values distance calculates out tobe 17 m.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 5/41
Acoustic echo in voice communication
Consider the given situation. A mobileuser in handset mode.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 6/41
Mobile user in handsfree mode
Acoustic coupling
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 7/41
How to combat this echo?
As, echoes are attenuated and time delayed version of originalsignal voice of far end talker can be processed and a duplicatecopy of the echo based on estimation of echo path can beproduced and be subtracted from overall speech signal toobtain the desired signal for transmission and at the sametime echoes can be prevented from propagating further incommunication network.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 8/41
How should adaptive filter be designed ?
In order to design adaptive filter we will have to modelthe echo mathematically to produce an almost exactreplica of the original sound.
Mathematically if x(t) is the original signal then it’s
one of the components of echo can be represented asa1x(t-t1) where a is the attenuation factor and t1 is thedelay encountered by the sound after reflecting froma surface. In case of multiple path available forreflection the composite signal at the input of
microphone can be written.C(t) = x(t) + a1 x(t-t1) + a2 x(t-t2) + a3 x(t-t3) + ……......an x(t-tn)
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 9/41
Acoustic Echo Path Modeling
The acoustic echo path of the near end talkercan be modeled as a linear system having timevarying impulse response h j[n], where j depicts
the coefficient index of h at time n. Given the speech sequence x[n], the resultant
acoustic echo y[n] is:
y[n]=Σ hi[n]x[n-i]Where hi[n] models the impulse response ofthe acoustic path (i.e. from microphone tospeaker at time n).
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 10/41
Room Impulse Response and it’sEstimation
Acoustic modeling of room as a system.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 11/41
Impulse response of a room.
If a person produces acoustic impulse in front ofmicrophone microphone won’t receive that impulsedirectly it would rather receive the signal coming fromdifferent paths having reflected off different surfaces. So
the signal sensed by microphone would be as that ofshown
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 12/41
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 13/41
Block diagram
Complete block diagram for AEC
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 14/41
Adaptive filter
This is the backbone of entire AEC system. In case ofacoustic echo cancellation we use FIR filter due to it’sstability. Adaptive filter employed in AEC estimates echopath based on a raw signal and with it’s comparison withthe received signal in a closed room environment.
let x be the far end signal vector. H is the room impulseresponse, y be the near end signal that consists ofacoustic echo along with voice of near end talker. H, thetransfer function of adaptive filter which has n number of
coefficients depending upon the order of the filter used.Coefficients of the filters keep on changing based on theecho estimation by the adaptive filter.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 15/41
Filter structure
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 16/41
How to update coefficients ofadaptive filter ?
There are 6 algorithms used forupdating coefficients of the filter:
Least mean square algorithm
Normalized mean square algorithm
Affine projection algorithm
Fast affine projection algorithm
Recursive least square algorithm Variable step size FAP algorithm
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 17/41
Least mean square algorithm
In 1959 Widrow and Hoff introduced the LMS algorithm.During the years this has been the by far most usedadaptive filtering algorithm for several reasons; it wasthe first, it requires relatively little computation and it
works well, at least for slow changes in the filter.
C(n) = E ( e(n)2 )Where c(n) is called as cost function.
C(n) is minimized to estimate impulse response of room
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 18/41
Implementation of LMS algorithm
Each iteration of LMS algorithm willcarry out following procedure:
1. The output of the FIR filter, y(n) iscalculated using equation:
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 19/41
Continued..
2. The value of the error estimation iscalculated using equation
e(n)=c(n)-y(n) For entire input vector square of e(n) is
calculated and added. Thereafteriteration keeps on happening and when
the mean square error is achieved acertain value adaption stops.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 20/41
Continued..
3. Lastly, the filter coefficients for nextiteration is calculated using followingformula:
Where μ is called step size and isfixed for LMS algorithm
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 21/41
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 22/41
NLMS algorithm & it’s implementation
NLMS algorithm is just anadvancement of LMS algorithm.
Steps for performing iteration: Output of the filter is calculated
according to following equation:
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 23/41
Continued..
An error signal is calculated as thedifference between the desired signaland the filter output.
Where d(n) and y(n) hold same logical meaning
as in case of LMS algorithm.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 24/41
Continued..
The step size value for the inputvector is calculated.
Where x(n) is input vector and
superscript T denotes transpose ofmatrix X.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 25/41
Continued..
Filter tap weights are updatedaccording to the following equation
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 26/41
Comparison between LMS & NLMS
For 1025 order and 7500 iteration below isthe quantitative comparison between bothalgorithms.
Courtesy:S.Haykin, “Adaptive Filter Theory”, PrenticeHall, 1996
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 27/41
Double talk detector
AEC should be able to perform it’s task that whencommunication is in fully duplex nature that implies thatboth the ends are allowed to talk at the same instant,and therefore the name DT- Double Talk. The signalreceived by the microphone will not only comprise echo,
but it will also contain the NET speech signal, if doubletalk exists. The near end signal acts as an uncorrelatednoise as to the adaptive algorithm and so it could allgive rise to the divergence of the adaptive filter. It istherefore necessary to find the existence of double talkin order to seize the process of adaption.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 28/41
How to decide DT ?
There are two main algorithm:
Geigel algorithm
Variance impulse response algorithm.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 29/41
Geigel algorithm
when the consented microphoneestimation tear by the maximum ofthe previous far-end samples is
greater than precise threshold, theDT is declared.
ξ > T, Double talk exist
ξ ≤ T ,Double talk doesn’t exist
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 30/41
Variance Impulse Response Algorithm
A newly used method that employs the highest value of theadaptive filter coefficients is VIRE DTD. The adaptive filter’svariance is what designs the VIRE (Variance impulse responsealgorithm) of recent times. Random variations are produced in thetaps of the adaptive filter because the near end speech signal actslike a degrading noise. The adaptive filter’s optimal coefficient areused so as to calculate the fluctuations along with the exponentialforgetting parameter:
By defining certain threshold for the fluctuations ofthe adaptive filter taps, the DT decisionis made as following:
ξ > T Double Talk exist
ξ ≤ T Double Talk doesn’t existDT detection is always frame based. At the end ofeach frame it will be computed.
Therefore the frame length is generally small
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 31/41
Non Linear processor
Due to quantization of analog speechthere exist some residual echo whichis afterwards removed by Non Linear
processor.
Although it is not a part of acousticecho canceller, it is often inbuilt in
AEC.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 32/41
Simulation in MATLAB
Random room impulse response
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 33/41
Continuted..
Near end talker speech sample
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 34/41
Continued..
Far end echoed signal
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 35/41
Micro phone signal
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 36/41
Output of echo canceller
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 37/41
Industry perspective of AEC
Adaptive digital technologies haspatented the AEC & manufactures
AEC-GEN 2 in software codec.
Texas instrument too has developedan AEC kit TMS320C6711 which canprovide echo return loss upto 50
decibel.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 38/41
Typical Feature of an AEC
Courtesy:http://www.adaptivedigital.com/pdfspecs/adt_aec-g2.pdf
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 39/41
Applications:
Hands free telephony
Teleconferencing
Howling rejector VOIP
Audio tone Data transfer
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 40/41
Conclusion
In the era of frequent use of hands free acoustic couplingof mc-phone and speaker is quite natural so AECavailability in relevant devices is must.
Along with AEC efficient noise suppression must also becarried out by AEC.
Presently 128 ms tail length echo can be nullified whichis expected to increase a bit further.
Advent of more robust DSP processor and efficientalgorithms are likely to enhance speech quality to agreat extent.
Employing sophisticated techniques echo return loss of90 decibel is quite likely to be achieved in upcoming fewyears.
8/13/2019 Seminar Presentation U10EC107
http://slidepdf.com/reader/full/seminar-presentation-u10ec107 41/41
THANK YOUHOPE YOU ENJOYED