A Computational Efficient Method for Assuring Full Duplex Feeling in Hands- Free Communication

Similar documents
A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication

THE problem of acoustic echo cancellation (AEC) was

ROBUST echo cancellation requires a method for adjusting

Design and Implementation on a Sub-band based Acoustic Echo Cancellation Approach

Digital Signal Processing Methods and Algorithms for Audio Conferencing Systems

Speech Enhancement Based On Spectral Subtraction For Speech Recognition System With Dpcm

Low-Complexity Algorithms. Audio Conferencing Systems. Christian Schüldt. Blekinge Institute of Technology Doctoral Dissertation Series No.

Architecture design for Adaptive Noise Cancellation

Mel Spectrum Analysis of Speech Recognition using Single Microphone

IEEE TRANSACTIONS ON COMMUNICATIONS, VOL. 50, NO. 12, DECEMBER

Speech and Audio Processing Recognition and Audio Effects Part 3: Beamforming

Speech Enhancement Based On Noise Reduction

A hybrid acoustic echo canceller and suppressor

Implementation of Optimized Proportionate Adaptive Algorithm for Acoustic Echo Cancellation in Speech Signals

GSM Interference Cancellation For Forensic Audio

Different Approaches of Spectral Subtraction Method for Speech Enhancement

FOURIER analysis is a well-known method for nonparametric

Title. Author(s)Sugiyama, Akihiko; Kato, Masanori; Serizawa, Masahir. Issue Date Doc URL. Type. Note. File Information

Acoustic echo cancellers for mobile devices

A Novel Hybrid Technique for Acoustic Echo Cancellation and Noise reduction Using LMS Filter and ANFIS Based Nonlinear Filter

Speech Enhancement in Presence of Noise using Spectral Subtraction and Wiener Filter

Automotive three-microphone voice activity detector and noise-canceller

Digital Signal Processing of Speech for the Hearing Impaired

An Efficient and Flexible Structure for Decimation and Sample Rate Adaptation in Software Radio Receivers

DESIGN AND IMPLEMENTATION OF ADAPTIVE ECHO CANCELLER BASED LMS & NLMS ALGORITHM

Pattern Recognition. Part 6: Bandwidth Extension. Gerhard Schmidt

COMPARATIVE STUDY OF VARIOUS FIXED AND VARIABLE ADAPTIVE FILTERS IN WIRELESS COMMUNICATION FOR ECHO CANCELLATION USING SIMULINK MODEL

Encoding a Hidden Digital Signature onto an Audio Signal Using Psychoacoustic Masking

Performance Analysis of Acoustic Echo Cancellation Techniques


On The Achievable Amplification of the Low Order NLMS Based Adaptive Feedback Canceller for Public Address System

Optimal Adaptive Filtering Technique for Tamil Speech Enhancement

Reduction of Musical Residual Noise Using Harmonic- Adapted-Median Filter

VLSI Circuit Design for Noise Cancellation in Ear Headphones

NOISE ESTIMATION IN A SINGLE CHANNEL

EFFECTS OF PHYSICAL CONFIGURATIONS ON ANC HEADPHONE PERFORMANCE

SPEECH communication among passengers in large motor

ZLS38500 Firmware for Handsfree Car Kits

AUTOMATIC EQUALIZATION FOR IN-CAR COMMUNICATION SYSTEMS

Broadband Microphone Arrays for Speech Acquisition

ADAPTIVE NOISE CANCELLING IN HEADSETS

Gerhard Schmidt / Tim Haulick Recent Tends for Improving Automotive Speech Enhancement Systems. Geneva, 5-7 March 2008

SELECTIVE TIME-REVERSAL BLOCK SOLUTION TO THE STEREOPHONIC ACOUSTIC ECHO CANCELLATION PROBLEM

Technical features For internal use only / For internal use only Copy / right Copy Sieme A All rights re 06. All rights re se v r ed.

int.,.noil. 1989December

Isolated Word Recognition Based on Combination of Multiple Noise-Robust Techniques

A Comparison of the Convolutive Model and Real Recording for Using in Acoustic Echo Cancellation

Adaptive Filters Application of Linear Prediction

Cancellation of Unwanted Audio to Support Interactive Computer Music

EXTRACTING a desired speech signal from noisy speech

A FEEDFORWARD ACTIVE NOISE CONTROL SYSTEM FOR DUCTS USING A PASSIVE SILENCER TO REDUCE ACOUSTIC FEEDBACK

University Ibn Tofail, B.P. 133, Kenitra, Morocco. University Moulay Ismail, B.P Meknes, Morocco

Practical Limitations of Wideband Terminals

Acoustic Echo Cancellation: Dual Architecture Implementation

Speech Synthesis using Mel-Cepstral Coefficient Feature

Chapter 4 SPEECH ENHANCEMENT

Active Noise Cancellation System using low power for Ear Headphones

Analysis on Extraction of Modulated Signal Using Adaptive Filtering Algorithms against Ambient Noises in Underwater Communication

Single Channel Speaker Segregation using Sinusoidal Residual Modeling

techniques are means of reducing the bandwidth needed to represent the human voice. In mobile

Recent Advances in Acoustic Signal Extraction and Dereverberation

Auditory modelling for speech processing in the perceptual domain

CHAPTER 3 SPEECH ENHANCEMENT ALGORITHMS

Blind Dereverberation of Single-Channel Speech Signals Using an ICA-Based Generative Model

REAL-TIME BROADBAND NOISE REDUCTION

MULTICHANNEL ACOUSTIC ECHO SUPPRESSION

A Three-Microphone Adaptive Noise Canceller for Minimizing Reverberation and Signal Distortion

A Low-Power Broad-Bandwidth Noise Cancellation VLSI Circuit Design for In-Ear Headphones

Application of Affine Projection Algorithm in Adaptive Noise Cancellation

