Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
SYSTEM AND METHOD FOR ENHANCED STEREO AUDIO
Document Type and Number:
WIPO Patent Application WO/2005/062595
Kind Code:
A1
Abstract:
The present invention relates to an audio communication system and method with improved acoustic characteristics. A stereo detector is introduced in the echo cancellator of the system. When stereo in far-end audio is detected, converging of the adaptive model of the cancellator is suspended. According to alternative embodiments of the invention, the system is extended with a second echo cancellator removing the stereo image of the echo signal, in addition to a miscellaneous processing unit configured to attenuate the signal at certain events implying a large stereo echo contribution. A stereo collapsing unit is also introduced on the channels of the far-end audio to remove the stereo image at certain events to further suppress the echo contribution.

Inventors:
MARTON TRYGVE FREDERIK (NO)
AARNES INGVAR FLATEN (NO)
WINSVOLD BJOERN (NO)
OEVERBY GEIR OLE (NO)
Application Number:
PCT/NO2004/000398
Publication Date:
July 07, 2005
Filing Date:
December 22, 2004
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
TANDBERG TELECOM AS (NO)
MARTON TRYGVE FREDERIK (NO)
AARNES INGVAR FLATEN (NO)
WINSVOLD BJOERN (NO)
OEVERBY GEIR OLE (NO)
International Classes:
H04M9/08; (IPC1-7): H04M9/08
Foreign References:
EP1052838A12000-11-15
Other References:
BENESTY J. ET AL: "A hybrid mono/stereo acoustic echo canceler", IEEE TRANSACTIONS ON SPEECH AND AUDIO PROCESSING, vol. 6, no. 5, September 1998 (1998-09-01), pages 468 - 475, XP000775780
GAUGER M.: "An improved method for stereo acoustic echo canceling", 2003 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH, AND SIGNAL PROCESSING, vol. 5, 6 April 2003 (2003-04-06) - 10 April 2003 (2003-04-10), pages V-596 - 599, XP010639342
GAENSLER T. ET AL: "New insights into the stereoophonic acoustic echo cancellation problem and an adaptive nonlinearity solution", IEEE TRANSACTIONS ON SPEECH AND AUDIO PROCESSING, vol. 10, no. 5, July 2002 (2002-07-01), pages 257 - 267, XP002987315
BENESTY J.: "A better understanding and an improved solution to the specific problems of stereophonic acoustic echo cancellation", vol. 6, no. 2, March 1998 (1998-03-01), pages 156 - 165, XP002956671
Attorney, Agent or Firm:
Oslo, Patentkontor AS. (Oslo, NO)
Download PDF:
Claims:
P a t e n t c 1 a i m s
1. An audio echo canceller adjusted to provide an echo attenuated output signal from an echo added input signal including nearend audio in addition to farend audio adding an echo contribution, comprising a module generating a first module output signal (5134), at least configured to implement a first adaptive model (5121) of acoustic echo, converging to minimize a mono part of the echo contribution in the first module output signal (5134) when providing a mono echo estimate (5133) and subtracting the mono echo estimate (5133) from the echo added input signal creating the first module output signal (5134), characterized in one or more multi component audio detectors configured to detect whether multi component audio is present in the far end audio, and wherein the first adaptive model (5121) is configured to suspend converging when said one or more multi component audio detector detects substantially multi component audio in the farend audio, and a second adaptive model (5129) is configured to suspend converging when said one or more multi component audio detector not detects substantially multi component audio in the far end audio, or a miscellaneous processing unit (5122) monitoring the farend and nearend audio configured to attenuate the first or the second module output signal (5134,5136) at predefined farend/near end audio presence events is activated when said one or more multi component audio detector not detects substantially multi component audio in the farend audio.
2. Audio echo canceller according to claim 1, c h a r a c t e r i z e d i n that the one or more multi component detector (s) is/are one or more stereo detector (s) having as input one left (L) and one right (R) audio channel transmitting the farend audio, wherein the stereo detector (s) is/are configured to detect stereo in the farend audio.
3. Audio echo canceller according to claim 2, c h a r a c t e r i z e d i n that the stereo detector (s) is/are configured to detect stereo when a power ratio between RL and R+L is greater than zero.
4. Audio echo canceller according to claim 2, c h a r a c t e r i z e d i n that the stereo detector (s) is/are configured to detect stereo when a cross correlation between RL and R+L normalized with the power of R+L is greater than zero.
5. Audio echo canceller according to claim 2, c h a r a c t e r i z e d i n that the stereo detector (s) is/are configured to detect stereo when a cross correlation between R and L normalized with the power of R+L is less than 0.25.
6. Audio echo canceller according to claim 2, c h a r a c t e r i z e d i n that the stereo detector (s) is/are configured to detect stereo when a cross correlation between R and L normalized with the power of R plus the power of L is less than 0. 5.
7. Audio echo canceller according to one of the claims 2 6, c h a r a c t e r i z e d i n that saidsecond adaptive model (5129) is configured to converge to minimize a stereo part of the echo contribution in the module output signal when providing a stereo echo estimate (5138), and to subtract the stereo echo estimate (5138) from the first module output signal (5134) creating a second module output signal (5136).
8. Audio echo canceller according to one of the claims 2 7, c h a r a c t e r i z e d i n that the first adaptive model (5121) derives the mono echo estimate (5133) based on a sum of R and L, and the second adaptive model (5129) derives the stereo echo estimate (5138) from a difference between R and L.
9. Audio echo canceller according to one of the claims 2 8, c h a r a c t e r i z e d i n that said miscellaneous processing unit (5122) further is configured to substantially attenuate the first (5134) or the second (5136) module output signal when only farend audio is present, pass the first (5134) or the second (5136) module output signal unchanged when only nearend audio is present.
10. Audio echo canceller according to claim 9, c h a r a c t e r i z e d i n that if both farend audio and nearend audio is present, the miscellaneous processing unit (5122) is configured to pass the first (5134) or the second (5136) module output signal unchanged or marginally attenuated when no stereo is detected in the farend audio by the one or more stereo detector (s), pass or attenuate the first (5134) or the second (5136) module output signal substantially or marginally according to a predefined choice, and/or dependent on whether stereo echo cancelling is present, when stereo is detected in the farend audio by the one or more stereo detector (s).
11. Audio echo canceller according to one of the claims 2 10, characterized in a first analyze filter (5151) configured to frequency divide at least a part of the echo added input signal to a number of echo added input subsignals each processed by respective submodule versions of said model, a second analyze filter (5125) configured to frequency divide at least a part of the sum of L and R to a number of subsums of L and R processed by respective submodule versions of said model, and/or respective miscellaneous processing subunit versions of said miscellaneous processing unit, a synthesis filter (5127) configured to merge outputs of the respective submodule versions or the respective miscellaneous processing subunit versions.
12. Audio echo canceller according to claim 11, characterized in a third analyze filter (5126) configured to frequency divide at least a part of the difference of L and R to a number of sub differences of L and R processed by the respective submodule versions of said model, the respective stereo subdetector versions of said one or more stereo detector (s) and/or the respective miscellaneous processing subunit versions of said miscellaneous processing unit, and that respective stereo subdetector versions of said one or more stereo detector (s) process said number of sub sums of L and R.
13. Audio echo canceller according to one of the claims 2 12, characterized in a stereo collapsing unit (5161) configured to eliminate stereo from the farend audio when both far end audio and nearend audio is present.
14. A method for providing an echo attenuated output signal from an echo added input signal including nearend audio in addition to farend audio adding an echo contribution in an audio echo cancelling system comprising a module generating a first module output signal (5134), at least configured to implement a first adaptive model (5121) of acoustic echo, converging to minimize a mono part of the echo contribution in the module output signal when providing a mono echo estimate (5133) and subtracting the mono echo estimate (5133) from the echo added input signal creating the first module output signal (5134), c h a r a c t e r i z e d i n the steps of: monitoring whether multi component audio is present in the farend audio, suspending to converge the first adaptive model (5121) when detecting substantial multi component audio in the farend audio, and when not detecting substantially multi component audio in the farend audio, suspending to converge a second adaptive model (5129), or activating a miscellaneous processing unit (5122) monitoring the farend and nearend audio configured to attenuate said second module output signal (5136) at predefined farend/nearend audio presence events.
15. A Method according to claim 14, c h a r a c t e r i z e d i n that the far end audio is transmitted by one left (L) and one right (R) audio channel, and said multi component audio is stereo.
16. A method according to claim 15, c h a r a c t e r i z e d i n that said second adaptive model (5129), is converged to minimize a stereo part of the echo contribution in the module output signal when providing a stereo echo estimate (5138), and subtracting the stereo echo estimate (5138) from the module output signal creating a second module output signal (5136).
17. A method according to claim 15 or 16, c h a r a c t e r i z e d i n the following additional steps: deriving the mono echo estimate (5133) based on a sum of R and L, and deriving the stereo echo estimate (5138) from a difference between R and L.
18. A method according to one of the claims 1517, c h a r a c t e r i z e d i n said miscellaneous processing unit (5122) further is configured to: substantially attenuating the first (5134) or the second (5136) module output signal when only farend audio is present, passing the first (5134) or the second (5136) module output signal unchanged when only nearend audio is present, or if both farend audio and nearend audio is present, passing the first (5134) or the second (5136) module output signal unchanged when no stereo is detected in the farend audio by the one or more stereo detector (s), passing or attenuating the first (5134) or the second (5136) module output signal substantially or marginally according to a predefined choice when stereo is detected in the farend audio by the one or more stereo detector (s).
19. A method according to one of the claims 1518, c h a r a c t e r i z e d i n the following additional step: eliminating stereo from the farend audio when both farend audio and nearend audio is present.
Description:
SYSTEM AND METHOD FOR ENHANCED STEREO AUDIO Field of the invention The present invention relates to an audio communication system and method with improved acoustic characteristics, and particularly to a conferencing system including an improved audio echo cancellation system.

