摘要 |
Embodiments of the present invention provide a decoding method and a decoding apparatus. The decoding method includes: in a case in which it is determined that a current frame is a lost frame, synthesizing a high frequency band signal according to a decoding result of a previous frame; determining subframe gains of multiple subframes of the current frame according to subframe gains of subframes of at least one frame previous to the current frame and a gain gradient between the subframes of the at least one frame; determining a global gain of the current frame; and adjusting, according to the global gain and the subframe gains of the multiple subframes, the synthesized high frequency band signal to obtain a high frequency band signal of the current frame. A subframe gain of the current frame is obtained according to a gradient between subframe gains of subframes previous to the current frame, so that transition before and after frame loss is more continuous, thereby reducing noise during signal reconstruction, and improving speech quality. |