TRANSMISSION SYSTEM USING AN IMPROVED SIGNAL ENCODER AND DECODER

Abstract: In a transmission system a signal to be transmitted is applied to a source encoder (4) for being encoded. The encoded signal is applied to a channel encoder (6) which applies an error correcting code on the encoded input signal. The output signal of the channel encoder (6) is transmitted to a receiver (14) which processes the received signal by means of a channel decoder (18) and a source decoder (20). The source encoder comprises a codebook entry selector (42) which selects a ternary number generated by a ternary generator (26), such that a synthetic signal derived from said ternary number is a best approximation of a signal to be encoded. The ternary value found in this way is converted into a binary number in such a way that the ternary values corresponding to binary numbers which differ only in one particular digit, differs only in one single digit. This has the advantage that a transmission error in said particular digit has a small perceptual effect, because the corresponding ternary number differs only slightly. In a preferred embodiment the numerical value of a first codebook entry corresponds to an index of a second codebook entry, and the numerical value of the second codebook entry corresponds to the index of the first codebook entry.

Description: Transmission system using an improved signal encoder and decoder. The present invention is related to a transmission system comprising a transmitter with a signal encoder having an input for a signal to be encoded, said signal encoder comprises a codebook entry selector for selecting a codebook entry for obtaining a synthetic signal giving a best approximation of a signal representative of the input signal, the codebook entry comprises a plurality of samples that can assume more than two values, said codebook entry being identified with a sequence of symbols, the transmitter being arranged for transmitting the sequence of symbols to a receiver, the receiver comprises a decoder with a codebook for deriving the codebook entry from the received sequence of symbols. A prior art transmission system is known from the conference paper "An algorithm for assigning binary indices to the code vectors of a multi-dimensional quantizer" by J. De Marca and N. Jayant published iri the proceedings of the IEEE International Conference on Communications '87(ICC-87), Volume 2, pp. 1128-1132. Such transmission systems are e.g. used in applications in which speech or video signals have to be transmitted over a transmission medium with a limited transmission capacity or have to be stored on storage media with a limited storage capacity. Examples of such applications are the transmission of speech signals over the Internet, the transmission of speech signals from a mobile phone to a base station and vice versa and storage of speech signals on a CD-ROM, in a solid state memory or on a hard disk drive. In a transmission system according to the preamble, the signal to be encoded is compared with a plurality of synthetic signal segments. Each of the synthetic signal segments is derived from one of the codebook entries. The synthetic signal segments can e.g. be obtained by filtering the sequence of samples contained in the codebook entry by means of a synthesis filter. The codebook entry corresponding to the synthetic signal segment which best matches the input signal is encoded and transmitted to the receiver. An alternative possibility is to derive a residual signal from the input signal by means of an analysis filter and to compare the residual signal with each of the codebook entries. The codebook entry best matching the residual signal is encoded and transmitted to the receiver. It is also conceivable that the input signal is directly compared with the codebook entries and that the best matching codebook entry is encoded and transmitted. In the receiver, the received code associated with the codebook entry is decoded and a replica of the input signal is reconstructed. This can be done by applying the plurality of samples to a synthesis filter which has a similar transfer function as the synthesis filter used in the encoder. If an analysis filter is used in the encoder, a synthesis filter is used which has a transfer function which is the inverse of the transfer function of the analysis filter. If no analysis or synthesis filter is used in the encoder, the reconstructed signal is directly derived from the decoded codebook entry. It can happen that due to transmission impairments, the encoded codebook entry is received in error. Consequently, in the receiver a codebook entry different from the codebook entry selected in the encoder will be used for reconstructing the input signal. Using the wrong codebook entry for reconstructing the input signal will in general result in an audible/visible error in the reconstructed signal. In the transmission system according to the above mentioned conference paper it is tried to minimize the effect of transmission errors by assigning to similar codebook entries similar sequences of symbols in such a way that if a transmission error occurs in one of the symbols, the codebook entry corresponding to said erroneously received sequence of symbols differs only slightly from the codebook entry corresponding to the originally transmitted sequence of symbols. In this way it is obtained that the perceptual effect of a transmission error is substantially reduced. The object of the present invention it to provide a transmission system in which the perceptual effect of transmission errors is even more reduced than in the prior art system. To achieve said object the present invention is characterized in that the codebook entries corresponding to sequences of symbols differing in one particular symbol value, differ in one single sample value. This particular symbol value can be the least significant symbol, but it is also possible that it is a symbol at a different position in the sequence of symbols. For the purpose of designing the assignment of sequences of symbols to codebook entries in the prior art system, it is assumed that every symbol in the sequence of symbols can be in error. This assumption results in a non-optimum assignment of codebook entries to sequences of symbols when it is taken into account that the possibility of a transmission error often differs for several symbols. It is possible that an error correcting code is used for a part of the sequence of symbols. It is also possible that hierarchical modulation is used resulting in different error probabilities. By restricting the number of symbols which can be in error, it becomes possible to reduce the difference between the codebook entries. By making codebook entries differing in one single sample to correspond to sequences of symbols differing in one particular symbol value (mostly the most vulnerable one) a near optimum codebook is obtained. An embodiment of the present invention is characterized in that the difference between said sample values of codebook entries corresponding to sequences of symbols differing in one particular symbol value, is equal to a smallest quantization step of said sample value. By choosing the difference between the sample values corresponding to "neighboring" sequences of symbols equal to the smallest quantization step, an optimum codebook with respect to the perceptual effect of a single transmission error is obtained. A further embodiment of the invention is characterized in that the number of possible sample values is odd. It is found that in the case of an odd number of possible values it becomes possible to calculate the mapping between sequences of symbols and the corresponding plurality of samples and its inverse with the same algorithm. This results in a reduced amount of resources required to implement a combination of encoder and decoder, because the resources for performing the codebook related calculation can be shared. If the combination of encoder and decoder is realized by a program running on a programmable processor, the amount of memory to hold the program is reduced. If the combination of encoder and decoder is realized in hardware, the amount of chip area will be reduced because the part for determining the sequence of symbols from the plurality of samples can also be used for determining the plurality of samples from the sequence of symbols. A still further embodiment of the present invention is characterized in that a numerical value associated with a first codebook entry is equal to the numerical value of the sequence of symbols of a second codebook entry, and in that the numerical value associated with the second codebook entry is equal to the numerical value of the sequence of symbols associated with the first codebook entry. According to this aspect of the invention, it becomes possible to determine the index of a given codebook entry by first using said given codebook entry as index to determine a second codebook entry and secondly by using the second codebook entry as index to determine a codebook entry which represents the index of the given codebook entry. The invention will now be explained with reference to the drawings. Fig. 1 shows a transmission system in which the present invention can be used. Fig. 2 shows a speech encoder according to the invention. Fig. 3 shows a speech decoder according to the invention. Fig. 4 shows a flow graph of a program for a programmable processor for converting a sequence of symbols indicating the codebook index into the corresponding plurality of samples. In the transmission system according to Fig. 1 the signal to be transmitted is applied to a source encoder 4 in a transmitter 2. This source encoder 4 encodes the input signals using the present invention as will be explained later. The encoded signal available at the output of the source encoder 4 is applied to an input of a channel encoder 6. The channel encoder 6 encodes a part of the output signal of the source encoder. For use of the present invention it is possible that all bits but one of the sequence of symbols indicating the codebook entry are encoded by the channel encoder 6. For mobile radio transmission systems often convolutional codes are used in the channel encoder 6. The output of the channel encoder 6 is connected to the input of a modulator 8 which modulates the output signal of the channel encoder 6 onto a carrier. Subsequently the modulated signal is amplified and applied to an antenna 10. It is observed that it is possible to apply hierarchical modulation to transmit the sequence of symbols corresponding to the codebook entries. The symbol which, when transmitted erroneously, gives the least perceptual effect is modulated on a sub-constellation which is superimposed on a main constellation. The remaining symbols of the sequence of symbols are modulated on the main constellation. The sub-constellation has a smaller distance between its points than the distance between the points of the main constellation. Consequently, the symbols transmitted on the main constellation are less prone to errors than symbols modulated on the sub-constellation. In a situation where hierarchical modulation is used it is conceivable that the channel encoder can be dispensed with. The signal transmitted by the antenna 10 is received by the antenna 12 and is passed to the receiver 14. In the receiver 14 the antenna signal is demodulated in a demodulator 16. The demodulator 16 passes the demodulated signal to a channel decoder 18. The channel decoder 18 decodes the received signals and corrects errors in them if possible. It is observed that it is possible that some symbols in the received signal are not encoded at all, and consequently they are passed to the output of the channel decoder unchanged. In the case that hierarchical modulation is used, it is also conceivable that the channel encoder 18 can be dispensed with. In the source decoder 20 the input signal of the transmitter 2 is reconstructed. In the source encoder 4 according to Fig. 2 the signal to be encoded is applied to an input of an LPC coefficient calculation block 34 and to an input of a perceptual weighting filter 36. The output of the perceptual weighting filter 36 is connected to a first input of a subtractor 40. An excitation signal generator 22 comprises a fixed codebook which is implemented as a ternary generator 26 and an adaptive codebook 24 in which the most recently used excitation signals are stored. The output signal of the ternary generator 26 represents a plurality of ternary samples, in which each digit of the ternary number represents a ternary sample value. The output of the ternary generator 26 is connected to an input of a code converter 29 which is arranged for converting the ternary value at the output of the ternary generator 26 into a sequence of (binary) symbols for transmission. The output of the ternary generator 26 is also connected to a first input of a multiplier 30, optionally via a zero inserter 27. A signal Go is applied to a second input of the multiplier 30. The output of the multiplier 30 is connected to a first input of an adder 32. The output of the adaptive codebook 24 is connected to a first input of a multiplier 28 and a signal GA is applied to a second input of the multiplier 28. The output of the multiplier 28 is connected to a second input signal of the adder 32. The output of the adder 32 which constitutes also the output of the excitation signal generator 28 is applied to a perceptually weighted synthesis filter 38 which received its filter coefficients from the LPC coefficient calculating block 34. An output of the perceptually weighted synthesis filter 38 is connected to a second input of the subtractor 40. The output of the subtractor 40 is connected to an input of a controller 42. The controller 42 is arranged for finding an excitation signal resulting in a best match between the perceptually weighted speech signal available at the output of the perceptual weighting filter 36 and the perceptually weighted synthetic speech signal which is available at the output of the perceptually weighted synthesis filter 38. The controller 42 first determines the codebook index IA and the codebook gain GA for the adaptive codebook. The adaptive codebook holds the excitation samples applied to the synthesis filter 38 from previous excitation intervals. Due to the periodicity of (voiced) speech signals, it is likely that the best sequence of excitation samples is similar to a sequence of excitation samples present in the adaptive codebook. After the optimum parameters IA and G have been found, the control means 42 continues with searching the optimum excitation parameters of the fixed codebook. The excitation parameters of the fixed codebook are the fixed codebook index Ip and the fixed codebook gain Gp. It is also possible that the excitation signal derived form the fixed codebook is constituted by a grid of excitation pulses having a plurality of excitation signal samples separated by a predetermined amount of zeros. In such a case also the position PH of the excitation samples in the grid has to be determined. The search for the excitation parameters Ip and Gp is performed for each of the possible values of the position PH. The possible sequences of excitation samples are found by using a ternary generator 26 generating said ternary sequence of samples. For each sequence of (ternary) samples the optimum gain is determined. This gain can be determined by trying all possible gain values and selecting the value GF which results in a minimum error between the perceptually weighted speech signal and the perceptually weighted synthetic speech signal. It is also possible to determine the gain factor Gψ by first determining an auxiliary signal by subtracting from the perceptually weighted speech signal the contribution of the adaptive codebook to the perceptually weighted synthetic speech signal. The square of the gain factor Gp can be found by dividing the cross correlation coefficient of the auxiliary signal and a perceptually weighted synthetic speech signal which is subjected to a gain of 1, by the power of said perceptually weighted synthetic speech signal. These ways of determining the gain factor G are well described in the prior art and are as such known to those skilled in the art. In the table below a first example of a fixed codebook is given. In the table the binary sequence of symbols and the corresponding plurality of sample values is given. G(i) represents the sample value as a ternary number and E(i) represents the sample values as they are applied to the synthesis filter. In the codebook according to Table 1, the number of samples in one codebook entry equals to 3. Table 1 In the case four phases PH are possible, the excitation signal can be presented by Table 2 as presented below Table 2 In Table 2 the letter T represents a ternary value (-1, 0, +1) according to Table 1. As stated before, the excitation signals are subsequently generated by a ternary generator. If the mean square error for a particular codebook entry generated by the ternary generator is lower than the mean square error tried before this codebook entry, the ternary count value is temporarily stored in a buffer memory. When all codebook entries have been tried, the buffer memory holds the best ternary count value. From this count value the codebook inverter 29 derives the binary representation to be used for transmission. It is observed that the most right bit of the binary representation according to Table 1 is the least vulnerable, because an error in it causes the ternary value to change only by +1 or -1 at one position. The codebook according to Table 1 has the property according to an aspect of the invention that the binary representation of a first codebook entry G(ij) is equal to a binary sequence of symbols B(i 2 ) representing a second codebook entry G(i 2 ), and that the binary representation of said second codebook entry G(i 2 ) is equal to the binary sequence of symbols B(ij) associated with the first codebook entry G(i]): This property can be utilized for enabling the use of the same table (or algorithm) for encoding and decoding the codebook entry. If e.g. the ternary value G(ij) = 122 in Table 1 is the best codebook entry, the 2 1 0 decimal value associated to it is 1-3 + 2-3 +2-3 = 17 (decimal). The binary representation of 17 (decimal) is 10001. Using this binary value B(i 2 ) to address Table 1, a corresponding ternary value Gfo) of 100 is found. The binary value corresponding to 100 (ternary) is 01001, being equal to the binary value B(iι) corresponding to the codebook entry with ternary value 122. The codebook inverter uses the above mentioned property to determine the sequence of symbols to be transmitted. It only needs the function B(i) → G(i), a function which is also needed in the decoder. Consequently this function can be shared between an encoder and a decoder in a full duplex terminal comprising a transmitter and a receiver. Table 3 Table 3 comprises 243 codebook entries which are addressed by 8 bits indices. It has the same properties with respect to inverse mapping as the codebook according to Table 1. It is observed that fixed codebook sequences can be obtained by concatenating the sequences according to Table 1 and Table 3 once or more than once. In this way codebook entries having an arbitrary number of samples, except 1, 2, 4 and 7 samples, can be realized. This is in particular advatageous for multirate coders. The representation of these codebook entries is simply formed by the concatenation of the correponding 5 bit and 8 bit indices. The excitation parameters IA, GA, IF represented by B(i) and Gp are multiplexed by a multiplexer 44. At the output of the multiplexer 44 the multiplexed signal is available for further encoding by the channel encoder 6 is Fig. 1. In the source decoder 20, according to Fig. 3, the signal received from the channel decoder 18 (Fig. 1) is applied to a demultiplexer 46. The demultiplexer 46 extracts the prediction parameters LPC and the excitation parameters GA, Gp, IA and Ip, the latter being represented by the sequence of symbols B(i). The adaptive codebook index IA is applied to an input of an adaptive codebook 50. The output of the adaptive codebook 50 is applied to a first input of a multiplier 54. The adaptive codebook gain GA is applied to a second input of the multiplier 54. The output of the multiplier 54 is connected to a first input of an adder 58. The fixed codebook index IF, represented by the sequence of symbols B(i), is applied to an input of a fixed codebook 52 having codebook entries according to the present invention. The output of the codebook 52 is connected to a first input of a multiplier 56. The fixed codebook gain GA is applied to a second input of the multiplier 56. The output of the multiplier 56 is connected to a second input of the adder 58. At the output of the adder 58 the excitation signal for a synthesis filter 60 is available. The excitation signal is also applied to an input of the adaptive codebook in which the most recent excitation samples are written and from which the least recent excitation samples are removed. The synthesis filter 60 derives a synthetic speech signal from the excitation signal available at the output of the adder 58. To do so the synthesis filter 60 receives the LPC parameters LPC from the demultiplexer 46. In the flow graph according to Fig. 4 the numbered instructions have the following meaning: Nr. inscription meaning 62 BEGIN The program is started. N-l 64 L:=N; MSD:=M ; K:=I; G:=0 The running variable L is set to the number of excitation samples N. The value of the Most Significant Digit (MSD) under consideration is set N-l to M . The variable K is set to the index I. The intermediate result G is set to 0 66 L ≠ 1 ? It is checked whether L differs from 1. 68 QUOT - KDIV MSD; The variables QUOT and REM are calculated REM := K MOD MSD; from K , and MSD. G := M*G + QUOT The intermediate result G is recalculated. 70 ODD( QUOT ) ? It is checked whether the variable QUOT is odd. 72 K := MSD - 1 - REM The new value of the variable K is calculated for K is odd. 74 K := REM The new value of the variable K is calculated for K is even. 76 MSD:=MSD/QUOT The new values of L, G and MSD are calculated. L := L - 1 78 G_OUT=QUOT*G+K The final value G_OUT of the codebook entry is calculated. 80 END The program is terminated. The program according to the flow graph of Fig. 4 is arranged for calculating the plurality of excitation samples for a given value of the index i. It is observed that the binary representation of i is transmitted. The plurality of excitation samples is represented by an M-ary number G(i,N) of which the digits represent the excitation samples. N is the number of samples and consequently the number of digits in the M-ary number. The calculation of G(i,N) is based on a recursive definition of G(i,N). If each codebook entry comprises N samples, the codebook can be represented as a set of L=M vectors sequences of samples xo, xi, x ∑ , ,XL-2, XL-I- The codebook can be extended by one sample value to N+l samples, by adding digits to the different vectors according to: Oxo, Oxi, ".OXL-2. 0XL-I, 1XL-I,1XL-2, • , lxι, lxo, 2 o, 2x x , •• , 2x L . 2 , 2x L (in case of a ternary codebook) . For N is equal to 1, the function G(i, N) is equal to i. For i larger than N, i is decomposed into the sum of a quotient q of i and the value M " of the N digit of G, and a remainder r. This decomposition is performed for all values of N for which i is smaller or equal to M -1. From q the value G(i,N) is calculated according to: q - M N_1 + G(i-q -M N_1 ,n- l); q is even ( A ) G(i,N) q - M N_1 + G((q + 1) - M N_1 - i - l,n- l); q is odd The program according to Fig. 4 determines the value of G(i,N) in a recursive way from i. The program starts at instruction 62. In instruction 64 an variable L is set to N. The value of the N-l most significant digit MSD is made equal to M . The value of variable K is set to the value of the index i of the function G(i,N) to be calculated. The variable G is set to 0. In instruction 66 it is checked whether L is unequal to 1. If L is unequal to 1 the calculations are continued with instruction 68. In instruction 68 first the quotient QUOT of K and MSD is determined. This corresponds to the determination of the most significant digit of K. Subsequently the remainder REM of the division of K by MSD is determined. This corresponds to the determination of the value represented by the remaining digits of K. Finally an intermediate value of G is determined by multiplying the previous value of G by M and adding the value of QUOT to G. In instruction 70 it is checked whether the quotient QUOD is even or odd. In the case QUOD is even, the value of K is made equal to the remainder REM. In the case QUOD is odd, the value of K is made equal to MSD- 1 -REM. This different way K is calculated for even and odd values of QUOD is caused by the ordering of the values of G as function of the index i. From Table 1 it can be seen that the value of the most significant digit of G but one increases as function of i for even values of the most significant digit of G. The value of the most significant digit of G but one decreases as function of i for odd values of the most significant digit of G. In instruction 76 first the value of MSD is divided by M in order to prepare for the repetition of the previous calculations for the most significant digit of I but one. Subsequently the value of L is decremented and the program is continued at instruction 66. In this way all digits of I are converted to the codebook entry represented by G. If L is equal to 1, the process of converting is finalized, and in instruction 78 the final value of G is calculated by multiplying the value of G found by the previous calculations by M and adding the value of K. In instruction 80 the program is terminated. Before the codebook entry calculated according to the above program is applied to a synthesis filter it has to be converted into an M-ary representation. As mentioned before, the algorithm according to the program shown in Fig. 4 can also be used to find the index i from a given codebook entry. In order to do so, the program has first to be called with the codebook entry as input. Subsequently the program has to be called again but now with using the result of the first call of the program as input. The index i is now found by converting the result of the second call of the program into a binary number.