Background of the invention In a conventional conferencing system set-up that uses loudspeakers, two or more communication units are placed at separate sites. A signal transmitted from one site to another site using a conference system experiences several delays, these delays will include a transmission delay and a processing delay. For a video conferencing system, the processing delay for video signals is considerably larger than the processing delay for the audio signals. Because the video and audio signals have to be presented simultaneously, in phase, a lip sync delay is purposefully introduced to the audio signal, in both the transmitting and receiving signal paths in order to compensate for the longer video signal delay.

In a conventional conferencing system, one or more microphones captures a sound wave at a site A, and transforms the sound wave into a first audio signal. The first audio signal is transmitted to a site B, where a television set or an amplifier and loudspeaker, reproduces the original sound wave by converting the first audio signal generated at site A into the sound wave. The produced sound wave at site B, is captured partially by the audio capturing system at site B, converted to a second audio signal, and transmitted back to the system at site A.

This problem of having a sound wave captured at one site, transmitted to another site, and then transmitted back to

the initial site is referred to as acoustic echo. In its most severe manifestation, the acoustic echo might cause feedback sound, when the loop gain exceeds unity. The acoustic echo also causes the participants at both site A and site B to hear themselves, making a conversation over the conferencing system difficult, particularly if there are delays in the system set-up, as is common in video conferencing systems, especially due to the above mentioned lip sync delay. The acoustic echo problem is usually solved using an acoustic echo canceller, described below.

