SPEECH ENCODING SYSTEM

Abstract: Foe executing the code excitation linear prediction (CELP) coding, for example, α-parameters are taken out from the input speech signal by a linear prediction coding (LPC) analysis circuit 12. The α-parameters are then converted by an α-parameter to LSP converting circuit 13 into linear spectral pair (LSP) parameters and a vector of these line spectral pair (LSP) parameters is vector-quantized by a quantizer 14. The changeover switch 16 is controlled depending upon the pitch value detected by a pitch detection circuit 22 for selecting and using one of the codebook 15M for male voice and the codebook 15F for female voice for improving quantization characteristics without increasing the transmission bit rate.

Description: Technical Field This invention relates to a speech encoding method for encoding short-term prediction residuals or parameters representing short-term prediction coefficients of the input speech signal by vector or matrix quantization. Background Art There are a variety of encoding methods known for encoding the audio signal, inclusive of the speech signal and the acoustic signal, by exploiting statistic properties of the audio signal in the time domain and in the frequency domain and psychoacoustic characteristics of the human hearing system. These encoding methods may be roughly classified into encoding on the time domain, encoding on the frequency domain and analysis/ synthesis encoding. If, in multi-band excitation (MBE), single-band excitation (SBE), harmonic excitation, sub-band coding (SBC), linear predictive coding (LPC), discrete cosine transform (DCT), modified DCT (MDCT) or fast Fourier transform (FFT), as examples of high-efficiency coding for speech signals, various information data, such as spectral amplitudes or parameters thereof, such as LSP parameters, α-parameters or k-parameters, are quantized, scalar quantization has been usually adopted. If, with such scalar quantization, the bit rate is decreased to e.g. 3 to 4 kbps to further increase the quantization efficiency, the quantization noise or distortion is increased, thus raising difficulties in practical utilization. Thus it is currently practiced to group different data given for encoding, such as time-domain data, frequency-domain data or filter coefficient data, into a vector, or to group such vectors across plural frames, into a matrix, and to effect vector or matrix quantization, in place of individually quantizing the different data. For example, in code excitation linear prediction (CELP) encoding, LPC residuals are directly quantized by vector or matrix quantization as time-domain waveform. In addition, the spectral envelope in MBE encoding is similarly quantized by vector or matrix quantization. If the bit rate is decreased further, it becomes infeasible to use enough bits to quantize parameters specifying the envelope of the spectrum itself or the LPC residuals, thus deteriorating the signal quality. A speech encoder is disclosed in EP-A-0607989, whereby a selection means selects by the use of a cumulative pitch prediction error power one of a plurality of codebooks for quantizing short-term prediction coefficients of a speech signal. In view of the foregoing, it is an object of the present invention to provide a speech encoding method capable of affording satisfactory quantization characteristics even with a smaller number of bits. Disclosure of the Invention According to a first aspect of the invention there is provided a speech encoding device comprising: short-term prediction means for generating short-term prediction coefficients based on input speech signals; a plurality of codebooks formed by assorting parameters specifying the short-term prediction coefficients with respect to reference parameters, said reference parameters being the combination of one or more of a plurality of characteristic parameters of speech signals; selection means for selecting one of said codebooks in relation to said reference parameters of said input speech signals; and quantization means for quantizing said short-term prediction coefficients by referring to the codebook selected by said selection means; wherein an excitation signal is optimized using a quantized value from said quantization means; characterized in that: said characteristic parameters include a pitch value of speech signals, pitch strength, frame power, a voice/unvoiced discrimination flag and the gradient of the signal spectrum. The first aspect of the invention further provides a speech encoding method comprising: generating short-term prediction coefficients based on input speech signals; providing a plurality of codebooks formed by assorting parameters specifying the short-term prediction coefficients with respect to reference parameters, said reference parameters being the combination of one or more of characteristic parameters of speech signals; selecting one of said codebooks in relation to said reference parameters of said input speech signals; quantizing said short-term prediction coefficients by referring to the selected codebook; and optimizing an excitation signal using a quantized value of said short-term prediction coefficients; characterised in that said characteristic parameters include a pitch value of speech signals, pitch strength, frame power, a voice/unvoiced discrimination flag and the gradient of the signal spectrum. According to a second aspect of the present invention there is provided a speech encoding device comprising: short-term prediction means for generating short-term prediction coefficients based on input speech signals; a first plurality of codebooks formed by assorting parameters specifying the short-term prediction coefficients with respect to reference parameters, said reference parameters being the combination of one or more of characteristic parameters of speech signals; selection means for selecting one of said codebooks in relation to said reference parameters of said input speech signals; and quantization means for quantizing said short-term prediction coefficients by referring to the codebook selected by said selection means; a second plurality of codebooks formed on the basis of training data assorted with respect to reference parameters, said reference parameters being the combination of one or more of characteristic parameters of speech signals, one of said second. plurality of codebooks being selected with the selection of the codebook of the first plurality of codebooks; and synthesis means for synthesizing, on the basis of the quantized value from said quantization means, an excitation signal related to outputting of the selected codebook of said second plurality of codebooks: said excitation signal being optimized responsive to an output of said synthesis means; characterized in that: said characteristic parameters include a pitch value of speech signals, pitch strength, frame power, a voice/unvoiced discrimination flag and the gradient of the signal spectrum. The second aspect of the invention further provides a speech encoding method comprising: generating short-term prediction coefficients based on input speech signals; providing a first plurality of codebooks formed by assorting parameters specifying the short-term prediction coefficients with respect to reference parameters, said reference parameters being the combination of one or more of characteristic parameters of speech signals; selecting one of said first plurality of codebooks in relation to said reference parameters of said input speech signals; quantizing said short-term prediction coefficients by referring to the selected codebook: providing a second plurality of codebooks formed on the basis of training data assorted with respect to reference parameters, said reference parameters being the combination of one or more of characteristic parameters of speech signals, one of said second plurality of codebooks being selected with selection of the codebook of the first plurality of codebooks; and synthesizing, on the basis of the quantized value of said short-term prediction coefficients, an excitation signal related to outputting of the selected codebook of said second plurality of codebooks for optimizing said excitation signal; characterized in that: said characteristic parameters include a pitch value of speech signals, pitch strength, frame power, a voice/unvoiced discrimination flag and the gradient of the signal spectrum. Brief Description of the Drawings Fig. 1 is a schematic block diagram showing a speech encoding device (encoder) as an illustrative example of a device for carrying out the speech encoding method according to the present invention. Fig.2 is a circuit diagram for illustrating a smoother that may be employed for a pitch detection circuit shown in Fig.1. Fig.3 is a block diagram for illustrating the method for forming a codebook (training method) employed for vector quantization. Best Mode for Carrying out the Invention Preferred embodiments of the present invention will be hereinafter explained. Fig.1 is a schematic block diagram showing the constitution for carrying out the speech encoding method according to the present invention. In the present speech signal encoder, the speech signals supplied to an input terminal 11 are supplied to a linear prediction coding (LPC) analysis circuit 12, a reverse-filtering circuit 21 and a perceptual weighting filter calculating circuit 23. The LPC analysis circuit 12 applies a Hamming window to an input waveform signal, with a length of the order of 256 samples of the input waveform signal as a block, and calculates linear prediction coefficients or α-parameters by the auto-correlation method. The frame period, as a data outputting unit, is comprised e.g., of 160 samples. If the sampling frequency fs is e.g., 8 kHz, the frame period is equal to 20 msec. The α-parameters from the LPC analysis circuit 12 are supplied to an α to LSP converting circuit 13 for conversion to line spectral pair (LSP) parameters. That is, the α-parameters, found as direct-type filter coefficients, are converted into e.g., ten, that is five pairs of, LSP parameters. This conversion is carried out using e.g., the Newton-Raphson method. The reason the α-parameters are converted into the LSP parameters is that the LSP parameters are superior to the α-parameters in interpolation characteristics. The LSP parameters from the α to LSP conversion circuit 13 are vector-quantized by an LSP vector quantizer 14. At this time, the inter-frame difference may be first found before carrying out the vector quantization. Alternatively, plural LSP parameters for plural frames are grouped together for carrying out the matrix quantization. For this quantization, 20 msec corresponds to one frame, and the LSP parameters calculated every 20 msecs are quantized by vector quantization. For carrying out the vector quantization or matrix quantization, a codebook for male 15M or a codebook for female 15F is used by switching between them with a changeover switch 16, in accordance with the pitch. A quantization output of the LSP vector quantizer 14, that is the index of the LSP vector quantization, is provided, and the quantized LSP vectors are processed by a LSP to a conversion circuit 17 for conversion of the LSP parameters to the α-parameters as coefficients of the direct type filter. Based upon the output of the LSP to a conversion circuit 17, filter coefficients of a perceptual weighting synthesis filter 31 for code excitation linear prediction (CELP) encoding are calculated. An output of a so-called dynamic codebook (pitch codebook, also called an adaptive codebook) 32 for code excitation linear prediction (CELP) encoding is supplied to an adder 34 via a coefficient multiplier 33 designed for multiplying a gain g 0 . On the other hand, an output of a so-called stochastic codebook (noise codebook, also called a probabilistic codebook) is supplied to the adder 34 via a coefficient multiplier 36 designed for multiplying a gain g 1 . A sum output of the adder 34 is supplied as an excitation signal to the perceptual weighting synthesis filter 31. In the dynamic codebook 32 are stored past excitation signals. These excitation signals are read out at a pitch period and multiplied by the gain g 0 . The resulting product signal is summed by the adder 34 to a signal from the stochastic codebook 35 multiplied by the gain g 1 . The resulting sum signal is used for exciting the perceptual weighting synthesis filter 31. In addition, the sum output from the adder 34 is fed back to the dynamic codebook 32 to form a sort of an IIR filter. The stochastic codebook 35 is configured so that the changeover switch 35S switches between the codebook 35M for male voice and the codebook 35F for female voice to select one of the codebooks. The coefficient multipliers 33, 36 have their respective gains g 0 , g 1 controlled responsive to outputs of the gain codebook 37. An output of the perceptual weighting synthesis filter 31 is supplied as a subtraction signal to an adder 38. An output signal of the adder 38 is supplied to a waveform distortion (Euclid distance) minimizing circuit 39. Based upon an output of the waveform distortion minimizing circuit 39, signal readout from the respective codebooks 32, 35 and 37 is controlled for minimizing an output of the adder 38, that is the weighted waveform distortion. In the reverse-filtering circuit 21, the input speech signal from the input terminal 11 is back-filtered by the α-parameter from the LPC analysis circuit 12 and supplied to a pitch detection circuit 22 for pitch detection. The changeover switch 16 or the changeover switch 35S is changed over responsive to the pitch detection results from the pitch detection circuit 22 for selective switching between the codebook for male voice and the codebook for female voice. In the perceptual weighting filter calculating circuit 23, perceptual weighting filter calculation is carried out on the input speech signal from the input terminal 11 using an output of the LPC analysis circuit 12. The resulting perceptual weighted signal is supplied to an adder 24 which is also fed with an output of a zero input response circuit 25 as a subtraction signal. The zero input response circuit 25 synthesizes the response of the previous frame by a weighted synthesis filter and outputs a synthesized signal. This synthesized signal is subtracted from the perceptual weighted signal for canceling the filter response of the previous frame remnant in the perceptual weighting synthesis filter 31 for producing a signal required as a new input for a decoder. An output of the adder 24 is supplied to the adder 38 where an output of the perceptual weighting synthesis filter 31 is subtracted from the addition output. In the above-described encoder, assuming that an input signal from the input terminal 11 is x(n), the LPC coefficients, i.e. α-parameters, are α i and the prediction residuals are res(n). With the number of orders for analysis of P, 1 ≤ i ≤ P. The input signal x(n) is back-filtered by the reverse-filtering circuit 21 in accordance with the equation (1): for finding the prediction residuals(n) in a range e.g., of 0 ≤ n ≤ N-1, where N denotes the number of samples corresponding to the frame length as an encoding unit. For example, N=160. Next, in the pitch detection circuit 22, the prediction residual res(n) obtained from the reverse-filtering circuit 21 is passed through a low-pass filter (LPF) for deriving resl(n). Such an LPF usually has a cut-off frequency fc of the order of 1 kHz in the case of the sampling clock frequency fs of 8 kHz. Next, the auto-correlation function Φ resl (n) of resl(n) is calculated in accordance with the equation (2): where L min ≤ i <L max . Usually, L min is equal to 20 and L max is equal to 147 approximately. The pitch as found by tracking the number i which gives a peak value of the auto-correlation function Φ resl (i) or the number i which gives a peak value by suitable processing is employed as the pitch for the current frame. For example, assuming that the pitch, more specifically, the pitch lag, of the k'th frame, is P(k). On the other hand, pitch reliability or pitch strength is defined by the equation (3): Pl ( k ) =  resl ( P ( k ))/  resl (0) That is, the strength of the auto-correlation, normalized by Φ res1 (0), is defined as above. In addition, with the usual code excitation linear prediction (CELP) coding, the frame power R 0 (k) is calculated by the equation (4): where k denotes the frame number. Depending upon the values of the pitch lag P(k), pitch strength Pl(k) and the frame power R 0 (k), the quantization table for {α i } or the quantization table formed by converting the α-parameters into line spectral pairs (LSPs) are changed over between the codebook for male voice and the codebook for female voice. In the embodiment of Fig.1, the quantization table for the vector quantizer 14 used for quantizing the LSPs is changed over between the codebook for male voice 15M and the codebook for female voice 15F. For example, if P th denotes the threshold value of the pitch lag P(k) used for making distinction between the male voice and the female voice, and Pl th and R 0th denote respective threshold values of the pitch strength Pl(k) for discriminating pitch reliability and the frame power R 0 (k), (i) a first codebook, e.g., the codebook for male voice 15M, is used for P(k) ≥ P th , Pl(k) > Pl th and R 0 (k) > R 0th ; (ii) a second codebook, e.g., the codebook for female voice 15F, is used for P(k) ≤ P th , Pl(k) > Pl th and R 0 (k) > R 0th ; and (iii) a third codebook is used otherwise. Although a codebook different from the codebook 35M for male voice and the codebook 35F for female voice may be employed as the third codebook, it is also possible to employ the codebook 35M for male voice or the codebook 35F for female voice as the third codebook. The above threshold values may be exemplified e.g., by P th = 45, Pl th = 0.7 and R 0 (k) = (full scale - 40 dB). Alternatively, the codebooks may be changed over by preserving past n frames of the pitch lags P(k), finding a mean value of P(k) over these n frames and discriminating the mean value with the pre-set threshold value P th . It is noted that these n frames are selected so that Pl(k) > Pl th , and R 0 (k) > R 0th ., that is so that the frames are voiced frames and exhibit high pitch reliability. Still alternatively, the pitch lag P(k) satisfying the above condition may be supplied to the smoother shown in Fig.2 and the resulting smoothed output may be discriminated by the threshold value P th for changing over the codebooks. It is noted that an output of the smoother of Fig.2 is obtained by multiplying the input data with 0.2 by a multiplier 41 and summing the resulting product signal by an adder 44 to an output data delayed by one frame by a delay circuit 42 and multiplied with 0.8 by a multiplier 43. The output state of the smoother is maintained unless the pitch lag P(k), the input data, is supplied. In combination with the above-described switching, the codebooks may also be changed over depending upon the voiced/unvoiced discrimination, the value of the pitch strength Pl(k) or the value of the frame power R 0 (k). In this manner, the mean value of the pitch is extracted from the stable pitch section and discrimination is made as to whether or not the input speech is the male speech or the female speech for switching between the codebook for male voice and the codebook for female voice. The reason is that, since there is deviation in the frequency distribution of the formant of the vowel between the male voice and the female voice, the space occupied by the vectors to be quantized is decreased, that is, the vector variance is diminished, by switching between the male voice and the female voice especially in the vowel portion, thus enabling satisfactory training, that is learning to reduce the quantization error. It is also possible to change over the stochastic codebook in CELP coding in accordance with the above conditions. In the embodiment of Fig.1, the changeover switch 35S is changed over in accordance with the above conditions for selecting one of the codebook 35M for male voice and the codebook 35F for female voice as the stochastic codebook 35. For codebook learning, training data may be assorted under the same standard as that for encoding/decoding so that the training data will be optimized under e.g., the so-called LBG method. That is, referring to Fig.3, signals from a training set 51, made up of speech signals for training, continuing for e.g., several minutes, are supplied to a line spectral pair (LSP) calculating circuit 52 and a pitch discriminating circuit 53. The LRP calculating circuit 52 is equivalent to e.g., the LPC analysis circuit 12 and the α to LSP converting circuit 13 of Fig.1, while the pitch discriminating circuit 53 is equivalent to the back filtering circuit 21 and the pitch detection circuit 22 of Fig.1. The pitch discrimination circuit 53 discriminates the pitch lag P(k), pitch strength Pl(k) and the frame power R 0 (k) by the above-mentioned threshold values P th , Pl th and R 0th for case classification in accordance with the above conditions (i), (ii) and (iii). Specifically, discrimination between at least the male voice under the condition (i) and the female voice under the condition (ii) suffices. Alternatively, the pitch lag values P(k) of past n voiced frames with high pitch reliability may be preserved and a mean value of the P(k) values of these n frames may be found and discriminated by the threshold value P th . An output of the smoother of Fig.2 may also be discriminated by the threshold value P th . The LSP data from the LSP calculating circuit 52 are sent to a training data assorting circuit 54 where the LSP data are assorted into training data for male voice 55 and into training data for female voice 56 in dependence upon the discrimination output of the pitch discrimination circuit 53. These training data are supplied to training processors 57, 58 where training is carried out in accordance with e.g., the so-called LBG method for formulating the codebook 35M for male voice and the codebook 35F for female voice. The LBG method is a method for codebook training proposed in Linde, Y., Buzo, A. and Gray, R.M., "An Algorithm for vector Quantizer Design", in IEEE Trans. Comm., COM-28, pp. 84 to 95, Jan. 1980. Specifically, it is a technique of designing a locally optimum vector quantizer for an information source, whose probabilistic density function has not been known, with the aid of a so-called training string. The codebook 15M for male voice and the codebook 15F for female voice, thus formulated, are selected by switching the changeover switch 16 at the time of vector quantization by the vector quantizer 14 shown in Fig.1. This changeover switch 16 is controlled for switching in dependence upon the results of discrimination by the pitch detection circuit 22. The index information, as the quantization output of the vector quantizer 14, that is the codes of the representative vectors, are outputted as data to be transmitted, while the quantized LSP data of the output vector is converted by the LSP to a converting circuit 17 into α-parameters which are fed to a perceptual weighing synthesis filter 31. This perceptual weighing synthesis filter 31 has characteristics 1/A(z) as shown by the following equation (5): where W(z) denotes perceptual weighting characteristics. Among data to be transmitted in the above-described CELP encoding, there are the index information for the dynamic codebook 32 and the stochastic codebook 35, the index information of the gain codebook 37 and the pitch information of the pitch detection circuit 22, in addition to the index information of the representative vectors in the vector quantizer 14. Since the pitch values or the index of the dynamic codebook are parameters inherently required to be transmitted, the quantity of the transmitted information or the transmission rate is not increased. However, if the parameters not to be inherently transmitted, such as the pitch information, is to be used as reference basis for switching between the codebook for male voice and that for female voice, it is necessary to transmit separate code switching information. It is noted that discrimination between the male voice and the female voice need not be coincident with the sex of the speaker provided that the codebook selection has been made under the same standard as that for assortment of the training data. Thus the appellation of the codebook for male voice and the codebook for female voice is merely the appellation for convenience. In the present embodiment, the codebooks are changed over depending upon the pitch value by exploiting the fact that correlation exists between the pitch value and the shape of the spectral envelope. The present invention is not limited to the above embodiments. Although each component of the arrangement of Fig.1 is stated as hardware, it may also be implemented by a software program using a so-called digital signal processor (DSP). The low-range side codebook of band-splitting vector quantization or the partial codebook such as a codebook for a part of the multistage vector quantization may be switched between plural codebooks for male voice and for female voice. In addition, matrix quantization may also be executed in place of vector quantization by grouping data of plural frames together. In addition, the speech encoding method according to the present invention is not limited to the linear prediction coding method employing code excitation but may also be applied to a variety of speech encoding methods in which the voiced portion is synthesized by sine wave synthesis and the non-voiced portion is synthesized based upon the noise signal. As for the usage, the present invention is not limited to transmission or recording/reproduction but may be applied to a variety of usages, such as pitch conversion speech modification, regular speech syntheses or noise suppression. Industrial Applicability As will be apparent from the foregoing description, a speech encoding method according to the present invention is claimed in appended claims 1-20 provides a first codebook and a second codebook formed by assorting parameters representing short-term prediction values concerning a reference parameter comprised of one or a combination of a plurality of characteristic parameters of the input speech signal. The short-term prediction values are then generated based upon an input speech signal and one of the first and second codebooks is selected in connection with the reference parameter of the input speech signal. The short-term prediction values are encoded by having reference to the selected codebook for encoding the input speech signal. This improves the quantization efficiency. For example, the signal quality may be improved without increasing the transmission bit rate or the transmission bit rate may be lowered further while suppressing deterioration in the signal quality.

