摘要:
An method for encoding comprising: obtaining, according to a data length of a first overlapped portion between encoding data of a current frame and encoding data of a previous frame, first encoding data corresponding to the data length of the first overlapped portion from the previous frame, if the previous frame is encoded in a first encoding mode and the current frame is to be encoded in a second encoding mode; and encoding, in the second encoding mode, the first encoding data corresponding to the data length of the first overlapped portion from the previous frame and encoding data of the current frame. The corresponding decoding method, encoding and decoding apparatuses are also disclosed.
摘要:
The present disclosure relates to a decoding method and apparatus. The method includes: receiving data frames from the coder; if any erroneous frame appears, calculating a pitch lag parameter of the erroneous frame; decoding the data frames according to the calculated pitch lag parameter of the erroneous frame, and obtaining decoded data. The process of determining the pitch lag parameter includes: determining the number of continuous erroneous frames and the pitch lag parameter of the previous frame; adjusting the pitch lag parameter of the previous frame according to the number of the continuous erroneous frames and a preset adjustment policy, and calculating and determining the pitch lag parameter of a current erroneous frame, wherein the preset adjustment policy is adjusting the determined pitch lag parameter of the current erroneous frame within a preset value range according to the number of the continuous erroneous frames.
摘要:
The present disclosure relates to a decoding method and apparatus. The method includes: receiving data frames from the coder; if any erroneous frame appears, calculating a pitch lag parameter of the erroneous frame; decoding the data frames according to the calculated pitch lag parameter of the erroneous frame, and obtaining decoded data. The process of determining the pitch lag parameter includes: determining the number of continuous erroneous frames and the pitch lag parameter of the previous frame; adjusting the pitch lag parameter of the previous frame according to the number of the continuous erroneous frames and a preset adjustment policy, and calculating and determining the pitch lag parameter of a current erroneous frame, wherein the preset adjustment policy is adjusting the determined pitch lag parameter of the current erroneous frame within a preset value range according to the number of the continuous erroneous frames.
摘要:
A decoding method and device are provided. The spectrum parameter of a current bad data frame is determined. Specifically, a number of continuous bad frames that occur currently is determined. A spectrum parameter of a good data frame before the current bad data frame is determined. And a constant mean value of a spectrum parameter is determined. Then, the spectrum parameter of the good data frame is adaptively shifted towards the constant mean value of the spectrum parameter according to the number of the continuous bad data frames to calculate and obtain spectrum parameter information of the current bad frame. When the continuous bad data frames occur, the relevance between the spectrum parameter of the nearest good frame and the spectrum parameter of the current bad frame is gradually reduced, so that more accurate spectrum parameter of the current bad data frame can be obtained, thereby obtaining a better speech quality under a same code rate and a same frame error rate.
摘要:
A decoding method and device are provided. The spectrum parameter of a current bad data frame is determined. Specifically, a number of continuous bad frames that occur currently is determined. A spectrum parameter of a good data frame before the current bad data frame is determined. And a constant mean value of a spectrum parameter is determined. Then, the spectrum parameter of the good data frame is adaptively shifted towards the constant mean value of the spectrum parameter according to the number of the continuous bad data frames to calculate and obtain spectrum parameter information of the current bad frame. When the continuous bad data frames occur, the relevance between the spectrum parameter of the nearest good frame and the spectrum parameter of the current bad frame is gradually reduced, so that more accurate spectrum parameter of the current bad data frame can be obtained, thereby obtaining a better speech quality under a same code rate and a same frame error rate.