Figure 1 is an overall view of a video conferencing system.

This system is distributed at two sites, A and B. As for the conferencing system set-up, a video conferencing module can be distributed at more than two sites and the system set-up is functional when only one site has a loudspeaker.

The video module has at site A a video capturing system 1141 that captures a video image and a video subsystem 1150 that encodes the video image. In parallel, a sound wave is captured by an audio capturing system 1111 and an audio subsystem 1130 encodes the sound wave to the acoustic signal. Due to processing delays in the video encoding system, the control system 1160 introduces additional delays to the audio signal by use of a lip sync delay 1163 so to achieve synchronization between the video and audio signals. The video and audio signals are mixed together in a multiplexer 1161 and the resulting signal, the audio- video signal is sent over the transmission channel 1300 to site B. Additional lipsync delay 1262 is inserted at site B. Further, the audio signal presented by the audio presenting device 1221 is materialized as a sound wave at site B. Part of the sound wave presented at site B arrives to the audio capturing device 1211 either as a direct sound wave or as a reflected sound wave. Capturing the sound at

site B and transmitting this sound back to site A together with the associated delays forms the echo. All delays described sums up to be considerable and therefore the quality requirements for an echo canceller in the video conferencing system are particularly high.

Fig. 2 shows an example of an acoustic echo canceller subsystem, which may be a part of the audio system in the video conferencing system of figure 1. At least one of the participant sites has the acoustic echo canceller subsystem in order to reduce the echo in the communication system.

