Method of speech coding

Abstract: A method of speech coding based upon linear prediction. The parameters describing short-term spectrum behaviour of the speech are processed in a non-linear modification block within the receiver, said modification block effecting a non-linear modification of the parameters with the help of a median operation, the modification being carried out only when a significant amount of transmission errors appears in the parameters.

Description: The present invention relates to a method of and an apparatus for speech coding. Linear predictive coding (LPC) is a well-known and widely used method of speech coding. A known (LPC) technique is described below with reference to Figure 1 of the accompanying drawings, which shows a known LPC encoder. Fig. 1 is a block diagram of a known speech signal encoder, which utilizes linear predictive coding. The incoming signal s(n) 100 is processed block by block in the encoder. The length N of the block is generally selected to be about 10 to 30 msec. The sampling frequency of speech signal 100 is generally 8 kHz, whereby a performance number in the order of 8 to 12 which is sufficient for the linear predictive coding model. The LPC parameters, which are indicative of the filter factors, are calculated for each block of the speech signal 100 in LPC analyzer 103. They can be factors ai; i = 1, 2, ..., P of a direct-form filter type, where P is the performance number of the used LPC model. The filters of the LPC model are often realized using a framework filter, for which the direct-form filter factors are converted into so-called reflection coefficients rci, i = 1, 2, ..., P. The calculated filter factors are quantized and introduced to block 106 which carries out the multiplexing and error correction encoding. Speech signal 100 to be encoded is introduced to the analysis filter 101 in such a way that each block of the speech signal 100 is filtered in analysis filter 101 by using those filter factor values that were calculated in the related block in the LPC analyzer 103. Quantized filter factors are employed in analysis filter 101 (even when unquantized values are available) in order to make its operation the reverse of that applied in the synthesis filtering used in decoding. The output of quantization block 104 is transferred to the dequantization block 105 and to analysis filter 101 where it provides the function of filter factors. A so-called prediction error is obtained as an output of analysis filter 101 for each portion of the speech signal 100. This prediction error signal is quantized using quantizer 102 and it is also introduced to multiplexer 106 to be transmitted to the telecommunications channel 107. Several coding methods can be utilized depending on how the prediction error of the LPC model is transmitted to the decoder. When quantizing each sample separately of a prediction error, this is known as the Residual Excited Predictive Coding (REPC), see, for instance, U.S. Patent No. 4 220 819. The most effective linear predictive coding methods employ the so-called analysis-synthesis technique, where a suitable quantized presentation is located for the prediction error by carrying out a synthesis of the speech signal in the encoder through different excitation options, i.e., quantized error signals, and by selecting the excitation which produces the best synthesis result for transmission to the decoder. When searching for a presentation for the prediction error which contains sample values which deviate from zero only by a small number using the analysis-synthesis search, this is known as the Multi Pulse Coding (MPC), see, for instance, U.S. Patent No. 4 472 832. The Code Excited Linear Prediction (CELP), see, for instance, U.S. Patent No. 4 817 152 employes, in turn, a vector presentation from each prediction error block, whereby the excitation optimized with the aid of the analysis-synthesis techniques may include sample values substantially deviating from zero, the number of different excitation combinations being limited, at the same time, to the small number required by the low transmission rate, however. The quality of the speech signal transmitted using LPC methods decreases considerably, if transmission errors occur in the transmission channel, especially in noisy channels such as those used in mobile radio communications. It is essential that the coding method used can overcome transmission errors as efficiently as possible if the best possible quality is to be achieved for the speech signal. It is possible to protect against transmission errors by using a special error correction coding. In this case, in addition to parameters presenting the speech signal, additional bits used in error correction are transmitted to the receiver. However, the transmission of such additional error correction information decreases the number of bits available for the actual speech coding and thus increases the distortion of the speech signal caused by the speech coding itself: On the other hand, all the transmitted coding parameters cannot be effectively protected by the error correction coding. EP-A-379 296 discloses a CELP coding-decoding method wherein only the excitation codebook index is transmitted from the coder to the decoder, the index being coded using a Pseudo-Grey coding to reduce errors induced by channel noise; the Pseudo-Grey coding does not require any redundancy bit. Thus it would be desirable to achieve a decrease in the effect of the transmission errors which are caused by the coding parameters themselves especially if that decrease could be implemented without transmitting the additional information which decreases the channel capacity. This decrease in the effects of the transmission errors could either act as such or in combination with separate error correction coding. According to one aspect of the present invention there is provided a method of speech decoding utilizing linear predictive coding (LPC), comprising error correction decoding, demultiplexing and dequantizing a received signal comprising a speech information signal including LPC parameters, the error correction decoding providing information indicative of the number of transmission errors in the signal, and synthesizing a speech signal from the received speech information signal in a synthesis filter, wherein the operation of the synthesis filter is controlled by filter factors produced from the LPC parameters, characterized in that the received signal is monitored to determine whether the number of transmission errors is above a predetermined value whereupon non-linear modification using the LPC parameters of a plurality of consecutive speech frames of the filter factors is effected to produce modified filter factors, in order to compensate for transmission errors, prior to the modified filter factors being forwarded to the synthesis filter. According to another aspect of the present invention there is provided speech decode utilizing linear predictive coding (LPC), comprising means (201, 202, 204) for error correction decoding, demultiplexing and dequantizing a received signal comprising a speech information signal including LPC parameters, the means for error correction decoding providing information indicative of the number of transmission errors in the signal, and synthesizing a speech signal from the received speech information signal in a synthesis filter, wherein the operation of the synthesis filter is controlled by filter factors produced from the LPC parameters, characterized by a non-linear modifying block in which non-linear modification using the LPC parameters of a plurality of consecutive speech frames of the filter factors is effected to produce modified filter factors, in order to compensate for transmission errors, prior to the modified filter factors being forwarded to the synthesis filter if the information indicative of the number of transmission errors indicates that the number of transmission errors is above a predetermined value. An advantage of the present invention is an improvement in the quality of a speech signal in conjunction with linear predictive coding, which overcomes the above described drawbacks and problems. A method in accordance with the invention can be applied to all coders using the LPC modelling where the predictive factors of the model are transmitted to the receiver in a transmission channel which suffers transmission errors. An embodiment of the invention is described below, by way of example, with reference to the accompanying drawings, in which: Figure 1 is a block diagram of a known speech signal encoder based on linear prediction; Figure 2 is a block diagram of a decoder in accordance with the invention, Figure 3 is a block diagram of a non-linear modifying block of the speech decoder in accordance with the invention; Figure 4 illustrates an alternative implementation of the non-linear modifying block of the speech decoder in accordance with the invention; and Fig. 5 illustrates the operation of a vector type non-linear modifying block in accordance with the invention. Fig. 2 is a block diagram of a decoder in accordance with the invention. The decoder utilizes non-linear modification of its function unlike prior art decoders based on linear prediction. In the decoding part of the prior art coders based on linear prediction, the functions performed are the reverse of those performed for encoding, as presented in Fig. 1. Different coding parameters are demultiplexed from the bit stream transmitted to the decoder and dequantized. The speech signal is synthized in the decoder by using a synthesis filter which is the reverse of the analysis filter in the encoder. The dequantized prediction error signal is used as an excitation to the synthesis filter the factors of which are provided by dequantizing the transmitted prediction factors. A synthesized speech signal is obtained from the output of the synthesis filter. The bit stream 200 received in the decoder in accordance with the present invention is provided to demultiplexer 201. The LPC parameter presentation obtained from the demultiplexer 201 is dequantized in dequantizer 204. The LPC parameters are forwarded to the modifying block 205, from where the received, processed parameter values are forwarded to the synthesis filter 203 as factors. In addition to the LPC parameters, a prediction error signal is obtained from demultiplexer 201 and it is dequantized in dequantizer 202 and taken to the synthesis filter 203 as an excitation. Decoded speech signal s'(n) is obtained from output 206 of synthesis filter 203. When the modifying block 205 in accordance with the invention is used, the effect on the quality of the speech signal which is synthized in the decoder of the transmission errors generated in the spectrum parameters in conjunction with the transmission can be decreased. With the aid of the non-linear modification the parameters containing transmission errors can thus be used in the synthesis filtering to produce a high-quality speech signal. The operation of modifying block 205 is controlled by the information on the number of the transmission errors on the channel c(n), which is obtained from the error correction decoding. Shaping or modifying block 205 is activated only if the number of transmission errors in the spectrum parameters is substantial. The modifying operation is not carried out, i.e., the dequantized LPC parameters are taken directly to synthesis filter 203 for further use, provided that the transmission connection is faultless or its errors in the LPC parameters do not essentially decrease the quality of the speech signal. The operation of modifying block 205 is based on the identification of values containing transmission errors and on replacing them with usable values with the aid of the median operation. The shaping is carried out with the aid of the LPC parameter values of several consecutive speech frames and this procedure is described more closely in the subsequent exemplary embodiments. Median operations per se are described, for instance, in publications like J. Astola, P. Heinonen, Y. Neuvo, "Vector Median Filters", Proc. IEEE, Vol. 78, No. 4, April 1990, pages 678-689, and P. Haavisto, M. Gabbouj, Y. Neuvo, "Median Based Idempotent Filters", Journal of Circuits and Systems and Computers, Vol. 1, No. 2, 1991, pages 125-148. By using the method on the LPC parameters the number of frames classified as faulty can be decreased and thus the faulty frames rarely need to be replaced using a separate replacement procedure. The method does not require the transmission of additional error correcting information, whereby it does not cause load on the transmission capacity. Consequently, the method is easy to connect to speech codes based on the linear prediction by implementing it in the decoding part of the LPC parameters, as illustrated in Figure 2. Figure 3 is a block diagram of the non-linear modifying block of the speech coder in accordance with the invention. The processing is based on median operation. The LPC parameter information obtained from the dequantizer is taken to input 300 of shaping block 301. A classification operation is carried out between the N consecutive parameter values of each LPC parameter. Classification block 303 provides as its output 302 the median value of said N input values of classifier 303, i.e., where N = 2k+1 , the output 302 will be the (k+1)th largest value of the values of the classifier's inputs l1, l2, ..., l2k+1. The non-linear processing according to the figure is carried out in parallel and separately for each LPC factor transmitted in the transmission channel. It should be noted that unit delay symbols 304 refer to the counting rate of the LPC parameters and not to the sampling rate of the speech signal. Figure 4 presents an alternative implementation of the non-linear modifying block of the speech coder in accordance with the invention. The process is based on recursive median operation. Thus output 402 of classifier 403 is further taken to classifying block 403 to be processed. The LPC parameter value to be processed is taken to input 400 of shaping block 401. In the recursive processing preceding output value 402 of classiffier 403 (and not the preceding value of the (k+1)th input of classifier 403) is taken to the (k+2)th input, as viewed from input 400 of shaping block 401, i.e., from the left of the inputs of the classification device. The operation of modifying block 401 can be enhanced by the recursive processing, whereby a short classifying operation can be used so that the delay caused by the modification remains proportional. Even in this case the processing is carried out separately for each LPC parameter. A good modification result is achieved even with the classification operation of three inputs in the decoder. The recursive processing also makes it possible to keep low the calculatory loading caused by the modification. The calculatory loading caused by the method can be further decreased by carrying out the processing of only the most important values of the LPC parameter vector in modifying block 401, i.e., by processing only those LPC parameters that describe the dependence to the closest sample values of the speech signal and by transmitting the other LPC parameters to the syhthesis filters without modifying them. When using 8-degree modelling, for instance, nearly as good a result is achieved by processing the three or four lowest LPC parameters in modifying block 401 as by processing each of the eight parameters. Figure 5 presents a block diagram of the non-linear modifying block of the vector type according to the invention. The modifying method implements the vector processing of the LPC parameters. Since the prediction factors are a set of parameters which are simultaneously calculated for each block of the input signal, they are inherently of the vector type. Prediction vector Xn can naturally be formed in each frame n. This vector contains, for instance, when a reflection factor presentation is used, reflection factor values (rc1(n), rc2(n), ..., rcp(n)). Each set of parameters is processed as a vector which is taken to input 500 of vector shaping block 501. From the point of view of speech, a higher quality of speech is obtained in the channel containing transmission errors by taking the processed reflection factor values contained in vector Yn of output 502 of modifying block 501 to the synthesis filter than would be obtained by the direct use of the dequantized reflection factor vector Xn 503. In the vector shaping the output vector is formed with the aid of reflection factor vector Xn, Xn-1, ..., Xn-k by carrying out a vector median operation. The vector median operation is carried out by calculating the distance of each vector Xi to the other K vectors and by locating the vector which provides the minimum distance to the others. The distance of the vectors is calculated as the sum of the distances of the vectors'components. The distance measurements can be weighted in such a way that the lowest components of the reflection factor vector are made more significant than the higher ones. The vector median operation can also be carried out recursively by including the preceding output vector of modifying block 501 in the input of the classifier. The method in accordance with the invention can be utilized in all methods using the linear prediction, i.e., the linear predictive coding methods. By using the non-linear modifying method in accordance with the invention the likelihood of an interruption in the speech signal is decreased. With the aid of the modifying method in accordance with the invention, the predictive factors according to the LPC model can be used in synthesizing the speech signal even when they still contain a substantial number of transmission errors. A bit stream which is otherwise classified as useless can be utilized with the aid of the invention in synthesizing the speech signal in the receiver. In view of the foregoing it will be obvious to a person skilled in the art that modifications may be incorporated without departing from the scope of the present invention as defined by the appended claims.

