摘要 |
Speech encoding method and apparatus for encoding a speech according to code-excited linear prediction CELP comprising analyzing the speech to obtain a linear prediction parameter;
obtaining a linear prediction parameter code by encoding the linear prediction parameter;
obtaining an adaptive code vector concerning an adaptive code from an adaptive codebook;
obtaining a gain value corresponding to the adaptive code vector; evaluating a noise level of the speech based on the gain value;
obtaining a weight based on the evaluated noise level;
obtaining an excitation code by comparing a coded speech and the speech, wherein the coded speech is obtained by using the adaptive code vector, an excitation codebook and the weight; and outputting a speech code including the adaptive code, the linear prediction parameter code and the excitation code. |