The acoustic echo canceller subsystem 2100 is a full band model of a digital acoustic echo canceller. A full band model processes a complete audio band (e. g. , up to 20 kHz; for video conferencing the band is typically up to 7 kHz, in audio conferencing the band is up to 3.4 kHz) of the audio signals directly.

As already mentioned, compensation of acoustic echo is normally achieved by an acoustic echo canceller. The acoustic echo canceller is a stand-alone device or an integrated part in the case of the communication system.

The acoustic echo canceller transforms the acoustic signal transmitted from site A to site B, for example, using a linear/non-linear mathematical model and then subtracts the mathematically modulated acoustic signal from the acoustic signal transmitted from site B to site A. In more detail, referring for example to the acoustic echo canceller subsystem 2100 at site B, the acoustic echo canceller passes the first acoustic signal 2131 from site A through the mathematical modeller of the acoustic system 2121, calculates an estimate 2133 of the echo signal, subtracts the estimated echo signal from the second audio signal 2132 captured at site B, and transmits back the second audio

signal 2135, less the estimated echo to site A. The echo canceller subsystem of figure 2 also includes an estimation error, i. e. , a difference between the estimated echo and the actual echo, to update or adapt the mathematical model to a background noise and changes of the environment, at a position where the sound is captured by the audio capturing device.

The model of the acoustic system 2121 used in most echo cancellers is a FIR (Finite Impulse Response) filter, approximating the transfer function of the direct sound and most of the reflections in the room. A full-band model of the acoustic system 2121 is relatively complex and processing power requiring, and alternatives to full-band models are normally preferred.

One way of reducing the processing power requirements of an echo canceller is to introduce sub-band processing, i. e. the signal is divided into bands with smaller bandwidth, which can be represented using a lower sampling frequency.

An example of such system is illustrated in fig. 3. The loudspeaker and microphone signals are divided by the analyze filter into sub bands, each representing a smaller range of frequencies of the original loudspeaker and microphones respectively. Similar echo cancelling and other processing are performed on each sub band, before all bands of the modified microphone are merged together to form the full band signal, by the synthesize filter.

In some cases, it may be convenient to combine sub band and full band processing. Some sub algorithms can be performed both in full band and in sub bands, or a combination.

The core component in an echo cancellator is the already mentioned acoustic model (most commonly implemented by a FIR filter). The acoustic model attempts to imitate the

transfer function of the far end signal from the loudspeaker to the microphone. This adaptive model is updated by gradient search algorithm. The algorithm tries to minimize an error function, which is the power of the signal after the echo estimate is subtracted. For a mono echo canceller, this solution works, it is a uniform and unique solution.

However, in high quality communications, it is often desirable to transmit and present high quality multi channel audio, e. g. stereo audio. Stereo audio includes audio signals from two separate channels representing different spatial audio from a certain sound composition.

Loading the channels on each respective loudspeaker creates a more faithful audio reproduction, as the listeners will perceive a spatial difference between the audio sources from which the sound composition is created.

The signal that is played on one loudspeaker differs from the signal presented on the other loudspeaker (s). Thus, for a stereo (or multi channel) echo canceller, the transfer function from each respective speaker to the microphone needs to be compensated for. This is a somewhat different situation compared to mono audio echo cancellation, as there are two different but correlated signals to compensate for.

