摘要 |
An audio coding method and apparatus. The method comprises: determining the distribution sparseness, along a frequency spectrum, of the energy of N audio frames inputted (101), wherein said N audio frames comprise a current audio frame and N is a positive integer; determining, on the basis of said distribution sparseness, whether to use a first coding method or a second coding method to code the current audio frame (102), wherein the first coding method is a coding method that is based on time frequency transform and transform coefficient quantization and is not based on linear prediction, and the second coding method is a coding method that is based on linear prediction. When coding audio frames, the described method factors in the distribution sparseness, along a frequency spectrum, of the energy of the audio frames, reducing the coding complexity and ensuring coding is of high accuracy. |