Method for speech coding, method for speech decoding and their apparatuses
View Patent ↗A high quality speech is reproduced with a small data amount in speech coding and decoding for performing compression coding and decoding of a speech signal to a digital signal. In speech coding method according to a code-excited linear prediction (CELP) speech coding, a noise level of a speech in a concerning coding period is evaluated by using a code or coding result of at least one of spectrum information, power information, and pitch information, and various excitation codebooks are used based on an evaluation result.
1. A speech decoding method according to code-excited linear prediction (CELP) wherein the speech decoding method receives a coded speech including a linear prediction parameter code, a gain code, and an adaptive code, and synthesizes a speech using an excitation codebook and an adaptive codebook, the speech decoding method comprising:
obtaining an adaptive code vector from the adaptive codebook based on the received adaptive code;
decoding a gain from the gain code in a decoding period corresponding to the coded speech, the decoded gain being used for weighting the adaptive code vector;
obtaining a time series vector with a number of samples with zero amplitude-value from the excitation codebook;
determining whether modification of the time series vector is necessary according to the gain;
if modification of the time series vector is determined to be necessary, modifying the time series vector such that the number of samples with zero amplitude-value is changed;
weighting the adaptive code vector and the time series vector using the decoded gain as a weight;
adding together the weighted adaptive code vector and the weighted time series vector;
decoding a linear prediction parameter from the received linear prediction parameter code; and
synthesizing a speech using the linear prediction parameter and the addition result.
2. A speech decoding apparatus that operates according to code-excited linear prediction (CELP) wherein the speech decoding apparatus receives a coded speech including a linear prediction parameter code, a gain code, and an adaptive code, and synthesizes a speech using at least an excitation codebook and an adaptive codebook, the speech decoding apparatus being configured to:
obtain an adaptive code vector from the adaptive codebook based on the received adaptive code;
decode a gain of speech from the gain code in a decoding period corresponding to the coded speech, the decoded gain being used for weighting the adaptive code vector;
obtain a time series vector with a number of samples with zero amplitude-value from the excitation codebook;
determine whether modification of the time series vector is necessary according to the gain;
if modification of the time series vector is determined to be necessary, modify the time series vector such that the number of samples with zero amplitude-value is changed;
weight the adaptive code vector and the time series vector using the decoded gain as a weight;
add together the weighted adaptive code vector and the weighted time series vector;
decode a linear prediction parameter from the received linear prediction parameter code; and
synthesize a speech using the linear prediction parameter and the addition result.
3. A speech decoding method according to code-excited linear prediction (CELP) wherein the speech decoding method is performed in a decoder that receives a coded speech from an encoder, the coded speech including a linear prediction parameter code, a gain code, and an adaptive code, the speech decoding method synthesizing a speech using an excitation codebook and an adaptive codebook, the speech decoding method comprising:
obtaining an adaptive code vector from the adaptive codebook based on the received adaptive code;
decoding a gain of speech from the gain code in a decoding period corresponding to the coded speech, the decoded gain being used for weighting the adaptive code vector;
obtaining a time series vector with a number of samples with zero amplitude-value from the excitation codebook;
determining at the decoder whether modification of the time series vector is necessary according to the gain decoded from the gain code without requiring a dedicated modification parameter from the encoder;
if modification of the time series vector is determined to be necessary, modifying the time series vector such that the number of samples with zero amplitude-value is changed;
weighting the adaptive code vector and the time series vector using the decoded gain as a weight;
adding together the weighted adaptive code vector and the weighted time series vector;
decoding a linear prediction parameter from the received linear prediction parameter code; and
synthesizing a speech using the linear prediction parameter and the addition result.
4. A speech decoding apparatus that operates according to code-excited linear prediction (CELP), wherein the speech decoding apparatus receives a coded speech from an encoder, the coded speech including a linear prediction parameter code, a gain code, and an adaptive code, and synthesizes a speech using an excitation codebook and an adaptive codebook, the speech decoding apparatus being configured to:
obtain an adaptive code vector from the adaptive codebook based on the received adaptive code;
decode a gain of speech from the gain code in a decoding period corresponding to the coded speech, the decoded gain being used for weighting the adaptive code vector;
obtain a time series vector with a number of samples with zero amplitude-value from the excitation codebook;
determine at the decoder whether modification of the time series vector is necessary according to the gain decoded from the gain code without requiring a dedicated modification parameter from the encoder;
if modification of the time series vector is determined to be necessary, modify the time series vector such that the number of samples with zero amplitude-value is changed;
weight the adaptive code vector and the time series vector using the decoded gain as a weight;
add together the weighted adaptive code vector and the weighted time series vector;
decode a linear prediction parameter from the received linear prediction parameter code; and
synthesize a speech using the linear prediction parameter and the addition result.