In addition, the correlation in the different channels tends to be significant. This causes the normal gradient search algorithms to suffer. Mathematically expressed, the correlation introduces several false minimum solutions to the error function. This is i. a. described in Steven L. Gat and Jacob Benesty"Acoustic signal processing for telecommunication", Boston: Kluwer Academic Publishers, 2000. The fundamental problem is that when multiple channels carry linearly related signals, the solution of the normal function corresponding to the error function solved by the adaptive algorithm is singular. This implies

that there is no unique solution to the equation, but an infinite number of solutions, and it can be shown that all but the true one depend on the impulse responses of the transmission room (in this context, the transmission room may also include a synthesized transmission room as e. g. recorded or programmed material played back at the far-end side). The gradient search algorithm may then be trapped in a minimum that not necessarily is the true minimum solution.

Another common way of expressing this stereo echo canceller adaptation problem is that it is difficult to distinguish between a room response change and an audio"movement"in the stereo image. For example, the acoustic model has to reconverge if one talker starts speaking at a different location at the far end side. There is no adaptive algorithm that can track such a change sufficiently fast, and a mono echo canceller in the multi-channel case does not result in satisfactory performance.

A typical approach for overcoming the above-mentioned false minimum solutions problem mentioned above is shown in figure 4. Compared to the mono case, the analyze filter is duplicated, dividing both the right and left loudspeaker signal into sub bands. The acoustic model is divided into two models (per sub band), one for the right channel transfer function and one for the left channel transfer function.

To overcome the false minimum solutions introduced by the correlation between the left and right channel signals, a decorrelation algorithm is introduced. This decorrelation makes it possible to correctly update the acoustic models.

However, the decorrelation technique also modifies the signals that are presented on the loudspeakers. While quality preserving modification techniques could be acceptable, the decorrelation techniques according to prior art severely distort the audio.

Therefore, these techniques may solve the stereo echo problem, but it does not preserve the necessary quality of the audio.

Summary of the invention It is an object of the present invention to provide a system minimizing audio echo when stereo is present.

In particular, the present invention discloses an audio echo canceller adjusted to provide an echo attenuated output signal from an echo added input signal including near-end audio in addition to far-end audio adding an echo contribution, comprising a module generating a first module output signal (5134), at least configured to implement a first adaptive model (5121) of acoustic echo, converging to minimize a mono part of the echo contribution in the first module output signal (5134) when providing a mono echo estimate (5133) and subtracting the mono echo estimate (5133) from the echo added input signal creating the first module output signal (5134), wherein the audio echo canceller further includes one or more multi component audio detectors configured to detect whether multi component audio is present in the far-end audio, and wherein the first adaptive model (5121) is configured to suspend converging when said one or more multi component audio detector detects substantially multi component audio in the far-end audio, and a second adaptive model (5129) is configured to suspend converging when said one or more multi component audio detector not detects substantially multi component audio in the far-end audio, or a miscellaneous processing unit (5122) monitoring the far-end and near-end audio configured to attenuate the first or the second module output signal (5134,5136) at predefined far- end/near-end audio presence events is activated when said one or more multi component audio detector not detects substantially multi component audio in the far-end audio.

Brief description of the drawings In order to make the invention more readily understandable, the discussion that follows will refer to the accompanying drawings, Figure 1 is a detailed block diagram of a conventional conferencing system set-up, Figure 2 is a closer view of an acoustic echo canceller subsystem, Figure 3 is a block diagram of the corresponding echo canceller subsystem implemented with sub-band processing, Figure 4 is a block diagram of a stereo echo cancellator system according to prior art, Figure 5 is a block diagram of one embodiment of the present invention, Figure 6 is a closer view of a frequency independent controlled stereo collapsing unit, Figure 7 is a closer view of a general frequency dependent version of the controlled collapsing unit.