Claims: A speech encoding device comprising: short-term prediction means (12) for generating short-term prediction coefficients based on input speech signals; a plurality of codebooks (15M, 15F) formed by assorting parameters . specifying the short-term prediction coefficients with respect to reference parameters, said reference parameters being the combination of one or more of a plurality of characteristic parameters of speech signals; selection means (22) for selecting one of said codebooks (15M, 15F) in relation to said reference parameters of said input speech signals; and quantization means (14) quantizing said short-term prediction coefficients by referring to the codebook selected by said selection means; wherein an excitation signal is optimized using a quantized value from said quantization means; characterised in that : said characteristic parameters include a pitch value of speech signals, pitch strength, frame power, a voice/unvoiced discrimination flag and the gradient of the signal spectrum. The speech encoding device as claimed in claim 1 wherein said quantization means (14) vector-quantizes said short-term prediction coefficients. The speech encoding device as claimed in claim 1 wherein said quantization means (14) matrix-quantizes said short-term prediction coefficients. The speech encoding device as claimed in claim 1 wherein said reference parameter is a pitch value of speech signals, said selection means (22) selects one of said codebooks (15M, 15F) responsive to the relative magnitude of the pitch value of said input speech signals and a pre-set pitch value. The speech encoding device as claimed in claim 1 wherein said codebooks include a codebook for a male voice (15M) and a codebook for a female voice (15F). A speech encoding method comprising: generating short-term prediction coefficients based on input speech signals; providing a plurality of codebooks (15M, 15F) formed by assorting parameters specifying the short-term prediction coefficients with respect to reference parameters, said reference parameters being the combination of one or more of characteristic parameters of speech signals; selecting one of said codebooks in relation to said reference parameters of said input speech signals; quantizing said short-term prediction coefficients by referring to the selected codebook; and optimizing an excitation signal using a quantized value of said short-term prediction coefficients, characterised in that said characteristic parameters include a pitch value of speech signals, pitch strength, frame power, a voice-unvoiced discrimination flag and the gradient of the signal spectrum. The speech encoding method as claimed in claim 6 wherein said short-term prediction coefficients are vector-quantized for encoding the input speech signals. The speech encoding method as claimed in claim 6 wherein said short-term prediction coefficients are matrix-quantized for encoding the input speech signals. The speech encoding method as claimed in claim 6 wherein said reference parameter is a pitch value of speech signals and wherein one of said codebooks is selected responsive to the relative magnitude of the pitch value of said input speech signals and a pre-set pitch value. The speech encoding method as claimed in claim 6 wherein said codebooks (15M, 15F) include a codebook for a male voice (15M) and a codebook for a female voice (15F). A speech encoding device comprising: short-term prediction means (12) for generating short-term prediction coefficients based on input speech signals; a first plurality of codebooks (15M, 15F) formed by assorting parameters specifying the short-term prediction coefficients with respect to reference parameters, said reference parameters being the combination of one or more of characteristic parameters of speech signals; selection means (22) for selecting one of said codebooks (15M, 15F) in relation to said reference parameters of said input speech signals; and quantization means (14) for quantizing said short-term prediction coefficients by referring to the codebook selected by said selection means; a second plurality of codebooks (35M, 35F) formed on the basis of training data assorted with respect to reference parameters, said reference parameters being the combination of one or more of characteristic parameters of speech signals, one of said second plurality of codebooks being selected with the selection of the codebook of the first plurality of codebooks; and synthesis means (31) for synthesizing, on the basis of the quantized value from said quantization means (14), an excitation signal related to outputting of the selected codebook of said second plurality of codebooks (35M, 35F): said excitation signal being optimized responsive to an output of said synthesis means, characterised in that : said characteristic parameters include a pitch value of speech signals, pitch strength, frame power, a voice/unvoiced discrimination flag and the gradient of the signal spectrum. The speech encoding device as claimed in claim 11 wherein said quantization means (14) vector-quantizes said short-term prediction coefficients. The speech encoding device as claimed in claim 11 wherein said quantization means (14) matrix-quantizes said short-term prediction coefficients. The speech encoding device as claimed in claim 11 wherein said reference parameter is a pitch value of speech signals and wherein said selection means selects one of said first plurality of codebooks (15M, 15F) responsive to the relative magnitude of the pitch value of said input speech signals and a pre-set pitch value. The speech encoding device as claim in claim 11 wherein each of said first plurality of codebooks (15M, 15F) and said second plurality of codebooks (35M, 35F) includes a codebook for a male voice (15M, 35M) and a codebook for a female voice (15F, 35F). A speech encoding method comprising: generating short-term prediction coefficients based on input speech signals; providing a first plurality of codebooks (15M, 15F) formed by assorting parameters specifying the short-term prediction coefficients with respect to reference parameters, said reference parameters being the combination of one or more of characteristic parameters of speech signals; selecting one of said first plurality of codebooks (15M, 15F) in relation to said reference parameters of said input speech signals; quantizing said short-term prediction coefficients by referring to the selected codebook: providing a second plurality of codebooks (35M, 35F) formed on the basis of training data assorted with respect to reference parameters, said reference parameters of speech signals, one of said second plurality of codebooks being selected with selection of the codebook of the first plurality of codebooks; and synthesizing, on the basis of the quantized value of said short-term prediction coefficients, an excitation signal related to outputting of the selected codebook of said second plurality of codebooks (35M, 35F) for optimizing said excitation signal; characterised in that : said characteristic parameters include a pitch value of speech signals, pitch strength, frame power, a voice/unvoiced discrimination flag and the gradient of the signal spectrum. The speech encoding method as claimed in claim 16 wherein said short-term prediction coefficients are vector-quantized for encoding the input speech signals. The speech encoding method as claim in claim 16 wherein said short-term prediction coefficients are matrix-quantized for encoding the input speech signals. The speech encoding method as claimed in claim 16 wherein said reference parameter is a pitch value of speech signals and wherein one of said first plurality of codebooks (15M, 15F) is selected responsive to the relative magnitude of the pitch value of said input speech signals and a pre-set pitch value. The speech encoding method as claimed in claim 16 wherein each of said first plurality of codebooks (15M, 15F) and said second plurality of codebooks (35M, 35F) includes a codebook for a male voice (15M, 35M) and a codebook for a female voice (15F, 35F).

Inventors: NISHIGUCHI MASAYUKI, NISHIGUCHI, MASAYUKI, NISHIGUCHI, MASAYUKI SONY CORPORATION
Applicants: SONY CORP, SONY CORPORATION
Application year: 1995
Main classification: G10L19
IPC codes: G10L19, G10L11, H03M7