METHOD AND APPARATUS FOR ENCODING/DECODING OF BACKGROUND SOUNDS

Abstract: A method and an apparatus for encoding and/or decoding background sounds in a digital frame based speech encoder and/or decoder including a signal source connected to a filter, said filter being defined (12) by a set of filter parameters for each frame, for reproducing the signal that is to be coded and/or decoded, comprises the steps: detecting (16) whether the signal that is directed to said coder/decoder represents primarily speech or background sounds and, when said signal represents primarily background sounds, restricting (18) the temporal variation between consecutive frames and/or the domain of at least some filter parameters in said set.

Description: METHOD AND APPARATUS FOR ENCODING/DECODING OF BACKGROUND SOUND TECHNICAL FIELD The present invention relates to a method and an apparatus fo encoding/decoding of background sounds in a digital frame base 5 speech coder and/or decoder including a signal source connecte to a filter, said filter being defined by a set of filte defining parameters for each frame, for reproducing the signa that is to be encoded and/or decoded. BACKGROUND OF THE INVENTION 10 Many modern speech coders belong to a large class of speec coders known as LPC (Linear Predictive Coders) . Examples o coders belonging to this class are: the 4,8 Kbit/s CELP from th US Department of Defense, the RPE-LTP coder of the Europea digital cellular mobile telephone system GSM, the VSELP coder o 15 the corresponding American system ADC, as well as the VSELP code of the Pacific Digital Cellular system PDC. These coders all utilize a source-filter concept in the signa generation process. The filter is used to model the short-tim spectrum of the signal that is to be reproduced, whereas th 20 source is assumed to handle all other signal variations. A common feature of these source-filter models is that the signa to be reproduced is represented by parameters defining the outpu signal of the source and filter parameters defining the filter. The term "linear predictive" refers to a class of methods ofte 25 used for estimating the filter parameters. Thus, the signal to b < reproduced is partially represented by a set of filter parame ► ters. The method of utilizing a source-filter combination as a signa model has proven to work relatively well for speech signals. 30 However, when the user of a mobile telephone is silent and th input signal comprises the surrounding sounds, the presentl known coders have difficulties to cope with this situation, sinc they are optimized for speech signals. A listener on the othe side may easily get annoyed when familiar background sound cannot be recognized since they have been "mistreated" by th coder. SUMMARY OF THE INVENTION An object of the present invention is a method and an apparatu for encoding/decoding background sounds in such a way tha background sounds are encoded and reproduced accurately. The above object is achieved by a method comprising the steps of: (a) detecting whether the signal that is directed to sai coder/decoder represents primarily speech or backgroun sounds; and (b) when said signal directed to said coder/decoder repre¬ sents primarily background sounds, restricting th temporal variation between consecutive frames and/or th domain of at least one filter defining parameter in sai set. The apparatus comprises: (a) means for detecting whether the signal that is directe to said coder/decoder represents primarily speech o background sounds; and (b) means for restricting the temporal variation betwee consecutive frames and/or the domain of at least one filter defining parameter in said set when said signal directed to said coder/decoder represents primaril background sounds . BRIEF DESCRIPTION OF THE DRAWINGS The invention, together with further objects and advantage thereof, may best be understood by making reference to th following description taken together with the accompanyin drawings, in which*. FIGURE 1(a) - (f) are frequency spectrum diagrams for 6 consecu tive frames of the transfer function of filter representing background sound, whic filter has been estimated by a previousl known coder,* FIGURE 2 is a block diagram of a speech coder for per forming the method in accordance with th present invention,- FIGURE 3 is a block diagram of a speech decoder fo performing the method in accordance with th present invention,- FIGURE 4(a) - (c) are frequency spectrum diagrams correspondin to the diagrams of Figure 1, but for a code performing the method of the present inven¬ tion; FIGURE 5 is a block diagram of the parameter modifie of Figure 2 ; and FIGURE 6 is a flow chart illustrating the method of th present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In a linear predictive coder the synthetic speech S(z) i produced by a source represented by its z-transform G(z) , followed by a filter, represented by its z-transform H(z) , resulting in the synthetic speech S(z) = G(z) H(z) . Often the filter is modelled as an all-pole filter H(z) = l/A(z) , where A ( z) = 1 + ∑ a. n .z-' o -l and where M is the order of the filter. This filter models the short-time correlation of the input speech signal. The filter parameters, a,., are assumed to be constant during each speech frame. Typically the filter parameters are updated each 20 ms. If the sampling frequency is 8 kHz each such frame corresponds to 160 samples. These samples, possibly combi¬ ned with samples from the end of the previous and the beginning of the next frame, are used for estimating the filter parameters of each frame in accordance with standardized procedures. Examp¬ les of such procedures are the Levinson-Durbin algorithm, the Burg algorithm, Cholesky decomposition (Rabiner, Schafer: "Digital Processing of Speech Signals", Chapter 8, Prentice-Hall, 1978) , the Schur algorithm (Strobach: "New Forms of Levinson and Schur Algorithms", IEEE SP Magazine, Jan 1991, pp 12-36), the Le Roux-Gueguen algorithm (Le Roux, Gueguen: "A Fixed Point Computation of Partial Correlation Coefficients", IEEE Transac¬ tions of Acoustics, Speech and Signal Processing", Vol ASSP-26, No 3, pp 257-259, 1977) . It is to be understood that a frame can consist of either more or fewer samples than mentioned above, depending on the application. In one extreme case a "frame" can even comprise only a single sample. As mentioned above the coder is designed and optimized for handling speech signals. This has resulted in a poor coding of other sounds than speech, for instance background sounds, music etc. Thus, in the absence of a speech signal these coders have poor performance. Figure 1 shows the magnitude of the transfer function of the filter (in dB) as a function of frequency (z = e i2ιr£/Ps ) for 6 consecutive frames in the case where a background sound has been encoded using conventional coding techniques. Although the back¬ ground sound should be of uniform character over time (th background sound has a uniform "texture"), when estimated durin "snapshots" of only 21.25 ms (including samples from the end o the previous and beginning of the next frame) , the filte parameters a„ will vary significantly from frame to frame, whic is illustrated by the 6 frames (a) - (f) of Figure 1. To th listener at the other end this coded sound will have a "swirling" character. Even though the overall sound has a quite unifor "texture" or statistical properties, these short "snapshots" whe analyzed for filter estimation, give quite different filte parameters from frame to frame. Figure 2 shows a coder in accordance with the invention which is intended to solve the above problem. On an input line 10 an input signal is forwarded to a filte estimator 12, which estimates the filter parameters in accordanc with standardized procedures as mentioned above. Filter estimato 12 outputs the filter parameters for each frame. These filte parameters are forwarded to an excitation analyzer 14, which als receives the input signal on line 10. Excitation analyzer 14 determines the best source or excitation parameters in accordance with standard procedures. Examples of such procedures are VSELP (Gerson, Jasiuk: "Vector Sum Excited Linear Prediction (VSELP)", in Atal et al, eds, "Advances in Speech Coding", Kluwer Academic Publishers, 1991, pp 69-79), TBPE (Salami, "Binary Pulse Excitation: A Novel Approach to Low Complexity CELP Coding", pp 145-156 of previous reference) , Stochastic Code Book (Campbell et al: "The DoD4.8 KBPS Standard (Proposed Federal Standard 1016)", pp 121-134 of previous reference) , ACELP (Adoul, Lamblin: " Comparison of Some Algebraic Structures for CELP Coding of Speech", Proc. International Conference on Acoustics, Speech an Signal Processing 1987, pp 1953-1956) These excitation parame¬ ters, the filter parameters and the input signal on line 10 are forwarded to a speech detector 16. This detector 16 determines whether the input signal comprises primarily speech or backgroun sounds. A possible detector is for instance the voice activit detector defined in the GSM system (Voice Activity Detection GSM-recommendation 06.32, ETSI/PT 12) . A suitable detector i described in EP,A,335 521 (BRITISH TELECOM PLC) . Speech detecto 16 produces an output signal indicating whether the coder inpu signal contains primarily speech or not. This output signa together with the filter parameters is forwarded to a paramete modifier 18. Parameter modifier 18, which will be further described wit reference to Figure 5, modifies the determined filter parameter in the case where there is no speech signal present in the inpu signal to the coder. If a speech signal is present the filte parameters pass through parameter modifier 18 without change. Th possibly changed filter parameters and the excitation parameter are forwarded to a channel coder 20, which produces the bit stream that is sent over the channel on line 22. The parameter modification by parameter modifier 18 can b performed in several ways. One possible modification is a bandwidth expansion of the filter This means that the poles of the filter are moved towards th origin of the complex plane. Assuming that the original filte H(z)=l/A(z) is given by the expression mentioned above, when th poles are moved with a factor r, 0 ≤ r ≤ l, the bandwidt expanded version is defined by A(z/r) , or: M A(* ) = l + ∑ <.a *) z m=X Another possible modification is low-pass filtering of the ilte parameters in the temporal domain. That is, rapid variations o the filter parameters from frame to frame are attenuated by low pass filtering at least some of said parameters. A special cas of this method is averaging of the filter parameters over severa frames, for instance 4-5 frames. Parameter modifier 18 can also use a combination of these two methods, for instance perform a bandwidth expansion followed by low-pass filtering. It is also possible to start with low-pass filtering and then add the bandwidth expansion. In the embodiment of Figure 2 speech detector 16 is positioned after filter estimator 12 and excitation analyzer 14. Thus, in this embodiment the filter parameters are first estimated and then modified in the absence of a speech signal. Another possibility would be to detect the presence/absence of a speech signal directly, for instance by using two microphones, one for speech and one for background sounds. In such an embodiment it would be possible to modify the filter estimation itself in order to obtain proper filter parameters also in the absence of a speech signal. In the above explanation of the invention it has been assumed that the parameter modification is performed in the coder in the transmitter. However, it is appreciated that a similar procedure can also be performed in the decoder of the receiver. This is illustrated by the embodiment shown in Figure 3. In Figure 3 a bit-stream from the channel is received on input line 30. This bit-stream is decoded by channel decoder 32. Channel decoder 32 outputs filter parameters and excitation parameters. In this case it is assumed that these parameters have not been modified in the coder of the transmitter. The filter and excitation parameters are forwarded to a speech detector 34, which analyzes these parameters to determine whether the signal that would be reproduced by these parameters contains a speech signal or not. The output signal of speech detector 34 is forwarded to a parameter modifier 36, which also receives the filter parameters. If speech detector 34 has determined that there is no speech signal present in the received signal, parameter modifier 36 performs a modification similar to the modification performed by parameter modifier 18 of Figure 2. If a speech signal is present no modification occurs. The possibly modified filter parameters and the excitation parameters are forwarded to a speech decoder 38, which produces a synthetic output signal on line 40. Speech decoder 38 uses the excitation parameters to generate the above mentioned source signals and the possibly modified filter parameters to define the filter in the source-filter model. As mentioned above parameter modifier 36 modifies the filter parameters in a similar way as parameter modifier 18 in Figure 2. Thus, possible modifications are a bandwidth expansion, low-pass filtering or a combination of the two. In a preferred embodiment the decoder of Figure 2 also contains a postfilter calculator 42 and an postfilter 44. A postfilter in a speech decoder is used to emphasize or de-emphasize certain parts of the spectrum of the produced speech signal. If the received signal is dominated by background sounds an improved signal can be obtained by tilting the spectrum of the output signal on line 40 in order to reduce the amplitude of the higher frequencies. Thus, in the embodiment of Figure 3 the output signal of speech detector 34 and the output filter parameters of parameter modifier 36 are forwarded to postfilter 42. In the absence of a speech signal in the received signal postfilter calculator 42 calculates a suitable tilt of the spectrum of. the output signal on line 40 and adjusts postfilter 44 accordingly. The final output signal is obtained on line 46. From the above description it is clear that the filter parameter modification can be performed either in the coder of the transmitter or in the decoder of the receiver. This feature can be used to implement the parameter modification in the coder and decoder of a base station. In this way it would be possible to take advantage of the improved coding performance for background sounds obtained by the present invention without modifying the coders/decoders of the mobile stations. When a signal containing background noise is obtained by the base station over the land system, the parameters are modified at the base station so that already modified parameters will be received by the mobile station, where no further actions have to be taken. On the other hand, when the mobile station sends a signal containing primarily background noise to the base station, the filter parameters characterizing this signal can be modified in the decoder of the base station for further delivery to the land system. Another possibility would be to divide the filter parameter modification between the coder at the transmitter end and the decoder at the receiver end. For instance, the poles of the filter could be partially moved closer to the origin of the complex plane in the coder and be moved closer to the origin in the decoder. In this embodiment a partial improvement of performance would be obtained in mobiles without parameter modification equipment and the full improvement would be obtained in mobiles with this equipment. To illustrate the improvements that are obtained by the present invention Figure 4 shows the spectrum of the transfer function of the filter in three consecutive frames containing primarily background sound. Figures 4 (a) -(c) have been produced with the same input signal as Figures 1(a) -(c) . However, in Figure 4 the filter parameters have been modified in accordance with the present invention. It is appreciated that the spectrum varies very little from frame to frame in Figure 4. Figure 5 shows a schematic diagram of a preferred embodiment of the parameter modifier 18, 36 used in the present invention. A switch 50 directs the unmodified filter parameters either directly to the output or to blocks 52, 54 for parameter modification, depending on the control signal from speech detector 16, 34. If speech detector 16, 34 has detected primarily speech, switch 50 directs the parameters directly to the output of parameter modifier 18, 36. If speech detector 16, 34 has detected primarily background sounds, switch 50 directs the filter parameters to an assignment block 52. Assignment block 52 performs a bandwidth expansion on the filter parameters by multiplying each filter coefficient a-,(k) by a factor r m , where 0 ≤ r ≤ l and k refers to the current frame, and assigning these new values to each a m (k) . Preferably r lies in the interval 0.85-0.96. A suitable value is 0.89. The new values a-,(k) from block 52 are directed to assignment block 54, where the coefficients a m (k) are low pass filtered in accordance with the formula ga m (k-l) +(1-g)a-,(k) , where 0 ≤ g ≤ l and a m (k-l) refers to the filter coefficients of the previous frame. Preferably g lies in the interval 0.92-0.995. A suitable value is 0.995. These modified parameters are then directed to the output of parameter modifier 18, 36. In the described embodiment the bandwidth expansion and low pass filtering was performed in two seperate blocks. It is, however, also possible to combine these two steps into a single step in accordance with the formula a„(k) <- ga-,(k-l)+(1-g)a_,(k)r m . Further more, the low pass filtering step involved only the present and one previous frames. However, it is also possible to include older frames, for instance 2-4 previous frames. Figure 6 shows a flow chart illustrating a preferred embodiment of the method in accordance with the present invention. The procedure starts in step 60. In step 61 the filter parameters are estimated in accordance with one of the methods mentioned above. These filter parameters are then used to estimate the excitation parameters in step 62. This is done in accordance with one of the methods mentioned above. In step 63 the filter parameters and excitation parameters and possibly the input signal itself are used to determine whether the input signal is a speech signal or not. If the input signal is a speech signal the procedure proceeds to final step 66 without modification of the filter parameters. If the input signal is not a speech signal the procedure proceeds to step 64, in which the bandwidth of the filter is expanded by moving the poles of the filter closer to the origin of the complex plane. Thereafter the filter parameters are low-pass filtered in step 65, for instance by forming the average of the current filter parameters from step 64 and filter parameters from previous signal frames. Finally the procedure proceeds to final step 66. In the above description the filter coefficients a,, were used to illustrate the method of the present invention. However, it is to be understood that the same basic ideas can be applied to other parameters that define or are related to the filter, for instance filter reflection coefficients, log area ratios (lar) , roots of polynomial, autocorrelation functions (Rabiner, Schafer: "Digital Processing of Speech Signals", Prentice-Hall, 1978), arcsine of reflection coefficients (Gray, Markel: "Quantization and Bit Allocation in Speech Processing", IEEE Transactions on Acoustics, Speech and Signal Processing", Vol ASSP-24, No 6, 1976) , line spectrum pairs (Soong, Juang: Line Spectrum Pair (LSP) and Speech Data compression", Proc. IEEE Int. Conf. Acoustics, Speech and Signal Processing 1984, pp 1.10.1-1.10.4) . Furthermore, another modification of the described embodiment of the present invention would be an embodiment where there is no post filter in the receiver. Instead the corresponding tilt of the spectrum is obtained already in the modification of the filter parameters, either in the transmitter or in the receiver. This can for instance be done by varying the so called reflection coefficient 1. It will be understood by those skilled in the art that various modifications and changes may be made to the present invention without departure from the spirit and scope thereof, which is defined by the appended claims.