Best mode of carrying out the invention In the following, the present invention will be discussed by describing a preferred embodiment, and by referring to the accompanying drawings. However, even if the specific embodiment is described in connection with video conferencing and stereo sound, people skilled in the art will realize other applications and modifications within the scope of the invention as defined in the enclosed independent claim. In particular, the principles of the invention could also be utilized in connection with other

types of conferencing, and it is useful for multiple audio channels. In addition, note that even if the techniques discussed in the following mainly are focused on the sub band case, it can also be used for full band. In a full band canceller, the analyzing and synthesizing filters are omitted. The processing inside the dashed line of the figures is performed on the complete full band audio signals.

The present invention is based on the fact that different channels of a stereo audio signal are highly correlated and that stereo sound seldom is present at all time. Normally, only a small part of the signals of the respective channels differs from each other, and in a typical conference situation, long periods of time may pass in which only mono audio is present. The invention also utilizes the fact that it is not necessarily required to provide a full echo cancellation at all times during a conventional conference.

E. g. in the time intervals of loudspeaker silence, there will be no echo at all. Further, in connection with sound presentation from CDs/DVDs etc. , stereo signals are present, but this is more a one-way communication, reducing the need for full duplex echo cancelling. In addition, a device playing program material (unlike a person) is not confused by occasional residual echo. Also, in the case of program material, much of the time will have mono audio only.

Thus, as the signal in the majority of time is mono, the present invention discloses a hybrid mono/stereo echo canceller structure. An embodiment of the invention is depicted in figure 5. Note that many subparts of this figure may be optional ; the controlled stereo collapsing unit, the loudspeaker R-L analyze filter and the full band or sub band stereo detector (but not both). Other subparts may be handled somewhat differently, for example by moving the subpart from full band domain to sub band domain or vice versa. These simplifications and changes are further

explained in the following description of the various components included in the embodiment of the present invention illustrated in figure 5.

According to the invention, the loudspeaker stereo full band signals R and L are converted into a full band R+L and a full band R-L representation, by an adding unit and a subtracting unit, respectively. The full band R+L signal then represents the mono part of the audio signal, while the full band R-L signal represents the stereo image. Thus, for situations where only mono signals are to be presented, R-L equals zero.

Both signals are divided into sub band signals; the R+L full band signal is divided into R+L sub band signals using loudspeaker R+L analyze filter 5125, while the R-L full band signal is divided into R-L sub band signals using loudspeaker R-L analyze filter 5126.

An alternative way of calculating the sub band R+L signal and the R-L sub band signal, is to analyze the R and L signals individually, and thereafter perform the addition or subtraction on the sub band signals.

The microphone full band (from ADC/microphone) signal is divided into a microphone sub band signal by means of the microphone analyze filter 5151.

The echo cancellator according to the present invention is further provided with at least one stereo detector. As illustrated in figure 5, the R+L and R-L signals are fed into such stereo detectors. Detecting of stereo can be performed in either (or both) full band, using the R+L and R-L full band signals and the full band stereo detector, or in sub band, using the R+L and R-L sub band signals and the sub band stereo detector. By using the sub band stereo detector, individual decisions can be made for different frequencies. Therefore, a sub band detector may perform

better, however at increased (but not major) computational complexity.

Several techniques can be used to detect stereo, i. e. calculate a stereo detector measure (SDM). One approach is to calculate the ratio of the power of the R-L signal divided by the power of R+L signal: SDM = PR-L I PR+I Stereo can be detected by assuming that SDM is equal to zero for a true mono signal, and greater than zero for a stereo signal.

The power at time i can be calculated over a set of N samples: Alternatively, the power at time i can be calculated using a feedback structure, updating on each new sample. a is a small positive constant, representing the update speed, and will depend on the sampling frequency: <BR> <BR> <BR> <BR> PR+L(i) = (1-α)PR+L(i-1)+α(Ri+Li)2<BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> PR-L(i) = (1-α)PR-L(i-1)+α(Ri-Li)2 An alternative approach for implementing stereo detectors is to calculate the cross correlation (at lag 0) between the R-L signal and the R+L signal, normalized with the power of the R+L signal:

SDM = RR+L,R-L/PR+L This SDM also equals 0 for a mono signal, and is increased above zero when stereo components are introduced.

Again, both denominator and numerator can be calculated over a set of samples, or using a feedback structure. The denominator can be calculated as in the first alternative, while the formulas for the numerator will be: The set of samples case: N-l RR+L, R-I (i) = #(Ri-n+Li-n)(Ri-n-Li-n) n=0 The feedback case: RR+L,R-L(i) = (1-α)RR+L,R-L(i-1)+α(Ri+Li)(Ri-Li) Yet another alternative for implementing the stereo detector is to calculate the ratio of the cross correlation between the R and L signal, and the power of the R+L signal: SDM = RR,L/RR+L This SDM is equal to 0.25 for the mono case, and it will decrease with an increasing element of stereo. RR, L can be calculated using a set of samples or a feedback structure using the same formulas as for the latter alternative.

The set of samples case:

The feedback case: RR,L(i) = (1-α)RR,L(i-1)+αRiLi These expressions are best suited in the case where R and L signals are presented directly, e. g. in the case where R and L are individually analyzed. In any case, R and L can always be recalculated from R+L and R-L.

One last approach is to calculate the stereo detector measure as the ratio of the cross correlation between the R and L signal, and the power of R plus the power of L: SDM = RR,L/(PR + RL) This SDM is equal to 0.5 in the case of mono, and it will decrease as the element of stereo increases. PR, L can be calculated using a set of samples or a feedback structure, using the same expression as for the first stereo detector implementation alternative.

The set of samples case: The feedback case:

PR(i) = (1-α)PR(i-1)+αRi2<BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> PL(i) = (1-α)PL(i-1)+αLi2 These expressions are also best suited in the case where R and L signals are presented directly, e. g. in the case where R and L are individually analyzed.

The stereo detector (s) described above is/are used to control i. a. the mono echo compensator 5121. The compensator comprises an acoustic model used in standard mono echo cancellers, normally implemented with one FIR filter per sub band. However, different from standard mono echo cancellers, the input is the loudspeaker R+L sub band signals. The model is updated using standard adaptation techniques well known from mono echo cancelling for example LMS, NLMS, APA, RLS etc, using the model update loop and gradient search for achieving the minimum of the error function. In this context, there is also a big exception relative to a conventional echo compensator. The adaptation of the acoustic model is frozen whenever the stereo detector detects anything else than a true mono signal, or very close to a true mono signal, assuming that the adaptation has been in progress in a sufficient period of time for being stabilized in an optimal state (for mono echo). Thus, at the time when stereo sound is introduced, the false minimum solutions in the gradient search will not be present, and the filter will not be"trapped"in one of these.

So far, the stereo detector (s) prevents the mono echo compensator to be trapped in a false minimum solution introduced in the error function when stereo is present, and the mono part of the echo signal can still be cancelled. However, the stereo image of the echo signal is still present. This could be removed/attenuated in different ways. One alternative, as illustrated in figure 5

is to supplement the mono echo compensator with a stereo echo compensator 5129.

The input of the stereo echo compensator 5129 is the loudspeaker R-L sub band signals, moreover the compensator comprises the same model as for the mono echo compensator 5121. The model is updated using the standard adaptation techniques. However, this adaptation is only enabled when a strong stereo signal is detected by the stereo detector (s).

As the mono parts of the signal already are removed with the R+L compensator, only minor mono signal will be present in the feedback signal, then enabling the R-L compensator to converge.

Based on the assumption that signals are mono most of the time, and that the echo canceller performance in stereo situations are not critical, the stereo image compensator may be omitted. This reduces heavily the computational complexity of the overall system, as the R-L model does not need to be calculated or updated. If the system is based on a full band stereo detector only, the loudspeaker R-L analyze filter and the sub band stereo detectors can also be omitted, saving further computational complexity.