Claims: CLAIMS: 1. Transmission system comprising a transmitter with a signal encoder having an input for a signal to be encoded, said signal encoder comprises a codebook entry selector for selecting a codebook entry for obtaining a synthetic signal giving a best approximation of a signal representative of the input signal, the codebook entry comprises a plurality of samples that can assume more than two values, said codebook entry being identified with a sequence of symbols, the transmitter being arranged for transmitting the sequence of symbols to a receiver, the receiver comprises a decoder with a codebook for deriving the codebook entry from the received sequence of symbols characterized in that the codebook entries corresponding to sequences of symbols differing in one particular symbol value, differ in one single sample value. 2. Transmission system according to claim 1, characterized in that the difference between said sample values of codebook entries corresponding to sequences of symbols differing in one particular symbol value, is equal to a smallest quantization step of said sample value. 3. Transmission system according to claim 1 or 2, characterized in that the number of possible sample values is odd. 4. Transmission system according to claim 3, characterized in that a numerical value associated with a first codebook entry is equal to the numerical value of the sequence of symbols of a second codebook entry, and in that the numerical value associated with the second codebook entry is equal to the numerical value of the sequence of symbols associated with the first codebook entry. 5. Transmitter with a signal encoder having an input for a signal to be encoded, said signal encoder comprises a codebook entry selector for selecting a codebook entry for obtaining a synthetic signal giving a best approximation of a signal representative of the input signal, the codebook entry comprises a plurality of samples that can assume more than two values, said codebook entry being identified with a sequence of symbols, the transmitter being arranged for transmitting the sequence of symbols characterized in that the codebook entries corresponding to sequences of symbols differing in one particular symbol value, differ in one single sample value. 6. Receiver for receiving an encoded signal comprising a sequence of symbols representative of a codebook entry comprising a plurality of samples that can assume more than two values, the receiver comprises a decoder with a codebook for deriving the codebook entry from the received sequence of symbols characterized in that the codebook entries corresponding to sequences of symbols differing in one particular symbol value, differ in one single sample value. 7. Signal encoder having an input for a signal to be encoded, said signal encoder comprises a codebook entry selector for selecting a codebook entry for obtaining a synthetic signal giving a best approximation of a signal representative of the input signal, the codebook entry comprises a plurality of samples that can assume more than two values, said codebook entry being identified with a sequence of symbols, characterized in that the codebook entries corresponding to sequences of symbols differing in one particular symbol value, differ in one single sample value. 8. Decoder for decoding an encoded signal comprising a sequence of symbols representative of a codebook entry comprising a plurality of samples that can assume more than two values, the receiver comprises a decoder with a codebook for deriving the codebook entry from the received sequence of symbols characterized in that the codebook entries corresponding to sequences of symbols differing in one particular symbol value, differ in one single sample value. 9. Transmission method comprising selecting a codebook entry for obtaining a synthetic signal giving a best approximation of a signal representative of the input signal, the codebook entry comprises a plurality of samples that can assume more than two values, said codebook entry being identified with a sequence of symbols, the method further comprises transmitting the sequence of symbols over a transmission medium, the method further comprises receiving the sequence of symbols from the transmission medium and deriving the codebook entry from the received sequence of symbols characterized in that the codebook entries corresponding to sequences of symbols differing in one particular symbol value, differ in one single sample value. 10. Encoding method comprising selecting a codebook entry for obtaining a synthetic signal giving a best approximation of a signal representative of the input signal, the codebook entry comprises a plurality of samples that can assume more than two values, said codebook entry being identified with a sequence of symbols, characterized in that the codebook entries corresponding to sequences of symbols differing in one particular symbol value, differ in one single sample value. 11. Decoding method for decoding an encoded signal comprising a sequence of symbols representative of a codebook entry comprising a plurality of samples that can assume more than two values, the decoding method comprises deriving the codebook entry from the received sequence of symbols characterized in that the codebook entries corresponding to sequences of symbols differing in one particular symbol value, differ in one single sample value.

Inventors: GERRITS ANDREAS J, SLUIJTER ROBERT J, TOLHUIZEN LUDOVICUS M G M, GERRITS, ANDREAS, J., SLUIJTER, ROBERT, J., TOLHUIZEN, LUDOVICUS, M., G., M.
Applicants: KONINKL PHILIPS ELECTRONICS NV, PHILIPS SVENSKA AB, KONINKLIJKE PHILIPS ELECTRONICS N.V., PHILIPS AB
Application year: 1999
Main classification: G10L9
IPC codes: G10L11, G10L19, H03M7