Apparatus and method for echo attenuation

Abstract: The invention provides an apparatus and method and a device for echo attenuation in a telephone. According to the invention, the echo attenuation in the telephone is adapted to the background noise such that the ambient background noise in telephone (10) is measured with a noise detector (1) and the noise level is determined in a background noise measurement unit (2). The background noise that has been determined is used to set the attenuation parameters in parameter determining unit (3). The signal level received from the other subscriber's telephone (11) is measured in input signal level measurement unit (4). The feed signal of the telephone is attenuated in attenuation control unit (6) on the basis of the attenuation values calculated, which have been determined from the attenuation parameters and the signal level received by the other subscriber in output signal attenuation determining unit (5).

Description: The present invention relates to apparatus and method for echo attenuation particularly in a telephone. DE Patent Application A1 38 39 627 discloses a telephone composing an echo attenuator connected to an outgoing line, another attenuator connected to the outgoing and an incoming line, and control means for controlling the other attenuator. The control means is used to control the other attenuator such that the sum of the attenuation values of the other attenuator and the attenuation value of the echo attenuator (and/or the echo path) is constant. In this case, the telephone adjusts both the intensity of the received speech and the intensity of the speech to be transmitted. Such an apparatus and method inhibits acoustic feedback from the handset loudspeaker to the microphone, and thus a user does not hear their own voice as an echo in the earpiece of their own telephone. The attenuation arrangement described above has a drawback in that the speech attenuation in the telephone brings about unpleasant audible variations of the signal level in the loudspeaker of the receiving telephone. If, for instance, there is intense background noise around the telephone, such noise will be received by the other person's telephone in an attenuated form when this person is speaking. The attenuation also affects double talking so that the conversation may perhaps not be be fully duplex. This of course depends on the attenuation degree. In a first aspect of the present invention there is provided a method for attenuating echo in a telephone of subsriber A having a step of adapting in the telephone of subsriber A the attenuation of an output signal to a telephone of a subscriber B so that a return echo of a signal received from the telephone of subscriber B cannot be heard as easily by subscriber B . The method further comprises the steps of: detecting whether an input signal to the telephone of subscriber A contains speech and when this is not the case measuring the ambient noise at the telephone of subsriber A; after which setting attenuation parameters, especially maximal attenuation, depending on the ambient bacground noise level so that the attenuation level decreases when the noise level increases; measuring the level of the signal received from a telephone of subsriber B; after which calculating the attenuation of the output signal at the telephone of subsriber A corresponding to the attenuation parameters and the level of the signal received from the telephone of subsriber B; and attenuating the output signal so that background noise masks the return echo signal of subsriber B for adaptive echo attenuation. In a second aspect of the present invention there is provided an apparatus for attenuating echo in a telephone of subsriber A, which apparatus comprises a reveived signal measuring unit for measuring a level of the signal received from a telephone of subsriber B, a background noise measuring unit and an attenuation control for attenuating a signal output by the telephone of subscriber A to a telephone of subscriber B.. The apparatus further comprises: a noise detector for detecting ambient background noise at the telephone of subsriber A in which detector has a voice activity detector by means of which it is detected whether an input signal is speech or background noise and the acoustic field of the environment is measured by the background noise measuring unit in case the noise detector detects only background noise; an attenuation parameter value determining unit to which the measured noise value is fed from the background noise measuring unit and where values of the attenuation parameters, especially maximal attenuation, depending on the ambient background noise level are determined so that the attenuation level decreases when the noise level increases; an output signal attenuation determining unit whose inputs are connected with the attenuation parameter determining unit for feeding the attenuation parameter values and the received signal measuring unit for feeding received signal level values and which output signal attenuation determining unit is connected to the attenuation control unit for adjusting the output signal level on the basis of the attenuation parameter values and the input signal level so that background noise masks the return echo signal of the input signal for adaptive echo attenuation. An advantage of the present invention is that it provides a simple and reliable method and device for echo attenuation. The present invention utilises the insight and the surprising and unexpected fact that background noise masks the return echo signal of the speech of the second subscriber, i.e. the person at the other end, in such a way that it cannot be heard as easily as when relative silence, i.e. a low background noise, is prevailing. This is a characteristic of human hearing (called masking). The invention has a further advantage of taking account of the:fact that a telephone, especially a mobile telephone or similar, is used in various conditions and acoustic surroundings, and hence the attenuation intensity is adapted to conditions in order to achieve a good echo attenuation. The present invention involves the unexpected and surprising expedient of decreasing the attenuation level when the noise level increases. Embodiments of the invention are now described in detail with reference to the accompanying drawings, in which: figure 1 shows apparatus in accordance with the invention for attenuating echo in a telephone; and figure 2 shows a flowchart for the operation of the apparatus of figure 1. Figure 1 is a schematic view of a telephone 10 of a calling subscriber, (subscriber A), a telephone 11 of a person at the other end from the calling subscriber (subscriber B), and connecting line 12, which can be a wire or a radio path and pass through one or more switchboards. Regarding telephone 10 of subscriber A, the figure only shows the microphone 7 and loudspeaker 8 and elements relevant to apparatus for attenuating echo in a telephone. As for telephone 11 of subscriber 11, only the handset 9 is shown. The other parts can be parts of a telephone or telephone network known per se, and are not pertinent to the instant invention, thus they are not described further. Telephone 10 comprises echo attenuation circuitry including a noise detector 1, a background noise measurement unit 2, to which noise detector 1 is connected, a signal processing parameter determining unit 3, to which the noise measurement value is fed from the background noise measurement unit 2, and a unit 4 for measuring the level of the speech signal to be received. The echo attenuation circuitry further comprises a unit 5 for determining the attenuation of an output signal. Unit 5 has its inputs connected with parameter the determining unit 3 and the input signal level measuring unit 4. The circuitry also comprises an attenuation control unit 6 for adjusting the output signal level on the basis of instructions provided by the attenuation determining unit 5. Noise detector 1 detects whether the signal from the microphone 7 of telephone 10 of subsriber A is speech or background noise using well known techniques, an example of which is identified later. Noise detector 1 is preferably connected with the microphone 7 of the telephone. The acoustic field of the environment, i.e. the background noise, is measured by means of measurement unit 2, in case noise detector 1 detects only background noise in the microphone signal. The background noise measurement results are transferred to parameter determining unit 3. The noise level is determined as the average of a long period, preferably 1 to 2 seconds. The parameter determining unit 3 determines the attenuation parameters to be adopted. It comprises a storage unit, in which a number of parameters and background noise threshold values have been stored, and a comparator unit, in which the amount of background noise measured is compared to the threshold values for background noise. Depending upon the comparator result the parameters are set. Then the attenuation parameter which is optimal for the determined noise level and the threshold values set for the background noise is selected. The threshold levels can be predetermined emperically or experimentally by a person of ordinary skill in the art using well known test procedures and then stored in the parameter determining unit 3. The determination of the parameter set to be used on a given measured noise level may be carried out as follows. At the beginning of the call, a number of predetermined parameters "parameter set 0" is used for echo attenuation. After this, the noise level is measured, i.e. the average momentary noise over 1 to 2 seconds. The noise level is compared to the threshold values of a range of preset threshold values, "threshold value N", in which N = 1, 2, 3...i.e. a positive integral number. Each threshold value "threshold value N" correlates with a number of parameters "parameter set N". As the noise level passes "threshold value N", but not "threshold value (N + 1)", "parameter set N", corresponding to "threshold value N", is set as a parameter set. After the choice of the parameter set to be adopted, normal speech processing can be performed in a manner known to a person skilled in the art. The attenuation action of "parameter set N" is lower than that of "parameter set (N-1)", i.e. as the noise level increases the attenuation decreases. The parameter determining unit 3 described above can be accomplished in another way. In this case, the parameter determining unit 3 includes a calculation unit, by means of which the parameters can be calculated directly on the basis of the background noise, i.e. the noise level measured. The higher the noise level, the less the parameters attenuate. The attenuation parameters included in the parameter set imply maximal attenuation carried out with regard to speech, and e.g. attenuation as a function of frequency. Echo attenuation apparatus in accordance with the invention operates as follows and as shown in Fig. 2. As subscriber A 10 starts a call, checks are made to determine whether a speech signal or merely ambient noise is heard over microphone 7. The existence of this noise and/or speech can be checked by noise detector 1 by using known techniques (e.g. a GSM Voice Activity Detector VAD). If speech is detected at the outset, a predetermined basic attenuation is carried out (cf. "parameter set 0" above). When only noise is detected, virtual adaptive attenuation adjustment is performed by first measuring the prevailing noise level with the background noise measurement unit 2. After this, the attenutation parameters are determined with parameter measurement unit 3 by using either of the techniques described above.The attenuation required for the output signal of subscriber A is determined in the attenuation measurement unit 5 of the output signal by using the input signal level data provided by measurement unit 4. On the basis of the attenuation thus determined, the output signal level is adjusted by control unit 6. The ambient noise level is determined with continuous measurement each time the noise detector detects background noise, so that echo attenuation adapts to shifts in the background noise smoothly and swiftly. The attenuation parameters obtained will be maintained until new parameters have been set. In view of the foregoing description it will be evident to a person skilled in the art that various modifications may be made within the scope of the claimed invention.