Claims: CLAIMS 1. A method of encoding and/or decoding background sounds in a digital frame based speech coder and/or decoder including a signal source connected to a filter, said filter being defined by a set of parameters for each frame, for reproducing the signal that is to be encoded and/or decoded, said method comprising the steps of: (a) detecting whether the signal that is directed to said coder/decoder represents primarily speech or background sounds; and (b) when said signal directed to said coder/decoder repre¬ sents primarily background sounds, restricting the temporal variation between consecutive frames and/or the domain of at least one filter defining parameter in said set. 2. The method of claim 1, wherein the temporal variation of said filter defining parameters is restricted by low pass filtering said filter defining parameters over several frames . 3. The method of claim 2, wherein the temporal variation of the filter defining parameters is restricted by averaging said filter defining parameters over several frames . 4. The method of claim 1, 2 or 3, wherein the domain of said filter defining parameters is modified to move the poles of the filter closer to the origin of the complex plane. 5. The method of any of the preceeding claims, wherein the signal obtained by said source and said filter with modified parameters is further modified by a postfilter to de-emphesize predetermined frequency regions therein. 6. An apparatus for encoding and/or decoding background sounds in a digital frame based speech coder and/or decoder including a signal source connected to a filter, said filter being defined by a set of parameters for each frame, for reproducing the signal that is to be encoded and/or decoded, said apparatus comprising: (a) means (16, 34) for detecting whether the signal that is directed to said coder/decoder represents primarily speech or background sounds,* and (b) means (18, 36) for restricting the temporal variation between consecutive frames and/or the domain of at least one filter defining parameter in said set when said signal directed to said coder/decoder represents primar¬ ily background sounds . 7. The apparatus of claim 6, wherein the temporal variation of said filter defining parameters is restricted by a low pass filter (54) that filters said filter defining parameters over several frames . 8. The apparatus of claim 7, wherein the temporal variation of the filter defining parameters is restricted by a low pass filter that averages said filter defining parameters over several frames . 9. The apparatus of claim 6, 7 or 8, wherein the domain of said filter defining parameters is modified in means (52) that move the poles of the filter closer to the origin of the complex plane. 10. The apparatus of any of the preceeding claims 6-9, wherein the signal obtained by said source and said filter with modified parameters is further modified by a postfilter (44) to de- emphesize predetermined frequency regions therein.

Inventors: BERGSTROEM ROLF ANDERS, BERGSTROEM, ROLF, ANDERS
Applicants: ERICSSON TELEFON AB L M, TELEFONAKTIEBOLAGET LM ERICSSON
Application year: 1994
Main classification: G10L3
IPC codes: G10L11, G10L19