Patent ID: 8494846

Claim:
A method for generating background noise, comprising: if an obtained signal frame is a noise frame, obtaining a high band noise encoding parameter from the noise frame; performing at least one of weighting and smoothing on the high band noise encoding parameter to obtain a second high band noise encoding parameter; and generating a high band background noise signal according to the second high band noise encoding parameter; wherein the high band background noise encoding parameter includes a time envelope parameter and a frequency envelope parameter, and the performing weighting on the high band noise encoding parameter to obtain the second high band noise encoding parameter comprises: multiplying the frequency envelope parameter with a preset weighting parameter to obtain a weighted frequency envelope parameter, wherein the weighting parameter is inversely proportional to the frequency value of the frequency envelope parameter; and using a high band noise encoding ammeter including the weighted frequency envelope parameter as the second high band noise encoding parameter; and the performing smoothing on the high band noise encoding parameter to obtain the second high band noise encoding parameter comprises: calculating with a preset first smoothing parameter and the high band noise encoding parameter to obtain the second high band noise encoding parameter according to a formula: P WB — LONG — SID =αP WB — LONG — SID +(1−α) P WB — SID wherein the P WB — LONG — SID is the second high band noise encoding parameter, α is the first smoothing parameter, and P WB — SID is the current high band noise encoding parameter.