Claims: A method for attenuating echo in a telephone of subscriber A having a step of adapting in the telephone of subscriber A the attenuation of an output signal to a telephone of a subscriber B so that a return echo of a signal received from the telephone of subscriber B cannot be heard as easily by subscriber B, characterized in that the method further comprises the steps of: detecting whether an input signal to the telephone of subscriber A contains speech and when this is not the case measuring the ambient noise at the telephone of subscriber A (10); after which setting attenuation parameters, especially maximal attenuation, depending on the ambient background noise level so that the attenuation level decreases when the noise level increases; measuring the level of the signal received from the telephone of subscriber B (11); after which calculating the attenuation of the output signal at the telephone of subscriber A corresponding to the attenuation parameters and the level of the signal received from the telephone of subscriber B; and attenuating the output signal so that background noise masks the return echo signal of subscriber B for adaptive echo attenuation. A method according to claim 1, characterized in that the background noise level is determined as an average of a long period, which lies in the range of 1 to 2 seconds. A method according to any preceding claim, characterized in that the attenuation parameters are derived from a plurality of attenuation parameter sets, from which a most suitable set is selected corresponding to the determined noise level and predetermined background noise threshold values that have been set. A method according to any of claims 1 to 3, characterized in that the attenuation parameters are calculated directly from the determined noise level. An apparatus for attenuating echo in a telephone of subscriber A, which apparatus comprises a received signal measuring unit (4) for measuring a level of the signal received from a telephone of subscriber B, a background noise measuring unit (2) and an attenuation control for attenuating a signal output by the telephone of subscriber A to the telephone of subscriber B, characterized in that the apparatus further comprises: a noise detector (1) for detecting ambient background noise at the telephone of subscriber A (10) in which detector has a voice activity detector by means of which it is detected whether an input signal is speech or background noise and the acoustic field of the environment is measured by the background noise measuring unit (2) in case the noise detector detects only background noise; an attenuation parameter value determining unit (3) to which the measured noise value is fed from the background noise measuring unit (2) and where values of the attenuation parameters, especially maximal attenuation, depending on the ambient bacground noise level are determined so that the attenuation level decreases when the noise level increases; an output signal attenuation determining unit (5) whose inputs are connected with the attenuation parameter determining unit (3) for feeding the attenuation parameter values and the received signal measuring unit (4) for feeding received signal level values and which output signal attenuation determining unit (5) is connected to the attenuation control unit (6) for adjusting the output signal level on the basis of the attenuation parameter values and the received signal level valves so that background noise masks the return echo signal of the received signal for adaptive echo attenuation. An apparatus according to claim 5, characterized in that the noise detector (1) for detecting background noise is connected to the microphone (7) of the telephone. An apparatus according to claim 5 or 6, characterized in that the attenuation parameter value determining unit (3) comprises a storage unit for storing a parameter set and background noise thresholds, and a comparator unit for comparing measured background noise with the background noise thresholds and thereby selecting the parameters. An apparatus according to claim 5 or 6, characterized in that the attenuation parameter value determining unit (3) comprises a calculating unit for calculating the parameters from the background noise measured.

Inventors: HAGQVIST JARI, HAGQVIST, JARI
Applicants: NOKIA CORP, NOKIA CORPORATION
Application year: 1994
Main classification: H04M9
IPC codes: H04M1, H04M9