Claims: A method of speech decoding utilizing linear predictive coding (LPC), comprising error correction decoding, demultiplexing and dequantizing a received signal comprising a speech information signal including LPC parameters, the error correction decoding providing information indicative of the number of transmission errors in the signal, and synthesizing a speech signal from the received speech information signal in a synthesis filter, wherein the operation of the synthesis filter is controlled by filter factors produced from the LPC parameters, characterized in that the received signal is monitored to determine whether the number of transmission errors is above a predetermined value whereupon non-linear modification using the LPC parameters of a plurality of consecutive speech frames of the filter factors is effected to produce modified filter factors, in order to compensate for transmission errors, prior to the modified filter factors being forwarded to the synthesis filter. A method as claimed in claim 1, wherein the non-linear modification of the filter factors comprises the processing of N filter factors to produce a median filter factor value, the plurality of N filter factors being sequentially updated, and each sequentially produced median value being output as the modified filter factor. A method according to claim 1, wherein the non-linear modification of the filter factor comprises a recursive median operation. A method according to claim 1 or claim 2, wherein each set of P LPC parameters is simultaneously processed as a set of k vectors to produce a modified filter factor in the form of an output vector, whereby the output vector is selected by determining the distance of each vector to the other (k-1) vectors and selecting the vector providing the minimum distance to the other (k-1) vectors as the output vector. A speech decoder utilizing linear predictive coding (LPC), comprising means (201, 202, 204) for error correction decoding, demultiplexing and dequantizing a received signal comprising a speech information signal including LPC parameters, the means for error correction decoding providing information indicative of the number of transmission errors in the signal, and synthesizing a speech signal from the received speech information signal in a synthesis filter (203), wherein the operation of the synthesis filter is controlled by filter factors produced from the LPC parameters, characterized by a non-linear modifying block (205) in which non-linear modification using the LPC parameters of a plurality of consecutive speech frames of the filter factors is effected to produce modified filter factors, in order to compensate for transmission errors, prior to the modified filter factors being forwarded to the synthesis filter if the information indicative of the number of transmission errors indicates that the number of transmission errors is above a predetermined value. A decoder as claimed in claim 5, wherein the non-linear modifying block comprises a classifier, which is operated under a sequentially updated median operation, wherein N successive filter factors are processed to produce the median of said N filter factors which is output as the modified filter factor. A decoder as claimed in claim 5, wherein the non-linear modifying block comprises a classifier having 2k+1 inputs, which is operated under a sequentially updated recursive median operation, wherein the nth modified filter factor output by the classifier is resubmitted to the (k+1)th input of the classifier in the production of the (n+1)th modified filter factor.

Inventors: JAERVINEN KARI, KAPANEN PEKKA, NUEVO YRJOE, JAERVINEN, KARI, KAPANEN, PEKKA, NUEVO, YRJOE, Järvinen, Kari, Nuevo, Yrjö
Applicants: NOKIA MOBILE PHONES LTD, NOKIA NETWORKS OY, NOKIA MOBILE PHONES LTD.
Application year: 1993
Main classification: G10L19
IPC codes: G10L19