The Steering for Distance Perception with Reflective Audio Spot

Performance Analysis of Acoustic Echo Cancellation in Sound Processing

Evaluation of a Multiple versus a Single Reference MIMO ANC Algorithm on Dornier 328 Test Data Set

x ( Primary Path d( P (z) - e ( y ( Adaptive Filter W (z) y( S (z) Figure 1 Spectrum of motorcycle noise at 40 mph. modeling of the secondary path to

Discrete-Time Signal Processing (DTSP) v14

Design and Implementation of Adaptive Echo Canceller Based LMS & NLMS Algorithm

EE 6422 Adaptive Signal Processing

CHAPTER 2 FIR ARCHITECTURE FOR THE FILTER BANK OF SPEECH PROCESSOR

Digitally controlled Active Noise Reduction with integrated Speech Communication

Keywords: Adaptive filtering, LMS algorithm, Noise cancellation, VHDL Design, Signal to noise ratio (SNR), Convergence Speed.

ACOUSTIC feedback problems may occur in audio systems

RASTA-PLP SPEECH ANALYSIS. Aruna Bayya. Phil Kohn y TR December 1991

APPLICATIONS OF ACOUSTIC ECHO CONTROL AN OVERVIEW

Enhancement of Speech in Noisy Conditions

Calibration of Microphone Arrays for Improved Speech Recognition

Acoustic Echo Reduction Using Adaptive Filter: A Literature Review

works must be obtained from the IEE

SUPERVISED SIGNAL PROCESSING FOR SEPARATION AND INDEPENDENT GAIN CONTROL OF DIFFERENT PERCUSSION INSTRUMENTS USING A LIMITED NUMBER OF MICROPHONES

Acoustic Echo Cancellation using LMS Algorithm

Enhancement of Speech Signal Based on Improved Minima Controlled Recursive Averaging and Independent Component Analysis

Simple Impulse Noise Cancellation Based on Fuzzy Logic

Can binary masks improve intelligibility?

A SYSTEM IMPLEMENTATION OF AN ACTIVE NOISE CONTROL SYSTEM COMBINED WITH PASSIVE SILENCERS FOR IMPROVED NOISE REDUCTION IN DUCTS SUMMARY INTRODUCTION

MINUET: MUSICAL INTERFERENCE UNMIXING ESTIMATION TECHNIQUE

The Hybrid Simplified Kalman Filter for Adaptive Feedback Cancellation

Speech Enhancement Using Beamforming Dr. G. Ramesh Babu 1, D. Lavanya 2, B. Yamuna 2, H. Divya 2, B. Shiva Kumar 2, B.

II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing

Adaptive Filters Wiener Filter

SPECTRAL COMBINING FOR MICROPHONE DIVERSITY SYSTEMS

Michael F. Toner, et. al.. "Distortion Measurement." Copyright 2000 CRC Press LLC. <

Acoustic echo cancellers for mobile devices

Transcription:

Blekinge Institute of Technology Research Report No 2003:09 A Computational Efficient Method for Assuring Full Duplex Feeling in Hands- Free Communication Fredric Lindström Mattias Dahl Ingvar Claesson Department of Telecommunications and Signal Processing Blekinge Institute of Technology

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication Research Report, June 2003

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication Fredric Lindström Mattias Dahl Ingvar Claesson June 2003

Abstract This report proposes a method for obtaining satisfying full-duplex feeling in hands-free communication units at low computational cost. The proposed method uses a combination of an acoustic echo cancellation unit and an adaptive gain unit. The core of the method is to perform the processing of the speech signal into two separate frequency bands and to process these in different manners. Acoustic echoes in the low frequency part of the signal are cancelled by means of an acoustic echo cancellation unit, while acoustic echoes in the high frequency part are suppressed by an adaptive gain unit. The proposed method is well suited when extending the bandwidth of an existing hands-free phone. A real-time implementation of a conventional hands-free phone is compared with a real-time implementation according to the proposed method, where the later is an extended version of the first. The evaluation of the two implementations shows that the proposed method can be used to increase the quality, i.e. extended bandwidth, of a hands-free phone with only a small increase in computational demand.

Contents 1 Introduction 3 2 The Hands-free Situation 5 2.1 The Half Duplex and Full Duplex Concepts.......... 5 2.2 Present Signals and Environmental Impact........... 6 3 Methods 9 3.1 TheAdaptiveGainMethod... 9 3.2 TheAECMethod... 9 3.3 TheAECNLMSMethod... 11 3.4 TheProposedMethod... 12 3.5 Perceptual Aspects of the Proposed Method.......... 12 4 Comparison of the Proposed AEC-AG Method and the AEC Method 17 4.1 FrequencyComparison... 17 4.2 Computational Comparison................... 17 5 Bandwidth Extension, Real-time Implementations 20 5.1 The AEC-AG Method used for Bandwidth Extension..... 20 5.2 Solution S AEC,AReal-timeAECImplementation... 21 5.3 Solution S AEC AG, A Real-time AEC-AG Implementation... 22 6 Experimental Setup, Evaluation, and Result 25 6.1 TheSetup... 25 6.2 TheEvaluation... 27 6.3 TheResult... 28 7 Conclusions and Further Work 33 7.1 Conclusions... 33 7.2 FurtherWork... 33

Chapter 1 Introduction Hands-free phones are preferred in many situations, such as in the car, at the office, at home, or in the conference room. A hands-free phone call takes part between the participants located in the same room/car as the hands-free phone, the near-end talkers, and participants at a remote location, the farend talkers. The requirements of a hands-free phone are higher as compared to an ordinary hand held telephone. It is mainly the strong acoustic coupling between the loudspeaker and the microphone in the hands-free phone that imposes higher design requirements. Due to the strong acoustic coupling, acoustic echoes arise. If no countermeasure is taken to suppress the acoustic echo, far-end talkers are presumed to hear an echo of their own voice, which is in general considered to be very annoying. Several solutions to the acoustic echo problem have been proposed. One type of solutions are those based on the system identification scheme, [1], [2]. A common solution, conforming to the system identification scheme, is often denoted an Acoustic Echo Canceler (AEC), [3]. Other acoustic echo cancelers using adaptive methods, such as microphone array based systems, [4], can also be categorized as acoustic echo cancelers. In the sequel an AEC will denote a solution conforming to a system identification scheme as defined in [1]. Many variations of the AEC are based on different algorithms for the adaptation of the system. Algorithms such as the Normalized Least Mean Squares (NLMS) [5], the Recursive Least Squares (RLS) [6], or the Affine Projection Algorithm (APA) [7]. The performance of an AEC is linked to the estimation of certain parameters, such as speech activity, acoustic coupling etc, [8]. The calculation of certain speech activity parameters is crucial for most AEC system, in particular double talk detection. Several double talk detectors have been proposed, some are based on distance measurements such as cross-correlation, [9], [10], coherence [11], or cepstral distance, [8]. Others are based on power measurements, e.g. the classical Giegel detector, [12], or can be characterized echo path change 3

4 Fredric Lindström Mattias Dahl Ingvar Claesson detectors, [13]. In this report, we propose a method for implementing a hands-free phone, providing full-duplex feeling, as well as a low computational demand. The method is fit for extension of the bandwidth of an existing conventional AEC.

Chapter 2 The Hands-free Situation 2.1 The Half Duplex and Full Duplex Concepts Half-DupleX (HDX) and Full-DupleX (FDX) are labels often used to describe the character of certain methods for the acoustic echo problem. An HDX method suppresses the echo by only allowing sound to stream in one direction, i.e. either the near-end talk or the far-end talk is transmitted. Different approaches to determine in which direction sound should be allowed to stream exists, but the most common ones are based one some sort of power measure, [14], [15], [16], e.g. priority is given to the loudest talker or priority is always given to the near-end talker. An FDX solution uses adaptive signal processing to meet the requirement of low echoes. The core of this solution is to cancel echoes by means of adaptive echo cancelling algorithms, thus allowing talk to stream undamped simultaneously. Many real-time implementations claiming FDX does not fulfill this requirement, i.e. that the signal should stream undamped in both directions all the time. Further many real-time solutions characterized as HDX allows simultaneously streaming in both directions of more or less damped signals. A psychoacoustic approach to the HDX and FDX notation problem is to characterize implementations with FDX-feeling as implementations for which it is possible for the farend and near-end talkers to speak simultaneously and to interrupt each other without any perceptible degradation of the perceived overall quality of the call. Implementations with HDX-feeling will thus be those that do not have FDX-feeling. The concept of FDX-feeling and HDX-feeling is truly subjective. Still it is an attractive concept, since it provides a notation that can be used to separate hands-free systems with satisfying quality from those characterized by switching effects and interrupted communication. 5

6 Fredric Lindström Mattias Dahl Ingvar Claesson 2.2 Present Signals and Environmental Impact When there is no far-end signal, x(t), present the near-end signal, y(t), only consists of near-end generated sound, v(t), see figure 2.1. The near-end sound v(t) is the sum of the near-end speech, s(t), and the background noise, n(t), (e.g. a fan), after they have been filtered through the room and the microphone. The near-end speech part of v(t) consists of direct path part and a part that reaches the microphone via a multitude of reflections. This reflected part is referred to as the near-end room reverberation signal. The near-end room reverberation may also degenerate the perceived speech quality as well. However, it is the remedy of the acoustic echo that is treated in this report. The acoustic echo, e(t), is the result of the transformation of the far-end signal, x(t), as it passes through the loudspeaker, the room and the microphone, see figure 2.2. The near-end signal is thus a combination of the acoustic echo and the near-end generated sound, i.e. y(t) = e(t) + v(t). The combined influence from the loudspeaker, the room, and the microphone on a signal that passes through all of these is denoted the Loudspeaker Enclosure Microphone system LEM-system, other definitions of the LEM-system exists e.g. [8], [17]. The combined operation of a filtering with the LEM-system and the adding of the near-end generated sound is denoted LEMN-system, see figure 2.2. The LEMN-system can thus be seen as a transform of the far-end signal x(t) into the acoustic echo e(t) and the adding of the near-end generated sound v(t), in order to produce the near-end signal y(t), see figure 2.2. Four different situations of speech activity apply to a hands-free telephony. These are, idle, near-end talk, far-end talk, and double talk. Idle is when no one is speaking, near-end talk is when only the near-end talker is speaking, far-end talk is when only the far-end talker is speaking, and double talk is when both the far-end talker and the near-end talker are speaking simultaneously.

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication 7 Far-end side Near-end side x(t)=0 s(t) Wall y(t)=v(t) n(t) Figure 2.1: Near-end generated sound.

8 Fredric Lindström Mattias Dahl Ingvar Claesson Far-end side Near-end side x(t) Wall LEM y(t)=e(t)+v(t) s(t)+n(t) LEMN Figure 2.2: The LEM-system(dashed) and LEMN-system(dotted). The LEM-system has x(t) as input and e(t) as output. The LEMN-system has x(t) as input and y(t) as output.

Chapter 3 Methods 3.1 The Adaptive Gain Method The Adaptive Gain (AG) method suppresses the echo by damping sound in one or both directions. An AG implementation is depicted in figure 3.1, it consists of two attenuators D x and D y that damps the far-end signal x(t) and the near end signal y(t), respectively. The attenuation is controlled by the control unit, CU, which makes decisions based upon energy estimations of x(t) and y(t). An AG method where the dampers are replaced by on-off switches and one and only one switch is connected at each instant matches the definition of an HDX connection, see section 2.1. From this observation it is tempting to classify the AG method as a method with HDX-feeling, but since HDX-feeling is a subjective concept no such general statement can be made. 3.2 The AEC Method An AEC based on a system identification scheme is depicted in figure 3.2. It consists of an Adaptive Processor (AP ), and a summation unit, Σ. The present signals are the far-end signal, x( ), the near-end signal, y( ), consisting of the sum of the near-end sound v(t) and the acoustic echo e(t), the estimated acoustic echo, ê( ), i.e the output from the AP, and finally the error signal, y e ( ), with y e ( ) =y( ) ê( ). The purpose of an AEC is to adapt the transfer characteristics of the AP to be similar to the LEM. Identity is said to be achieved when the acoustic echo part of y e ( ) is minimized in some given measure. Hence, the signal y e ( ) is often used as feedback in the adaptation algorithm of the AP. Examples of algorithms that can be used in the AP are given in, [5], [6], and [7]. 9

10 Fredric Lindström Mattias Dahl Ingvar Claesson Far-end side x(.) D x Near-end side x (.) damp CU Adaptive Gain Control Unit LEMN y (.) damp D y y(.) Figure 3.1: The Adaptive Gain Solution

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication 11 Far-end side Near-end side x(.) AP Adaptive Processing Unit LEMN y (.) e ^e(.) - y(.) Figure 3.2: The AEC Solution 3.3 The AEC NLMS Method The NLMS algorithm [5] is an often used algorithm for the implementation of the AP. The popularity of the NLMS algorithm is due to the low complexity and the high robustness to power variations in finite arithmetic precision, [6]. In the NLMS implementation the AP consists of an adaptive FIR filter, w(k), of length N, w(k) = [w 0 (k),w 1 (k),,w N 1 (k)] T, where k is the sample index. The filter w(k) is updated in periods when the near-end sound part, v(k), of the near-end signal, y(k), is small. During these periods the algorithm tries to minimize the mean square error of y e (k) bymodifying the coefficients of w(k) according to ŷ(k) =w(k) T x(k) (3.1) y e (k) =y(k) ê(k) (3.2) w(n +1)=w(k)+ βy e(k)x(k) ɛ+ x(k) 2 (3.3) where x(k) =[x(k),x(n 1),,x(n N +1)] T is a column vector containing the last N samples of the far-end signal, β is the chosen step-size, and ɛ is some small positive number used to prevent noise amplification, [1].

12 Fredric Lindström Mattias Dahl Ingvar Claesson 3.4 The Proposed Method The basic idea of the method proposed in this report is to split the speech signals, (i.e. the far-end and the near-end signal), in two bands, one that contains the lower frequencies of the speech signal and one that contains the higher frequencies, which are processed in different ways. The low frequency part is processed with a conventional full duplex AEC. Acoustic echoes in the low frequency band will therefore be cancelled and speech will not be interrupted in any direction. The high frequency part will be passed with a level dependent damping, i.e. high frequency echoes are suppressed with damping. This implies that in a situation of acoustic echo the near-end signal will be damped. The processing of the high frequency part can be done in a computation saving manner, since there is no need for full-band adaptive filtering. The method is depicted in figure 3.4 where the far-end signal, x( ), is split up into a low frequency part, x L ( ), and a high frequency part, x H ( ). The general structure of the bandpass splitting filters BP L and BP H is depicted in figure 3.3. The low frequencies signals x L ( ) andy L ( ) are processed according to the NLMS AEC algorithm. The operation performed on the high frequency signals x H ( ) andy H ( ) will be an attenuation of y H ( ) controlled by an averaging of x H ( ) or x H ( ) 2, i.e. the suppression of y H ( ) will be dependent of the signal power of x H ( ). This attenuation d( ) canbe described as d(k) =g(k) (3.4) where k is the sample index and g(k) is some averaging function of x H ( ) or x H ( ) 2. The proposed method can thus be seen as a combination of the AEC method and the AG method, as it is a combination of both of these methods it is denoted the AEC-AG method. 3.5 Perceptual Aspects of the Proposed Method The proposed AEC-AG method splits the signal in a high frequency and a low frequency part. The AG processing of the high frequency band signal could mean a degradation of the quality, i.e. damping of the high frequency components of the near-end signal in situations of double talk could be perceived as annoying. Most LEM-systems have a low pass character. Owing to this low pass character the artificial damping done by the new method can be Other algorithms than the NLMS are of course possible for the implementation of the echo canceling.

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication 13 Gain 0dB -3 db BP L BP H f ll f lu f hl f hu Frequency Figure 3.3: General structure of BP L and BP H Far-end side Near-end side x(.) HP x (.) H x (.) out LP x (.) L CU Adaptive Gain Control Unit AP Adaptive Processing Unit LEMN ^e(.) y (.) out y (.) e - y (.) L LP y(.) y (.) Hdamp D y (.) H HP Figure 3.4: The AEC-AG solution

14 Fredric Lindström Mattias Dahl Ingvar Claesson 100 Cumulative frequency band power 90 80 % of total frequency band power 70 60 50 40 30 20 10 Typical Room Frequency Response Long Time Averaged Speech Spectrum Female Long Time Averaged Speech Spectrum Male 0 0 1000 2000 3000 4000 5000 6000 7000 Frequency (Hz) Figure 3.5: Cumulative frequency power for the LEM-system of a typical conference room and long-time averaged speech spectrums. reduced and thus also its impact on speech quality. A plot over cumulative frequency power for the LEM-system of a typical conference room is shown in figures 3.5-3.6. The long-time average speech spectrum of both female and male voices are dominated by its low frequency content [18]. The cumulative frequency band power for the long-time average male and female voice speech spectrums are shown in figures 3.5-3.6. The cumulative frequency power of the average speech spectrums are calculated from data in [18]. The relatively dominant part at lower frequencies implies that the high frequency echo averaged over long time will be small in relation to the low frequency echo. Damping of the high frequency components of the near-end signal only occurs in situations of double talk. It can be assumed that the damping of the near-end signal will

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication 15 100 Cumulative frequency band power of speech weighted with room 90 80 % of total frequency band power 70 60 50 40 30 20 10 Typical Room Frequency Response and female speech Room Frequency Response and male speech 0 0 1000 2000 3000 4000 5000 6000 7000 Frequency (Hz) Figure 3.6: Cumulative frequency power for the LEM-system of a typical conference room weighted with long-time averaged speech spectrums.

16 Fredric Lindström Mattias Dahl Ingvar Claesson be masked by the present far-end signal to some extent, i.e. in a double talk situation for persons situated in the far-end location it is likely that their perception of the near-end signal is diminished in favor of the far-end speech. So, the main arguments that speaks in favor of the new method are: 1. Most LEM-systems have low pass characters. 2. Long-time averaged speech spectrums are dominated by their low frequency content. 3. The damping of the high frequency band only occurs during double talk, and can thus be perceptually small. Quantitative measurement as those presented in figures 3.5-3.6 can be performed in order to support the above arguments. The interpretation of such measurements must be done with caution, since there is no defined relation between these measurements and the perceived quality of the final system. What the above arguments gives is thus not a proof of the function of the proposed method, but rather an explanatory model of why it works perceptually.

Chapter 4 Comparison of the Proposed AEC-AG Method and the AEC Method 4.1 Frequency Comparison In this section, the frequency content of a conventional full-band NLMS based AEC method and the proposed AEC-AG method are discussed. These methods are described in sections 3.3 and 3.4, respectively. Consider two implementations of these two methods operating on the same communication bandwidth. The frequency range of the speech in the AEC-AG solution is the same as for the AEC solution for all states except double talk. During double talk the high frequency part of the near-end signal is damped with a damp factor, see figure 3.4. The only difference between the two methods from a frequency aspect is thus a damping of the high frequency part of the near-end signal in situations of double talk. 4.2 Computational Comparison In this section, the computational demand of an NLMS based AEC method and the proposed AEC-AG method are discussed. An AEC method implemented with the NLMS algorithm operating on a communication bandwidth of B Hz, will require a sampling frequency f s,withf s > 2B. Withanecho canceling duration of T seconds, the NLMS solution will require an adaptive FIR filter of length N T with N T = Tf s (4.1) 17

18 Fredric Lindström Mattias Dahl Ingvar Claesson For every sample the echo canceler will require N T Digital Signal Processor (DSP) instructions for the filtering with the adaptive filter and 2N T DSP instructions for the update of the coefficients of the adaptive filter, see equations, (3.1), (3.2), and (3.3). This gives that the total number of DSP instructions for the AEC method, I AEC,is I AEC =(Tf s )f s +(2Tf s )f s =3Tf 2 s (4.2) Consider an AEC-AG based solution operating on the same communication bandwidth as the AEC solution, i.e. B Hz. Now we assume that for the AEC-AG solution we have a lower AEC band of size B/2 and an upper AG band of size B/2. This solution also uses the NLMS algorithm for echo cancellation in the lower AEC band. So the required sampling frequency for the lower band f s can be set to f s = f s /2. This implies that the echo canceling processing in the AEC-AG solution can be performed in half the sample rate as compared to the AEC solution, and we have that the number of DSP instructions per second for the lower band processing, I AEC AG,is equal to I AEC AG =3Tf s 2 = 3Tf2 s (4.3) 4 To get the full number of instructions for the AEC-AG solution we need to account for the extra DSP instructions per second, I HP, used to extract the high frequency band. I HP = N HP f s,wheren HP is the length of the filter used to obtain the high frequencies signal. Typical values for N HP, T,andf s in a real fullband implementation are N HP =50, T =250ms, and f s =16000Hz. These values implies I AEC = 192 MIPS(million instructions per second), I AEC AG =48MIPS,andI HP = 1.6 MIPS. These figures show that I HP is negligible. By observing that I HP << I AEC AG and comparing equations (4.2) and (4.3), we see that there is approximately a factor of four less instructions needed in the proposed implementation. If the bandwidth of the AEC is set even lower, i.e. f s <f s /2, then further reduction of the computational load can be obtained. From equation (4.2) it follows that the computational load is dependent on the square of the sampling frequency. This relation is depicted in figure 4.1. Note that computational load decreases towards zero as the bandwidth of the AEC decreases. However, there is of course a limit to what extent the bandwidth can be decreased. This limit is A DSP instruction is an instruction performed on a digital signal processor, which has the capability of multiplication with cumulative addition in one clock cycle, e.g. the AD-21xx [19]. Real implementations of acoustic echo cancelers would probably use variations of the NLMS, (e.g. blockwise-nlms), and thus lower the number of MIPS for I AEC and I AEC AG, the assumption of I HP being negligible still holds though.

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication 19 100 Percentage of computational load as commpared to full band AEC solution 90 80 70 60 50 40 30 20 10 0 0 10 20 30 40 50 60 70 80 90 100 Percentage of AEC BW as compared to communication BW Figure 4.1: Reduced computational load as a function of bandwidth of AEC. not known and therefore the convergence towards zero is kept in the figure. The result of comparing equation (4.2) and (4.3) can be also observed in figure 4.1. We se that f s = f s /2, i.e. AEC bandwidth is 50% of communication bandwidth, gives a reduction by a factor 4, i.e. a computational load of 25%.

Chapter 5 Bandwidth Extension, Real-time Implementations 5.1 The AEC-AG Method used for Bandwidth Extension One of the most interesting applications of the AEC-AG method is, as mentioned in the introduction, to use it to extend the bandwidth of an existing AEC based hands-free phone. Given the characteristics of the AEC-AG method and its relation to the AEC method, described in sections 3.4, 4.1, and 4.2, the following assumptions needs to be fulfilled in order for the AEC- AG method to be a desirable solution for an extension of the bandwidth of a hands-free phone operating on the bandwidth [f 1,f 2 ]toanextended bandwidth of [f 1,f 3 ], with f 2 <f 3. 1. In general we will find that an extension of the bandwidth of a speech signal from [f 1,f 2 ]to[f 1,f 3 ] will increase the perceived quality of the signal. 2. The damping of the high frequency band [f 2,f 3 ] in situations of double talk will effect the perceived speech quality in a negligible manner. 3. Computational power of DSP s is related to the price of the DSP and a lowering of the capacity requirement by a factor four is significant. Of the above three assumptions only the third can be immediately verified. Assumptions one and two cannot be proven/falsified by mathematical analysis nor can strict computer simulations give a satisfying answer to the 20

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication 21 x(.) @ 64kHz x(.) @ 16kHz x(.) @ 8kHz 4 2 BP 1 x(.) BW:300-3200Hz Figure 5.1: The downsampling and prefiltiring of the far end signal x( ). truth of these assumptions. Only a real implementation and psychoacoustic tests can give a really satisfying answer to assumptions one and two. In order to possibly verify the assumptions above two real-time implementations were tested. One, called solution S AEC, is an implementation of an AEC NLMS based hands-free phone with a communication bandwidth of [300Hz, 3200Hz]. The other, solution S AEC AG,isanAEC-AGNLMSbased implementation with a communication bandwidth of [300Hz, 7000Hz]. These limits were chosen in accordance with the telephone standards for PSTN and ISDN respectively, e.g. [20], [21]. The computational demand of solution S AEC and S AEC AG are, according to section 4.2, approximately equal. Note that in section 4.2 two systems of the same bandwidth were compared. Solution S AEC and S AEC AG have different bandwidths, but approximately the same computational demand. 5.2 Solution S AEC, A Real-time AEC Implementation In solution S AEC the phone was implemented as an AEC using the NLMS algorithm as described in section 3.3 and depicted in figure 3.2. The length of the adaptive FIR filter was 1600 taps. The sample frequency was 8000Hz, thus corresponding to an echo canceling length of 200ms. The communication bandwidth of the far-end signal, x( ), and the near-end signal, y( ), were [300Hz, 3200Hz]. The S AEC solution was implemented on an AD-2186 processor using an AD-73322 codec for D/A A/D conversions. The codec output/input frequency was set to a rate of 64kHz. To obtain the NLMS algorithm working rate of 8kHz the AD-2186 downsampled/upsampled its input/output with a factor 8. The downsampling/upsampling was done in two steps with an intermediate sampling rate of 16000Hz. To obtain the communication bandwidth [300Hz, 3200Hz] the 8000Hz signals were filtered with a band pass filter, BP 1. The downsampling and anti-alias filtering procedure for the far-end input signal x( ) is depicted in figure 5.1. The conversion of the near-end signal y( ) was done in an analogue manner.

22 Fredric Lindström Mattias Dahl Ingvar Claesson BP x H(.) BW:3800Hz-7000Hz 2 BP 2 x(.) @ 64kHz 4 x(.) @ 16kHz x (.) @ 8kHz 2 BP 1 x L(.) BW:300Hz-3200Hz Figure 5.2: The downsampling and prefiltering of the far-end signal x( ). 5.3 Solution S AEC AG, A Real-time AEC-AG Implementation Solution S AEC AG was implemented according to the AEC-AG method described in section 3.4 and depicted in figure 3.4. Solution S AEC AG has the exact same implementation for its low frequency band [300Hz, 3200Hz] as solution S AEC. The high frequency band worked at a sampling rate of 16kHz and the high frequency band bandwidth was set to [3600Hz, 7000Hz]. The AEC-AG solution was implemented on the same processor/codec constellation as solution S AEC and an interface feature was added so an instant switch between the two solutions was possible, i.e. by pressing a button. The working rates of 8kHz and 16kHz were obtained by downsampling/upsampling. The bandwidths were obtained by using two bandpass filters BP 1 and BP 2 with pass bands [300Hz, 3200Hz] and [3600Hz, 7000Hz], respectively. The filter BP 1 is the same as in section 5.2. The downsampling and pass band filtering procedure for the far-end signal x( ) is depicted in figure 5.2. The conversion of the near-end signal y( ) was done in an analogue manner. The high frequency near-end signal, y H ( ), was damped according to the scheme described in section 3.4. In this particular implementation the damping d(k) was chosen as d(k) =g(k), where k is the sample index and g(k) is an averaging function given by g(k) =(1 α 1 )g(k 1) + α 1 g(k) if g(k) g(k 1) (5.1) g(k) =(1 α 2 )g(k 1) + α 2 g(k) if g(k) < g(k 1) (5.2) where α 1 >α 2,andg(k) is a function of x H (k), givenby g(k) = LOOKUP( x H (k) ) (5.3)

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication 23 LOOKUP( x(k) ) x(k) Figure 5.3: The function LOOKUP( ), i.e. g(k) as a function of x(k).

24 Fredric Lindström Mattias Dahl Ingvar Claesson where the function LOOKUP( ) is as depicted in figure 5.3 The use of different constants in the exponential averaging in equations (5.1) and (5.2) implies that the value of d(k) will increase rapidly in response to a sudden increase of the average of x H (k), while a sudden decrease will lead to a slowly decreasing value of d(k). This is done in order to make the value of d(k) correspond to the nature of an acoustic echo in a room, i.e. the acoustic echo is almost instant and has a duration. The function LOOKUP( ) is implemented as a look-up-table function, thereof its quantized appearance, see figure 5.3. Note that even though g(k) consist of quantized values, d(k) is a more smooth function as a result of the averaging performed in equations (5.1) and (5.2).

Chapter 6 Experimental Setup, Evaluation, and Result 6.1 The Setup Three loudspeakers, each with a max power of 2 Watt, were used to produce the near-end output signal. An omnidirectional microphone was used to obtain the near-end input signal. The microphone and the speakers were placed on a table according to figure 6.1 in order to resemble a conventional omnidirectional conference phone. The distance between the centers of a speaker and the microphone was 60mm and the speakers made a 45 angle with the surface of the table, see figure 6.1. The setup was done in a small office with a reverberation time of approximately 500 ms in measures of RT60. The reverberation time of the room was measured through the speakers and the microphone by means of correlation. The far-end input signal was obtained by a hand-held microphone and delayed 200ms by a delay circuit. This delay was done in order to simulate for the delay in telephone wires and switching offices and to make acoustic echoes clearly audible at the far-end side. The far-end output signal was connected to a pair of headsets. To obtain a total acoustic isolation between the far-end and near-end side, the hand-held microphone and the headset were situated in a neighboring room, the far-end room, and connected to the hands-free system phone, see figure 6.2. RT60 defines the measure of reverberation time to be the time it takes for the sound level in a room to decrease with 60dB after an impulse. 25

26 Fredric Lindström Mattias Dahl Ingvar Claesson View from above Speaker in cross-section 45 o Figure 6.1: The constellation of speakers and microphone. Near-end room Far-end room Hands-free phone Delay Unit Figure 6.2: The near-end and far-end rooms.

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication 27 Near-end room Far-end room Hands-free phone Channel 2 Recording Line out Signal DAT2 Channel 1 Recording Loudspeaker signal Channel 2 Playing Near-end speech signal DAT1 Channel 1 Playing Far-end speech signal Figure 6.3: Recording signals. 6.2 The Evaluation Loudspeakers were used to simulate near-end and far-end talkers. One loudspeaker was placed in the far-end rooom and one in the near-end room. Both loudspeakers were connected to the same two-channel DAT player, DAT1, see figure 6.3. Channel 1 of DAT1 was connected to the loudspeaker in the farend room, and channel 2 to the loudspeaker in the near-end room. Another two-channel DAT recorder, DAT2, was connected to the earphones output and the wire feeding the three hands-free phone loudspeakers. Channel 1 of DAT2 was connected to the hands-free phone loudspeaker wire and channel 2 was connected to the line out signal, i.e the phone microphone signal after processing. The phone was set to solution S AEC mode, and then a tape was played on DAT1 and at the same time DAT2 was set to record. The tape contained a session of: silence - speech on channel one - speech on channel two - speech on both channels, see figure 6.4. The parts of the played session correspond to the states: idle, near-end talk, far-end talk, and double talk, respectively. The procedure was repeated with the phone set in solution S AEC AG mode. Subjective real-time evaluation of the both methods was also performed. The subjective evaluation was performed in the following manner. A person was placed at the near-end side and another at the far-end side. They performed a natural conversation, containing sessions of double talk. Throughout the test repeated switches between solution S AEC and solution S AEC AG mode were performed.

28 Fredric Lindström Mattias Dahl Ingvar Claesson 6.3 The Result In an ideal situation the recorded phone loudspeaker signal and phone line out signal should be identical to the far-end speech signal and near-end speech signal, respectively. Figure 6.5 show a spectrogram of the input signal in figure 6.4. So, the spectrogram in figure 6.5 represents that of the phone loudspeaker and phone line out signals in an ideal solution. Figures 6.6 and 6.7 shows spectrograms for the output signal to the phone loudspeaker and the output signal to the phone line out of the AEC and the AEC-AG solutions, respectively. A comparison of the spectral content of near-end and far-end signals of solution S AEC and solution S AEC AG,inrelationtotheideal solution, show that the AEC-AG solution gives more natural sounding signals than the AEC solution, in that it also contains high frequency components. By observing the idle part of the spectrograms in figures 6.6 and 6.7 we get a picture of the background noise present in the two solutions. For the idle part in figures 6.6 and 6.7 the upper channel signal, i.e. the phone loudspeaker signal, contains noise in the region of 0 to 1000Hz, this noise originates from different noise sources in the far-end room, e.g. fan noise. The noise characteristic for the lower channel signals, i.e. the phone microphone signal, is more white and spread over the entire spectra. This noise originates from internal circuit noise in the phone that is transmitted by the phone loudspeaker and then received by the phone microphone. For the AEC-AG solution there is a difference in magnitude between the noise in the high and low frequencies. This is due to a noise reduction feature that has been implemented in combination with the echo cancellation performed on the low frequencies. So, the difference in background noise level between the high and low frequencies is not a result of the specific AEC-AG solution, but a result of that noise reduction is only implemented for the lower frequency band. Around frequency 3400Hz in the lower channel in figure 6.7 a lower intensity in the background noise can be seen. This is a result of the gap between the frequency split filters depicted in figure 3.3. In the far-end talk part of the spectrograms, we can see that there is a small residual echo in both the AEC and the AEC-AG solutions, but these echoes have such low energy that they are not disturbing, i.e. an echo suppression of about 40dB. In the lower channel signal of the AEC-AG solution the function of the damper described in section 5.3 can be observed, specially this can be seen from the characteristics of the background noise. When a speech signal occurs in the upper channel the background noise in the high frequency part of the lower channel is damped away, see figure 6.7, e.g. compare the high frequency background noise in the idle and the far-end talk sections.

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication 29 Idle Far-end talk Near-end talk Double talk A m p l t u d e Time Figure 6.4: Input signal. Upper channel is the far-end speech signal. Lower channel is the near-end speech signal. During situations of double talk the AEC-AG solution will approaches that of the AEC solution for the near-end signal, i.e. during double talk the high frequencies of the near-end signal will be damped. This can be seen by comparing the near-end and the double talk parts for the lower channel of the AEC-AG solution spectrogram, see fig 6.7. The performed subjective evaluation clearly showed the advantages of the AEC-AG method. The 7kHz sound was perceived as of higher quality and the damping of the high frequency band was hardly noticeable. Note however that these tests were performed under rather modest near-end noise conditions and a full evaluation should also account for the performance of the systems in environments with high background noise.

30 Fredric Lindström Mattias Dahl Ingvar Claesson Idle Far-end talk Near-end talk Double talk F r e q u e n c y Time Figure 6.5: Spectrogram for the input signal. Upper channel is the far-end speech signal. Lower channel is the near-end speech signal.

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-free Communication 31 Idle Far-end talk Near-end talk Double talk F r e q u e n c y Time Figure 6.6: Spectrogram for the recorded signals when the AEC solution is used. Upper channel is the phone loudspeaker signal. Lower channel is the phone line out signal.

32 Fredric Lindström Mattias Dahl Ingvar Claesson Idle Far-end talk Near-end talk Double talk F r e q u e n c y Time Figure 6.7: Spectrogram for the recorded signals when the AEC-AG solution is used. Upper channel is the phone loudspeaker signal. Lower channel is the phone line out signal.

Chapter 7 Conclusions and Further Work 7.1 Conclusions In this report, a method that provides a solution to the acoustic echo problem in hands-free communication was proposed. With this method it is possible to construct hands-free phones with full-duplex feeling in a computational saving manner. Two real-time implementations of a hands-free phone were done with approximately the same demand of computational power, one based on a conventional AEC method and the other on the proposed method. These real-time implementations were done in order to evaluate the use of the proposed method to extend the bandwidth of an existing AEC conference phone. Frequency analysis of measured test signals as well as subjective evaluations showed that the new method can be used for bandwidth extension of an existing AEC phone at hardly no extra computational cost. 7.2 Further Work In this report, the use of a method to extend the bandwidth of an existing hands-free phone was examined. The method can also be used for lowering the computational demand of an existing hands-free phone. Such a lowering of computational demand would be of great interest to the large community of telephone and network manufactures. However, there will be a limit for this lowering of the computational demand. A work of importance, in order to determine the full possibilities of the new AEC-AG method, would be to explore this limit. The robustness of an adaptive echo canceler might very well be effected by the operating bandwidth of the canceler. This in turn can lead to that the AEC-AG solution is more robust than the AEC solution. This is also an 33

34 Fredric Lindström Mattias Dahl Ingvar Claesson issue for further studies.

Bibliography [1] B. Widrow, S. D. Stearns, Adaptive signal processing, Prentice-Hall, 1985. [2] T. Kailath (Ed), IEEE Transactions on Automatic Control, Special Issue on System Identification and Time Series Analysis, vol AC-19, no. 6, Dec 1974. [3] M. M. Sondhi, An adaptive echo canceler, Bell Syst. Tech. J., vol. 46, pp. 497-510, Mar 1967. [4] M. Dahl, I. Claesson Acoustic noise and echo canceling with microphone array, IEEE Trans. on Vehicular Technology, vol. 48 no. 5, pp. 1581-1526, Sep 1999. [5] G. C. Goodwin, K. S. Sin, Adaptive filtering, Prediction, and Control, Englewood Cliffs, NJ: Prentice-Hall, 1984. [6] S. Haykin, Adaptive Filter Theory, 3rd ed., Prentice-Hall, 1996. [7] S. L. Gay, S. Tavathia, The fast affine projection algorithm, Proc. IEEE ICASSP 95, vol. 5, Detroit, pp. 3023-3026, May 1995. [8] A. Mader, H. Puder, G. U. Schmidt, Step-size control for acoustic cancellation filters - an overview, Signal Processing vol. 80, pp. 1697-1719, 2000. [9] H. Ye, B. X. Wu, A new double talk detection based on the orthognality theorem, IEEE Trans. Commun., vol. 39, pp. 1542-1545, Nov 1991. [10] J. Benesty, D. R. Morgan, J. H. Cho, A new class of doubletalk detectors based on cross-correlation, IEEE Trans. on Speech an Audio Process., vol. 8, pp. 168-172, Mar 2000. 35

36 Fredric Lindström Mattias Dahl Ingvar Claesson [11] T. Gansler, M Hansson, C.-J. Ivarsson, G. Salomonsson, A doubletalk detector based on coherence, IEEE Trans. Commun., vol. 44, pp. 1421-1427, Nov 1996. [12] D.L. Duttweiler, A twelwe-channel digital echo canceler, IEEE Trans. Commun., vol COM-26, pp. 647-653, May 1978. [13] H. K. Jung, N. S. Kim, A new double-talk detector using echo path estimation, ICASSP 02, vol. 2, pp. 1897-1900, 2002. [14] Ericsson: Integrated circuits data book, IC2, 1989/90. [15] Siemens: Semiconductors for wired telecom systems, IC03b, 1998. [16] Motorola: Semiconductors, DLE136R1/D, 1988. [17] E. Hänsler, G. U. Schmidt, Hands-free telephones - joint control of echo cancellation and postfiltering, Signal processing, vol. 80, pp. 2295-2305, 2000. [18] S. Furui Digital speech processing, synthesis and recognition Marcel Dekker, Inc 1989. [19] Analog Devices: ADSP-2100 Family User s Manual, 3ed., 1995. [20] TBR21, European Telecommunications Standards Institute, 1998. [21] G.722, ITU-T Recommendation ITU-T G.722.1, 1999.

A Computational Efficient Method for Assuring Full Duplex Feeling in Hands-Free Communication Fredric Lindström, Mattias Dahl, Ingvar Claesson ISSN 1103-1581 ISRN BTH-RES--09/03--SE Copyright 2003 by the individual authors All rights reserved Printed by Kaserntryckeriet, Karlskrona 2003