As a substitute or supplement to the stereo image echo compensator, some adjustments are made to the misc. sub- band processing unit 5122 compared to the conventional mono echo canceller. This block removes the residual echo from the microphone signal by introducing attenuation, and it is often referred to as Non Linear Processing (NLP). The direction of the speech is decided (near-end speech, far- end speech or both), from the loudspeaker signals and the microphone signal.

There are three main situations that this non linear processor preferably should handle:

1. Single talk, microphone (near end) signal active, no loudspeaker (far end) signal, or no signals at all: The NLP passes the signal unchanged.

2. Single talk, loudspeaker signal active, no near end talk: The NLP attenuates the signal heavily, to remove residual echo.

3. Double talk, loudspeaker active and near end talk active: The NLP passes the signal unchanged, or attenuates it marginally, as the residual echo is masked by the microphone/near end signal.

The nonlinear processor often work on sub-bands, therefore the NLP can select one of the above three action for one sub-band, and another for other sub-bands.

In mono echo cancellers, the NLP removes the residual echo.

However, in stereo situations, if the stereo image compensator (5129) is omitted or is not sufficient, the NLP also has to remove the stereo echo. This does not alter the behaviour in the first and second situation, but the third situation should preferably be treated differently, introducing two. sub-situations: 3a. Double talk, both microphones and loudspeaker active, no stereo signal detected: The NLP passes the signal unchanged, or attenuates it marginally, as the residual echo is masked by the microphone/near end signal, and since there are no stereo echo signal.

3b. Double talk, both microphones and loudspeaker active, stereo signal detected: The residual echo (low level signal) is masked by the microphone (near end) signal.

The stereo echo signal (or the residual stereo echo signal if the stereo echo compensator is present and work properly) has to be removed or accepted (if only residual echo is present accepting is the preferred

choice), and upon this choice, which is a predefined choice, the signal is either passed unchanged, i. e. stereo echo is accepted, or attenuated, i. e. so-called voice switching is accepted. Based on the stereo level, a situation between full passing of the signal and full attenuation can be selected, accepting lower levels of stereo echo and moderate voice switching.

The situation described in 3b above, introduces one of two disadvantages-either presence of stereo echo or voice switching or a limited/moderate combination of both. Stereo echo is experienced as boosted echo, and voice switching as half duplex communication (tuning down counter part sound when speaking).

In an alternative embodiment of the present invention, a stereo collapsing unit 5161 is introduced to compensate for these disadvantages. The purpose of stereo collapsing unit 5161 is to bring the situation from stereo to mono, whenever double talk is detected, alternatively, when near end signal is detected.

Another function of the stereo collapsing unit 5161 could be to collapse the stereo image until the mono compensator reaches the first state of convergence, allowing it to adapt even when signals of high level of stereo are presented. Further, it will collapse the stereo image after a large change in room response has occurred until the mono compensator has reconverged.

Figure 6 shows in more detail the stereo collapsing unit.

In normal situation, during situation 1 and 2 above, the collapsing gain g is zero and does not alter the left or right signal. Whenever situation 3a or 3b is detected, the gain is increased gradually up to 0.5 eliminating or collapsing the stereo image. In situation 3a, as the signal is mono, this has no effect. However, in situation 3b, collapsing brings the system to situation 3a, where no

stereo echo is present, and only residual echo has to be handled by the nonlinear processor unit. When the collapsing is no longer needed, when situations 1 or 2 are detected, alternatively, when no near end speech is present, the collapsing gain is gradually decreased down to 0, to be ready for new situations with stereo signal. The stereo collapsing unit in full effect (g=0.5) simply adds the respective signals of the left and the right channels, and forwards the result to both channels.

Of course, this collapsing unit reduces the stereo image in double talk situations, but in these situations, multiple audio sources are presented, at least partly masking the loss of stereo.

Figure 7 shows generalized stereo collapsing unit. The collapsing gain g is replaced with the stereo collapsing filter H. This generalized units allows different collapsing in different frequency bands, if different states are detected in different sub bands.

Figure 7 also allows more static collapsing techniques, i. e. to always collapse frequency bands that are not critical to the subjective perception of the stereo image, while the critical bands are collapsed dynamically.