Abstract:
A method and apparatus for encoding/decoding of background sounds. The background sounds are encoded/decoded in a digital frame based speech encoder/decoder. First, it is determined whether the signal that is directed to the encoder/decoder represents primarily speech or background sounds. When the signal directed to the encoder/decoder represents primarily background sounds, the temporal variation between consecutive frames and/or the domain of at least one filter defining parameter is restricted.

Description:
TECHNICAL FIELD 
     The present invention relates to a method and an apparatus for encoding/decoding of 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 filter defining parameters for each frame, for reproducing the signal that is to be encoded and/or decoded. 
     BACKGROUND OF THE INVENTION 
     Many modern speech coders belong to a large class of speech coders known as LPC (Linear Predictive Coders). Examples of coders belonging to this class are: the 4,8 Kbit/s CELP from the U.S. Department of Defense, the RPE-LTP coder of the European digital cellular mobile telephone system GSM, the VSELP coder of the corresponding American system ADC, as well as the VSELP coder of the Pacific Digital Cellular system PDC. 
     These coders all utilize a source-filter concept in the signal generation process. The filter is used to model the short-time spectrum of the signal that is to be reproduced, whereas the source is assumed to handle all other signal variations. 
     A common feature of these source-filter models is that the signal to be reproduced is represented by parameters defining the output signal of the source and filter parameters defining the filter. The term &#34;linear predictive&#34; refers to a class of methods often used for estimating the filter parameters. Thus, the signal to be reproduced is partially represented by a set of filter parameters. 
     The method of utilizing a source-filter combination as a signal model has proven to work relatively well for speech signals. However, when the user of a mobile telephone is silent and the input signal comprises the surrounding sounds, the presently known coders have difficulties coping with this situation, since they are optimized for speech signals. A listener on the other side may easily get annoyed when familiar background sounds cannot be recognized since they have been &#34;mistreated&#34; by the coder. 
     SUMMARY OF THE INVENTION 
     An object of the present to provide a method and an apparatus for encoding/decoding background sounds in such a way that 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 said encoder/decoder represents primarily speech or background sounds; and 
     (b) when said signal directed to said encoder/decoder represents primarily background sounds, restricting the temporal variation between consecutive frames and/or the domain of at least one filter defining parameter in said set. 
     The apparatus comprises: 
     (a) means for detecting whether the signal that is directed to said encoder/decoder represents primarily speech or background sounds; and 
     (b) means 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 encoder/decoder represents primarily background sounds. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The present invention, together with further objects and advantages thereof, may best be understood by making reference to the following description taken together with the accompanying drawings, in which: 
     FIG. 1(a)-(f) are frequency spectrum diagrams for 6 consecutive frames of the transfer function of a filter representing background sound, which filter has been estimated by a previously known coder; 
     FIG. 2 is a block diagram of a speech coder for performing the method in accordance with the present invention; 
     FIG. 3 is a block diagram of a speech decoder for performing the method in accordance with the present invention; 
     FIG. 4(a)-(c) are frequency spectrum diagrams corresponding to the diagrams of FIG. 1, but for a coder performing the method of the present invention; 
     FIG. 5 is a block diagram of the parameter modifier of FIG. 2; and 
     FIG. 6 is a flow chart illustrating the method of the present invention. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     In a linear predictive coder the synthetic speech S(z) is 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)=1/A(z), where ##EQU1## 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 m , are generally 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 combined 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. Examples of such procedures are the Levinson-Durbin algorithm, the Burg algorithm, Cholesky decomposition (Rabiner, Schafer: &#34;Digital Processing of Speech Signals&#34;, Chapter 8, Prentice-Hall, 1978), the Schur algorithm (Strobach: &#34;New Forms of Levinson and Schur Algorithms&#34;, IEEE SP Magazine, January 1991, pp 12-36), the Le Roux-Gueguen algorithm (Le Roux, Gueguen: &#34;A Fixed Point Computation of Partial Correlation Coefficients&#34;, IEEE Transactions of Acoustics, Speech and Signal Processing&#34;, 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 &#34;frame&#34; 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. 
     FIG. 1 shows the magnitude of the transfer function of the filter (in dB) as a function of frequency (z=e i2 πf/Fs) for 6 consecutive frames in the case where a background sound has been encoded using conventional coding techniques. Although the background sound should be of uniform character over time (the background sound has a uniform &#34;texture&#34;), when estimated during &#34;snapshots&#34; of only 21.25 ms (including samples from the end of the previous and beginning of the next frame), the filter parameters a m  will vary significantly from frame to frame, which is illustrated by the 6 frames (a)-(f) of FIG. 1. To the listener at the other end this coded sound will have a &#34;swirling&#34; character. Even though the overall sound has a quite uniform &#34;texture&#34; or statistical properties, these short &#34;snapshots&#34; when analyzed for filter estimation, give quite different filter parameters from frame to frame. 
     FIG. 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 filter estimator 12, which estimates the filter parameters in accordance with standardized procedures as mentioned above. Filter estimator 12 outputs the filter parameters for each frame. These filter parameters are forwarded to an excitation analyzer 14, which also receives the input signal on line 10. The excitation analyzer 14 determines the best source or excitation parameters in accordance with standard procedures. Examples of such procedures are VSELP (Gerson, Jasiuk: &#34;Vector Sum Excited Linear Prediction (VSELP)&#34;, in Atal et al, eds, &#34;Advances in Speech Coding&#34;, Kluwer Academic Publishers, 1991, pp 69-79), TBPE (Salami, &#34;Binary Pulse Excitation: A Novel Approach to Low Complexity CELP Coding&#34;, pp 145-156 of previous reference), Stochastic Code Book (Campbell et al: &#34;The DoD4.8 KBPS Standard (Proposed Federal Standard 1016)&#34;, pp 121-134 of previous reference), ACELP (Adoul, Lamblin: &#34;A Comparison of Some Algebraic Structures for CELP Coding of Speech&#34;, Proc. International Conference on Acoustics, Speech and Signal Processing 1987, pp 1953-1956) These excitation parameters, 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 background sounds. A possible detector, is for instance, the voice activity detector defined in the GSM system (Voice Activity Detection, GSM-recommendation 06.32, ETSI/PT 12). A suitable detector is described in EP,A,335 521 (BRITISH TELECOM PLC). The speech detector 16 produces an output signal indicating whether the coder input signal contains primarily speech or not. This output signal together with the filter parameters is forwarded to a parameter modifier 18. 
     The parameter modifier 18, which will be further described with reference to FIG. 5, modifies the determined filter parameters in the case where there is no speech signal present in the input signal to the coder. If a speech signal is present the filter parameters pass through the parameter modifier 18 without change. The possibly changed filter parameters and the excitation parameters are forwarded to a channel coder 20, which produces the bit-stream that is sent over the a line 22. 
     The parameter modification by the parameter modifier 18 can be 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 the origin of the complex plane. Assuming that the original filter H(z)=1/A(z) is given by the expression mentioned above, when the poles are moved with a factor r, 0≦r≦1, the bandwidth expanded version is defined by A(z/r), or: ##EQU2## 
     Another possible modification is low-pass filtering of the filter parameters in the temporal domain. That is, rapid variations of the filter parameters from frame to frame are attenuated by low-pass filtering at least some of said parameters. A special case of this method is averaging of the filter parameters over several frames, for instance, 4-5 frames. 
     The 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 illustrated in FIG. 2 the speech detector 16 is positioned after a filter estimator 12 and a 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 present 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 illustrated in FIG. 3. 
     In FIG. 3, a bit-stream from the channel is received on an input line 30. This bit-stream is decoded by a channel decoder 32. The 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 the speech detector 34 is forwarded to a parameter modifier 36, which also receives the filter parameters. If the speech detector 34 has determined that there is no speech signal the present in the received signal, parameter modifier 36 performs a modification similar to the modification performed by the parameter modifier 18 of FIG. 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 a line 40. The 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, the parameter modifier 36 modifies the filter parameters in a similar way as parameter modifier 18 in FIG. 2. Thus, possible modifications are a bandwidth expansion, low-pass filtering or a combination of the two. 
     In a preferred embodiment, the decoder of FIG. 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 FIG. 3, the output signal of the speech detector 34 and the output filter parameters of the parameter modifier 36 are forwarded to the postfilter 42. In the absence of a speech signal in the received signal postfilter, a calculator 42 calculates a suitable tilt of the spectrum of the output signal on the line 40 and adjusts the postfilter 44 accordingly. The final output signal is obtained on a line 46. 
     From the above description it is clear that the filter parameter modification can be performed either in the encoder of the transmitter or in the decoder of the receiver. This feature can be used to implement the parameter modification in the encoder 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 encoders/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 need 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, FIG. 4 shows the spectrum of the transfer function of the filter in three consecutive frames containing primarily background sound. FIGS. 4(a)-(c) have been produced with the same input signal as FIGS. 1(a)-(c). However, in FIG. 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 FIG. 4. 
     FIG. 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 the speech detector 16, 34. If the speech detector 16, 34 has detected primarily speech, the switch 50 directs the parameters directly to the output of the parameter modifier 18, 36. If the speech detector 16, 34 has detected primarily background sounds, the switch 50 directs the filter parameters to an assignment block 52. 
     The assignment block 52 performs a bandwidth expansion on the filter parameters by multiplying each filter coefficient a m  (k) by a factor r m , where 0≦r≦1 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 m  (k) from the 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-1)+(1-g)a m  (k), where 0≦g≦1 and a m  (k-1) 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 the 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 m  (k)←ga m  (k-1)+(1-g)a m  (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. The low pass filter may also include zeroes or comprise an FIR filter. 
     FIG. 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 m  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: &#34;Digital Processing of Speech Signals&#34;, Prentice-Hall, 1978), arcsine of reflection coefficients (Gray, Markel: &#34;Quantization and Bit Allocation in Speech Processing&#34;, IEEE Transactions on Acoustics, Speech and Signal Processing&#34;, Vol ASSP-24, No 6, 1976), and line spectrum pairs (Soong, Juang: Line Spectrum Pair (LSP) and Speech Data compression&#34;, 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.