# US 2017/0287493 A1 · Frame Loss Compensation Processing Method and Apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0287493 A1
- Document ID: US20170287493A1
- Status: Published application
- Kind: A1
- Application number: 15/472,730
- Filed: 2017-03-29
- Published: 2017-10-05
- Earliest claimed: 2016-03-29
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Zexin Liu; Xingtao Zhang; Bin Wang; Lei Miao
- Web page: https://patentgrep.com/patent/US20170287493A1

## CPC

- G10L 19/005: Correction of errors induced by the transmission channel, if related to the coding algorithm
- G10L 19/0208: {Subband vocoders}
- G10L 19/06: Determination or coding of the spectral characteristics, e.g. of the short-term prediction coefficients
- G10L 19/083: the excitation function being an excitation gain (G10L25/90 takes precedence)
- G10L 19/087: using mixed excitation models, e.g. MELP, MBE, split band LPC or HVXC
- G10L 19/107: Sparse pulse excitation, e.g. by using algebraic codebook
- G10L 25/06: the extracted parameters being correlation coefficients
- G10L 25/78: Detection of presence or absence of voice signals (switching of direction of transmission by voice frequency in two-way loud-speaking telephone systems H04M9/10)
- G10L 19/09: Long term prediction, i.e. removing periodical redundancies, e.g. by using adaptive codebook or pitch predictor
- G10L 2019/0002: {Codebook adaptations}
- G10L 2019/0008: {Algebraic codebooks}
- G10L 2019/0016: {Codebook for LPC parameters}
- G10L 2025/783: {based on threshold decision}
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

A frame loss compensation processing method and apparatus is presented, where the method includes, when a ith frame is a lost frame, estimating a spectrum frequency parameter, a pitch period, and a gain of the ith frame according to at least one of an inter-frame relationship between first N frames of the ith frame or an intra-frame relationship between first N frames of the ith frame. A parameter of the ith frame is determined using the signal correlation between the first N frames, the signal energy stability between the first N frames, intra-frame signal correlation of each frame, and intra-frame signal energy stability of each frame.

## Claims

### Claim 1

A frame loss compensation processing method, comprising:
determining, using a lost-frame flag bit, whether an ith frame is a lost frame;
estimating a parameter of the ith frame according to at least one of an inter-frame relationship between first N frames of the ith frame or an intra-frame relationship between first N frames of the ith frame when the ith frame is a lost frame, wherein the inter-frame relationship between the first N frames comprises at least one of correlation between the first N frames or energy stability between the first N frames, wherein the intra-frame relationship between the first N frames comprises at least one of inter-subframe correlation between the first N frames or inter-subframe energy stability between the first N frames, wherein the parameter of the ith frame comprises a spectrum frequency parameter, a pitch period, and a gain, and wherein N is an integer greater than or equal to 1;
obtaining an algebraic codebook of the ith frame;
generating an excitation signal of the ith frame according to the pitch period and the gain of the ith frame and obtained by means of estimation and the obtained algebraic codebook of the ith frame; and
synthesizing a signal of the ith frame according to the spectrum frequency parameter of the ith frame and obtained by means of estimation and the generated excitation signal of the ith frame.

### Claim 2 (depends on 1)

The method according to claim 1, wherein when the ith frame is a normal frame, the method further comprises:
obtaining the parameter of the ith frame by means of decoding according to a received bitstream, wherein the parameter of the ith frame comprises the spectrum frequency parameter, the pitch period, the gain, and the algebraic codebook;
generating the excitation signal of the ith frame and a status-updated excitation signal of the ith frame according to the pitch period, the gain, and the algebraic codebook of the ith frame and obtained by means of decoding;
determining, according to at least one of inter-frame relationships or intra-frame relationships between the ith frame and the first N frames of the ith frame when an (i−1)th frame or an (i−2)th frame is a lost frame, whether to correct at least one of the spectrum frequency parameter, the excitation signal, or the status-updated excitation signal of the ith frame, wherein the inter-frame relationship comprises at least one of correlation between the ith frame and the first N frames of the ith frame or energy stability between the ith frame and the first N frames of the ith frame, and wherein the intra-frame relationship comprises at least one of inter-subframe correlation between the ith frame and the first N frames of the ith frame or inter-subframe energy stability between the ith frame and the first N frames of the ith frame;
correcting, when it is determined to correct the at least one of the spectrum frequency parameter, the excitation signal, or the status-updated excitation signal of the ith frame, the at least one of the spectrum frequency parameter, the excitation signal, or the status-updated excitation signal of the ith frame according to the at least one of the inter-frame relationships or the intra-frame relationships between the ith frame and the first N frames of the ith frame;
synthesizing the signal of the ith frame according to a correction result of the at least one of the spectrum frequency parameter, the excitation signal, or the status-updated excitation signal of the ith frame; and
synthesizing, when it is determined not to correct the spectrum frequency parameter, the excitation signal, or the status-updated excitation signal of the ith frame, the signal of the ith frame according to the spectrum frequency parameter, the excitation signal, and the status-updated excitation signal of the ith frame.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the spectrum frequency parameter of the ith frame is obtained by means of estimation according to the inter-frame relationship between the first N frames of the ith frame, and wherein the spectrum frequency parameter of the ith frame is obtained by means of estimation in the following manner:
determining a weight of a spectrum frequency parameter of an (i−1)th frame and a weight of a preset spectrum frequency parameter of the ith frame according to the correlation between the first N frames of the ith frame; and
performing a weighting operation on the spectrum frequency parameter of the (i−1)th frame and the preset spectrum frequency parameter of the ith frame according to the weight of the spectrum frequency parameter of the (i−1)th frame and the weight of the preset spectrum frequency parameter of the ith frame, to obtain the spectrum frequency parameter of the ith frame,
wherein the correlation comprises a value relationship between a second threshold and a spectrum tilt parameter of a signal of the (i−1)th frame, a value relationship between a first threshold and a normalized autocorrelation value of the signal of the (i−1)th frame, and a value relationship between a third threshold and a deviation of a pitch period of the signal of the (i−1)th frame, and
wherein determining the weight of the spectrum frequency parameter of the (i−1)th frame and the weight of the preset spectrum frequency parameter of the ith frame according to the correlation between the first N frames of the ith frame comprises:
determining, when the signal of the (i−1)th frame meets at least one of a first condition, a second condition, and a third condition, that the weight of the spectrum frequency parameter of the (i−1)th frame is a first weight, and the weight of the preset spectrum frequency parameter of the ith frame is a second weight, wherein the first weight is greater than the second weight, wherein the first condition is whether the normalized autocorrelation value of the signal of the (i−1)th frame is greater than the first threshold, wherein the second condition is whether the spectrum tilt parameter of the signal of the (i−1)th frame is greater than the second threshold, and wherein the third condition is whether the deviation of the pitch period of the signal of the (i−1)th frame is less than the third threshold; and
determining, when the signal of the (i−1)th frame does not meet a first condition, a second condition, or a third condition, that the weight of the spectrum frequency parameter of the (i−1)th frame is a second weight, and the weight of the preset spectrum frequency parameter of the ith frame is a first weight, wherein the first weight is greater than the second weight.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the pitch period of the ith frame is obtained by means of estimation according to the correlation between the first N frames of the ith frame and the inter-subframe correlation between the first N frames of the ith frame, wherein the correlation comprises a value relationship between a fifth threshold and a normalized autocorrelation value of a signal of an (i−2)th frame, a value relationship between a fourth threshold and a deviation of a pitch period of the signal of the (i−2)th frame, and a value relationship between the fourth threshold and a deviation of a pitch period of a signal of an (i−1)th frame, wherein the pitch period of the ith frame is obtained by means of estimation in the following manner:
determining, when the deviation of the pitch period of the signal of the (i−1)th frame is less than the fourth threshold, a pitch period deviation value of the signal of the (i−1)th frame according to the pitch period of the signal of the (i−1)th frame; and
determining a pitch period of the signal of the ith frame according to the pitch period deviation value of the signal of the (i−1)th frame and the pitch period of the signal of the (i−1)th frame, wherein the pitch period of the signal of the ith frame comprises a pitch period of each subframe of the ith frame, and wherein the pitch period deviation value of the signal of the (i−1)th frame is an average value of differences between pitch periods of all adjacent subframes of the (i−1)th frame; or
determining, when the deviation of the pitch period of the signal of the (i−1)th frame is greater than or equal to the fourth threshold, the normalized autocorrelation value of the signal of the (i−2)th frame is greater than the fifth threshold, and the deviation of the pitch period of the signal of the (i−2)th frame is less than the fourth threshold, a pitch period deviation value of the signal of the (i−2)th frame and the signal of the (i−1)th frame according to the pitch period of the signal of the (i−2)th frame and the pitch period of the signal of the (i−1)th frame; and
determining a pitch period of the signal of the ith frame according to the pitch period of the signal of the (i−1)th frame and the pitch period deviation value of the signal of the (i−2)th frame and the signal of the (i−1)th frame,
wherein the pitch period deviation value pv of the signal of the (i−1)th frame is determined according to the following formula:
pv=(p(−1)(3)−p(−1)(2))+(p(−1)(2)−p(−1)(1))+(p(−1)(1)−p(−1)(0))/3,
wherein p(−1)(j) is a pitch period of a jth subframe of the (i−1)th frame, and wherein j=0, 1, 2, 3; and
wherein the pitch period of the signal of the ith frame is determined according to the following formula:
pcur(j)=p(−1)(3)+(j+1)*pv,j=0,1,2,3,
wherein p(−1)(3) is a pitch period of a third subframe of the (i−1)th frame, wherein pv is the pitch period deviation value of the signal of the (i−1)th frame, and wherein pcur(j) is a pitch period of a jth subframe of the ith frame; or
wherein the pitch period deviation value pv of the signal of the (i−2)th frame and the signal of the (i−1)th frame is determined according to the following formula:
pv=(p(−2)(3)−p(−2)(2))+(p(−1)(0)−p(−2)(3))+(p(−1)(1)−p(−1)(0))/3,
wherein p(−2)(m) is a pitch period of an mth subframe of the (i−2)th frame, wherein p(−1)(n) is a pitch period of an nth subframe of the (i−1)th frame, wherein m=2, 3, and n=0, 1,
wherein the pitch period of the signal of the ith frame is determined according to the following formula:
pcur(x)=p(−1)(3)+(x+1)*pv,x=0,1,2,3,
wherein p(−1)(3) is a pitch period of a third subframe of the (i−1)th frame, wherein pv is the pitch period deviation value of the signal of the (i−2)th frame and the signal of the (i−1)th frame, and wherein pcur(x) is a pitch period of an xth subframe of the ith frame.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the gain of the ith frame comprises an adaptive codebook gain and an algebraic codebook gain, wherein the gain of the ith frame is obtained by means of estimation according to the correlation between the first N frames of the ith frame and the energy stability between the first N frames of the ith frame, wherein the gain of the ith frame is obtained by means of estimation in the following manner:
determining the adaptive codebook gain of the ith frame according to an adaptive codebook gain of an (i−1)th frame or a preset fixed value, correlation of the (i−1)th frame, and a sequence number of the ith frame in multiple consecutive lost frames;
determining a weight of an algebraic codebook gain of the (i−1)th frame and a weight of a gain of a voice activity detection (VAD) frame according to energy stability of the (i−1)th frame;
determining a first correction factor according to an encoding and decoding rate;
correcting the algebraic codebook gain of the (i−1)th frame using the first correction factor; and
performing a weighting operation on the algebraic codebook gain of the (i−1)th frame and the gain of the VAD frame according to the weight of the algebraic codebook gain of the (i−1)th frame and the weight of the gain of the VAD frame in order to obtain the algebraic codebook gain of the ith frame,
wherein more stable energy of the (i−1)th frame indicates a larger weight of the algebraic codebook gain of the (i−1)th frame, and wherein the weight of the gain of the VAD frame correspondingly increases as a quantity of consecutive lost frames increases.

### Claim 6 (depends on 1)

The method according to claim 1, wherein obtaining the algebraic codebook of the ith frame comprises:
obtaining the algebraic codebook of the ith frame by means of estimation according to random noise; or
determining the algebraic codebook of the ith frame according to algebraic codebooks of the first N frames of the ith frame.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the gain of the ith frame comprises an adaptive codebook gain and an algebraic codebook gain, wherein before generating the excitation signal of the ith frame according to the pitch period and the gain that are of the ith frame and that are obtained by means of estimation and the obtained algebraic codebook of the ith frame, the method further comprises:
determining a weight of an algebraic codebook contribution of the ith frame, wherein the algebraic codebook contribution of the ith frame is determined according to any one of a deviation of a pitch period of an (i−1)th frame, correlation of a signal of the (i−1)th frame, a spectrum tilt rate value of the (i−1)th frame, or a zero-crossing rate of an (i−1)th frame, wherein the algebraic codebook contribution of the ith frame is determined by performing a weighting operation on any combination of a deviation of a pitch period of the (i−1)th frame, correlation of a signal of the (i−1)th frame, a spectrum tilt rate value of the (i−1)th frame, or a zero-crossing rate of the (i−1)th frame; and
performing an interpolation operation on a status-updated excitation signal of the (i−1)th frame to determine an adaptive codebook of the ith frame,
wherein generating the excitation signal of the ith frame according to the pitch period and the gain of the ith frame and obtained by means of estimation and the obtained algebraic codebook of the ith frame comprises:
determining the algebraic codebook contribution of the ith frame according to a product obtained by multiplying the algebraic codebook of the ith frame by the algebraic codebook gain of the ith frame;
determining an adaptive codebook contribution of the ith frame according to a product obtained by multiplying the adaptive codebook of the ith frame by the adaptive codebook gain of the ith frame; and
performing a weighting operation on the algebraic codebook contribution of the ith frame and the adaptive codebook contribution of the ith frame according to the weight of the algebraic codebook contribution of the ith frame and a weight of the adaptive codebook contribution of the ith frame in order to determine the excitation signal of the ith frame, wherein a weight of the adaptive codebook is 1.

### Claim 8

A frame loss compensation processing apparatus, comprising:
a non-transitory memory for storing computer-executable instructions; and
a processor operatively coupled to the non-transitory memory and configured to:
determine, using a lost-frame flag bit, whether an ith frame is a lost frame;
estimate a parameter of the ith frame according to at least one of an inter-frame relationship between first N frames of the ith frame or an intra-frame relationship between first N frames of the ith frame when the ith frame is a lost frame, wherein the inter-frame relationship between the first N frames comprises at least one of correlation between the first N frames or energy stability between the first N frames, wherein the intra-frame relationship between the first N frames comprises at least one of inter-subframe correlation between the first N frames or inter-subframe energy stability between the first N frames, wherein the parameter of the ith frame comprises a spectrum frequency parameter, a pitch period, and a gain, and wherein N is an integer greater than or equal to 1;
obtain an algebraic codebook of the ith frame;
generate an excitation signal of the ith frame according to an estimated pitch period of the ith frame, an estimated gain of the ith frame and the obtained algebraic codebook of the ith frame; and
synthesize a signal of the ith frame according to an estimated spectrum frequency parameter of the ith frame and the generated excitation signal of the ith frame.

### Claim 9 (depends on 8)

The apparatus according to claim 8, wherein when the ith frame is a normal frame, the processor is further configured to:
obtain the parameter of the ith frame by means of decoding according to a received bitstream, wherein the parameter of the ith frame comprises the spectrum frequency parameter, the pitch period, the gain, and the algebraic codebook;
generate the excitation signal of the ith frame and a status-updated excitation signal of the ith frame according to the pitch period, the gain, and the algebraic codebook of the ith frame and obtained by means of decoding;
determine, according to at least one of inter-frame relationships or intra-frame relationships between the ith frame and the first N frames of the ith frame, whether to correct at least one of the spectrum frequency parameter, the excitation signal, or the status-updated excitation signal of the ith frame when an (i−1)th frame or an (i−2)th frame is a lost frame, wherein the inter-frame relationship comprises at least one of correlation between the ith frame and the first N frames of the ith frame or energy stability between the ith frame and the first N frames of the ith frame, and wherein the intra-frame relationship comprises at least one of inter-subframe correlation between the ith frame and the first N frames of the ith frame or inter-subframe energy stability between the ith frame and the first N frames of the ith frame;
correct, when determines to correct the at least one of the spectrum frequency parameter, the excitation signal, or the status-updated excitation signal of the ith frame, the at least one of the spectrum frequency parameter, the excitation signal, or the status-updated excitation signal of the ith frame according to the at least one of the inter-frame relationships or the intra-frame relationships between the ith frame and the first N frames of the ith frame;
synthesize the signal of the ith frame according to a corrected result of at least one of the spectrum frequency parameter, the excitation signal, or the status-updated excitation signal of the ith frame; and
synthesize, when determines not to correct the spectrum frequency parameter, the excitation signal, or the status-updated excitation signal of the ith frame, the signal of the ith frame according to the spectrum frequency parameter, the excitation signal, and the status-updated excitation signal of the ith frame.

### Claim 10 (depends on 8)

The apparatus according to claim 8, wherein the spectrum frequency parameter of the ith frame is obtained by means of estimation according to the inter-frame relationship between the first N frames of the ith frame, and wherein the processor is further configured obtain the spectrum frequency parameter of the ith frame by:
determining a weight of a spectrum frequency parameter of an (i−1)th frame and a weight of a preset spectrum frequency parameter of the ith frame according to the correlation between the first N frames of the ith frame; and
performing a weighting operation on the spectrum frequency parameter of the (i−1)th frame and the preset spectrum frequency parameter of the ith frame according to the weight of the spectrum frequency parameter of the (i−1)th frame and the weight of the preset spectrum frequency parameter of the ith frame in order to obtain the spectrum frequency parameter of the ith frame,
wherein the correlation comprises a value relationship between a second threshold and a spectrum tilt parameter of a signal of the (i−1)th frame, a value relationship between a first threshold and a normalized autocorrelation value of the signal of the (i−1)th frame, and a value relationship between a third threshold and a deviation of a pitch period of the signal of the (i−1)th frame, and wherein the processor is further configured to obtain the spectrum frequency parameter of the ith frame by:
determining, when the signal of the (i−1)th frame meets at least one of a first condition, a second condition, and a third condition, that the weight of the spectrum frequency parameter of the (i−1)th frame is a first weight, and the weight of the preset spectrum frequency parameter of the ith frame is a second weight, wherein the first weight is greater than the second weight, wherein the first condition is whether the normalized autocorrelation value of the signal of the (i−1)th frame is greater than the first threshold, wherein the second condition is whether the spectrum tilt parameter of the signal of the (i−1)th frame is greater than the second threshold, and wherein the third condition is whether the deviation of the pitch period of the signal of the (i−1)th frame is less than the third threshold; and
determining, when the signal of the (i−1)th frame does not meet a first condition, a second condition, or a third condition, that the weight of the spectrum frequency parameter of the (i−1)th frame is a second weight, and the weight of the preset spectrum frequency parameter of the ith frame is a first weight, wherein the first weight is greater than the second weight.

### Claim 11 (depends on 8)

The apparatus according to claim 8, wherein the pitch period of the ith frame is obtained by means of estimation according to the correlation between the first N frames of the ith frame and the inter-subframe correlation between the first N frames of the ith frame, wherein the correlation comprises a value relationship between a fifth threshold and a normalized autocorrelation value of a signal of an (i−2)th frame, a value relationship between a fourth threshold and a deviation of a pitch period of the signal of the (i−2)th frame, and a value relationship between the fourth threshold and a deviation of a pitch period of a signal of an (i−1)th frame, wherein the processor is further configured to obtain the pitch period of the ith frame by:
determining, when the deviation of the pitch period of the signal of the (i−1)th frame is less than the fourth threshold, a pitch period deviation value of the signal of the (i−1)th frame according to the pitch period of the signal of the (i−1)th frame;
determining a pitch period of the signal of the ith frame according to the pitch period deviation value of the signal of the (i−1)th frame and the pitch period of the signal of the (i−1)th frame, wherein the pitch period of the signal of the ith frame comprises a pitch period of each subframe of the ith frame, and wherein the pitch period deviation value of the signal of the (i−1)th frame is an average value of differences between pitch periods of all adjacent subframes of the (i−1)th frame;
determining, when the deviation of the pitch period of the signal of the (i−1)th frame is greater than or equal to the fourth threshold, the normalized autocorrelation value of the signal of the (i−2)th frame is greater than the fifth threshold, and the deviation of the pitch period of the signal of the (i−2)th frame is less than the fourth threshold, a pitch period deviation value of the signal of the (i−2)th frame and the signal of the (i−1)th frame according to the pitch period of the signal of the (i−2)th frame and the pitch period of the signal of the (i−1)th frame; and
determining a pitch period of the signal of the ith frame according to the pitch period of the signal of the (i−1)th frame and the pitch period deviation value of the signal of the (i−2)th frame and the signal of the (i−1)th frame,
wherein the processor is configured to:
determine the pitch period deviation value pv of the signal of the (i−1)th frame according to the following formula:
pv=(p(−1)(3)−p(−1)(2))+(p(−1)(2)−p(−1)(1))+(p(−1)(1)−p(−1)(0))/3,
wherein p(−1)(j) is a pitch period of a jth subframe of the (i−1)th frame, and wherein j=0, 1, 2, 3; and
determine the pitch period of the signal of the ith frame according to the following formula:
pv=(p(−2)(3)−p(−2)(2))+(p(−1)(0)−p(−1)(3))+(p(−1)(1)−p(−1)(0))/3,
wherein p(−1)(3) is a pitch period of a third subframe of the (i−1)th frame, wherein pv is the pitch period deviation value of the signal of the (i−1)th frame, and wherein pcur(j) is a pitch period of a ith subframe of the ith frame;
determine the pitch period deviation value pv of the signal of the (i−2)th frame and the signal of the (i−1)th frame according to the following formula:
pv=(p(−2)(3)−p(−2)(2))+(p(−1)(0)−p(−2)(3))+(p(−1)(1)−p(−1)(0))/3,
wherein p(−2)(m) is a pitch period of an mth subframe of the (i−2)th frame, wherein p(−1)(n) is a pitch period of an nth subframe of the (i−1)th frame, wherein m=2, 3, and wherein n=0, 1; and
determine the pitch period of the signal of the ith frame according to the following formula:
pcur(x)=p(−1)(3)+(x+1)*pv,x=0,1,2,3,
wherein p(−1)(3) is a pitch period of a third subframe of the (i−1)th frame, wherein pv is the pitch period deviation value of the signal of the (i−2)th frame and the signal of the (i−1)th frame, and wherein pcur(x) is a pitch period of an xth subframe of the ith frame.

### Claim 12 (depends on 8)

The apparatus according to claim 8, wherein the gain of the ith frame comprises an adaptive codebook gain and an algebraic codebook gain, wherein the gain of the ith frame is obtained by means of estimation according to the correlation between the first N frames of the ith frame and the energy stability between the first N frames of the ith frame, and wherein the processor is configured to estimate the adaptive codebook gain and the algebraic codebook gain of the ith frame by:
determining the adaptive codebook gain of the ith frame according to an adaptive codebook gain of an (i−1)th frame or a preset fixed value, correlation of the (i−1)th frame, and a sequence number of the ith frame in multiple consecutive lost frames;
determining a weight of an algebraic codebook gain of the (i−1)th frame and a weight of a gain of a voice activity detection (VAD) frame according to energy stability of the (i−1)th frame;
determining a first correction factor according to an encoding and decoding rate;
correcting the algebraic codebook gain of the (i−1)th frame using the first correction factor; and
performing a weighting operation on the algebraic codebook gain of the (i−1)th frame and the gain of the VAD frame according to the weight of the algebraic codebook gain of the (i−1)th frame and the weight of the gain of the VAD frame in order to obtain the algebraic codebook gain of the ith frame,
wherein more stable energy of the (i−1)th frame indicates a larger weight of the algebraic codebook gain of the (i−1)th frame, and wherein the weight of the gain of the VAD frame correspondingly increases as a quantity of consecutive lost frames increases.

### Claim 13 (depends on 8)

The apparatus according to claim 8, wherein the processor is configured to obtain the algebraic codebook of the ith frame by:
obtaining the algebraic codebook of the ith frame by means of estimation according to random noise; or
determining the algebraic codebook of the ith frame according to algebraic codebooks of the first N frames of the ith frame.

### Claim 14 (depends on 8)

The apparatus according to claim 8, wherein the gain of the ith frame comprises an adaptive codebook gain and an algebraic codebook gain, wherein the processor is configured to determine the excitation signal of the ith frame by:
determining a weight of an algebraic codebook contribution of the ith frame, wherein the algebraic codebook contribution of the ith frame is determined according to any one of a deviation of a pitch period of an (i−1)th frame, correlation of a signal of the (i−1)th frame, a spectrum tilt rate value of the (i−1)th frame, or a zero-crossing rate of an (i−1)th frame, wherein the algebraic codebook contribution of the ith frame is determined by performing a weighting operation on any combination of a deviation of a pitch period of the (i−1)th frame, correlation of a signal of the (i−1)th frame, a spectrum tilt rate value of the (i−1)th frame, or a zero-crossing rate of the (i−1)th frame;
performing an interpolation operation on a status-updated excitation signal of the (i−1)th frame to determine an adaptive codebook of the ith frame;
determining the algebraic codebook contribution of the ith frame according to a product obtained by multiplying the algebraic codebook of the ith frame by the algebraic codebook gain of the ith frame;
determining an adaptive codebook contribution of the ith frame according to a product obtained by multiplying the adaptive codebook of the ith frame by the adaptive codebook gain of the ith frame; and
performing a weighting operation on the algebraic codebook contribution of the ith frame and the adaptive codebook contribution of the ith frame according to the weight of the algebraic codebook contribution of the ith frame and a weight of the adaptive codebook contribution of the ith frame in order to determine the excitation signal of the ith frame, wherein a weight of the adaptive codebook is 1.

### Claim 15 (depends on 9)

The apparatus according to claim 9, wherein the processor is further configured to:
determine, according to correlation of the ith frame, whether to correct the spectrum frequency parameter of the ith frame;
correct, when determines to correct the spectrum frequency parameter of the ith frame, the spectrum frequency parameter of the ith frame according to the spectrum frequency parameter of the ith frame and a spectrum frequency parameter of the (i−1)th frame, or correct the spectrum frequency parameter of the ith frame according to the spectrum frequency parameter of the ith frame and a preset spectrum frequency parameter of the ith frame, wherein the correlation of the ith frame comprises a value relationship between a sixth threshold and one of two spectrum frequency parameters corresponding to an index of a minimum value of a difference between adjacent spectrum frequency parameters of the ith frame, a value relationship between a seventh threshold and the minimum value of the difference between the adjacent spectrum frequency parameters of the ith frame, and a value relationship between an eighth threshold and the index of the minimum value of the difference between the adjacent spectrum frequency parameters of the ith frame;
determine the difference between the adjacent spectrum frequency parameters of the ith frame, wherein each difference is corresponding to one index, and the spectrum frequency parameter comprises an immittance spectral frequency (ISF) or a line spectral frequency (LSF);
determine whether the difference between the adjacent spectrum frequency parameters of the ith frame meets at least one of a fourth condition or a fifth condition, wherein the fourth condition comprises one of the two spectrum frequency parameters corresponding to the index of the minimum value of the difference between the adjacent spectrum frequency parameters of the ith frame is less than the sixth threshold, and wherein the fifth condition comprises an index value of the minimum value of the difference between the adjacent spectrum frequency parameters of the ith frame is less than the eighth threshold, and the minimum difference is less than the seventh threshold;
determine, when the difference between the adjacent spectrum frequency parameters of the ith frame meets the at least one of the fourth condition or the fifth condition, to correct the spectrum frequency parameter of the ith frame;
determine, when the difference between the adjacent spectrum frequency parameters of the ith frame does not meet the fourth condition or the fifth condition, not to correct the spectrum frequency parameter of the ith frame; and
determine a corrected spectrum frequency parameter of the ith frame according to a weighting operation performed on either:
the spectrum frequency parameter of the (i−1)th frame and the spectrum frequency parameter of the ith frame; or
the spectrum frequency parameter of the ith frame and the preset spectrum frequency parameter of the ith frame.

### Claim 16 (depends on 9)

The apparatus according to claim 9, wherein the processor is further configured to:
determine, according to correlation between the ith frame and the (i−1)th frame, whether to correct the spectrum frequency parameter of the ith frame;
correct, when determines to correct the spectrum frequency parameter of the ith frame, the spectrum frequency parameter of the ith frame according to the spectrum frequency parameter of the ith frame and a spectrum frequency parameter of the (i−1)th frame, or according to the spectrum frequency parameter of the ith frame and a preset spectrum frequency parameter of the ith frame, wherein the correlation between the ith frame and the (i−1)th frame comprises a value relationship between a ninth threshold and a sum of differences between spectrum frequency parameters corresponding to some or all same indexes of the (i−1)th frame and the ith frame;
determine a difference between adjacent spectrum frequency parameters of the ith frame, wherein each difference is corresponding to one index, and wherein the spectrum frequency parameter comprises an immittance spectral frequency (ISF) or a line spectral frequency (LSF);
determine whether the spectrum frequency parameter of the ith frame and the spectrum frequency parameter of the (i−1)th frame meet a sixth condition, wherein the sixth condition comprises the sum of the differences between the spectrum frequency parameters corresponding to some or all same indexes of the (i−1)th frame and the ith frame is greater than the ninth threshold;
determine, when the spectrum frequency parameter of the ith frame and the spectrum frequency parameter of the (i−1)th frame meet the sixth condition, to correct the spectrum frequency parameter of the ith frame;
determine, when the spectrum frequency parameter of the ith frame and the spectrum frequency parameter of the (i−1)th frame do not meet the sixth condition, not to correct the spectrum frequency parameter of the ith frame; and
determine a corrected spectrum frequency parameter of the ith frame according to a weighting operation performed on either:
the spectrum frequency parameter of the (i−1)th frame and the spectrum frequency parameter of the ith frame; or
the spectrum frequency parameter of the ith frame and the preset spectrum frequency parameter of the ith frame.

### Claim 17 (depends on 9)

The apparatus according to claim 9, wherein the processor is further configured to:
determine, according to correlation between the ith frame and the (i−1)th frame and energy stability between the ith frame and the (i−1)th frame, whether to correct the excitation signal of the ith frame;
correct, when determines to correct the excitation signal of the ith frame, the excitation signal of the ith frame according to the energy stability between the ith frame and the (i−1)th frame;
determine a pre-synthesized signal of the ith frame according to the excitation signal of the ith frame and the spectrum frequency parameter of the ith frame;
determine whether an absolute value of a difference between energy of the pre-synthesized signal of the ith frame and energy of a synthesized signal of the (i−1)th frame is greater than a tenth threshold;
determine, when the absolute value of the difference between the energy of the pre-synthesized signal of the ith frame and the energy of the synthesized signal of the (i−1)th frame is greater than the tenth threshold, to correct the excitation signal of the ith frame;
determine, when the absolute value of the difference between the energy of the pre-synthesized signal of the ith frame and the energy of the synthesized signal of the (i−1)th frame is less than or equal to the tenth threshold, not to correct the excitation signal of the ith frame;
determine a second correction factor according to the energy stability between the ith frame and the (i−1)th frame, wherein the second correction factor is less than 1; and
multiply the excitation signal of the ith frame by the second correction factor to obtain a corrected excitation signal of the ith frame.

### Claim 18 (depends on 9)

The apparatus according to claim 9, wherein the processor is further configured to:
determine, according to correlation between the ith frame and the (i−1)th frame and energy stability between the ith frame and the (i−1)th frame, whether to correct the excitation signal of the ith frame;
correct, when determines to correct the excitation signal of the ith frame, the excitation signal of the ith frame according to the energy stability between the ith frame and the (i−1)th frame;
determine a pre-synthesized signal of the ith frame according to the excitation signal of the ith frame and the spectrum frequency parameter of the ith frame;
determine whether a ratio of energy of the pre-synthesized signal of the ith frame to energy of a synthesized signal of the (i−1)th frame is greater than an eleventh threshold, wherein the eleventh threshold is greater than 1; and
determine, when the ratio of the energy of the pre-synthesized signal of the ith frame to the energy of the synthesized signal of the (i−1)th frame is greater than the eleventh threshold, to correct the excitation signal of the ith frame;
determine, when the ratio of the energy of the pre-synthesized signal of the ith frame to the energy of the synthesized signal of the (i−1)th frame is less than or equal to the eleventh threshold, not to correct the excitation signal of the ith frame;
determine a second correction factor according to the energy stability between the ith frame and the (i−1)th frame, wherein the second correction factor is less than 1; and
multiply the excitation signal of the ith frame by the second correction factor to obtain a corrected excitation signal of the ith frame.

### Claim 19 (depends on 9)

The apparatus according to claim 9, wherein the processor is further configured to:
determine, according to correlation between the ith frame and the (i−1)th frame and energy stability between the ith frame and the (i−1)th frame, whether to correct the excitation signal of the ith frame;
correct, when determines to correct the excitation signal of the ith frame, the excitation signal of the ith frame according to the energy stability between the ith frame and the (i−1)th frame;
determine a pre-synthesized signal of the ith frame according to the excitation signal of the ith frame and the spectrum frequency parameter of the ith frame;
determine whether a ratio of energy of a pre-synthesized signal of the (i−1)th frame to energy of a synthesized signal of the ith frame is less than a twelfth threshold, wherein the twelfth threshold is less than 1;
determine, when the ratio of the energy of the pre-synthesized signal of the (i−1)th frame to the energy of the synthesized signal of the ith frame is less than the twelfth threshold, to correct the excitation signal of the ith frame;
determine, when the ratio of the energy of the pre-synthesized signal of the (i−1)th frame to the energy of the synthesized signal of the ith frame is greater than or equal to the twelfth threshold, not to correct the excitation signal of the ith frame;
determine a second correction factor according to the energy stability between the ith frame and the (i−1)th frame, wherein the second correction factor is less than 1; and
multiply the excitation signal of the ith frame by the second correction factor to obtain a corrected excitation signal of the ith frame.

### Claim 20 (depends on 9)

The apparatus according to claim 9, wherein the processor is further configured to:
determine, according to correlation of a signal of the (i−1)th frame, whether to correct the excitation signal of the ith frame;
correct, when determines to correct the excitation signal of the ith frame, the excitation signal of the ith frame according to energy stability between the ith frame and the (i−1)th frame, wherein the correlation of the signal of the (i−1)th frame comprises a value relationship between a thirteenth threshold and a correlation value of the signal of the (i−1)th frame, and a value relationship between a fourteenth threshold and a deviation of a pitch period of the signal of the (i−1)th frame;
determine whether the signal of the (i−1)th frame meets a seventh condition, wherein the seventh condition whether the (i−1)th frame is a lost frame, the correlation value of the signal of the (i−1)th frame is greater than the thirteenth threshold, and the deviation of the pitch period of the signal of the (i−1)th frame is less than the fourteenth threshold;
determine, when the signal of the (i−1)th frame meets the seventh condition, to correct the excitation signal of the ith frame;
determine, when the signal of the (i−1)th frame does not meet the seventh condition, not to correct the excitation signal of the ith frame;
determine a third correction factor according to the energy stability between the ith frame and the (i−1)th frame, wherein the third correction factor is less than 1; and
multiply the excitation signal of the ith frame by the third correction factor to obtain a corrected excitation signal of the ith frame.

### Claim 21 (depends on 9)

The apparatus according to claim 9, wherein the processor is further configured to:
determine, according to correlation between the signal of the ith frame and a signal of the (i−1)th frame, whether to correct the excitation signal of the ith frame;
correct, when determines to correct the excitation signal of the ith frame, the excitation signal of the ith frame according to energy stability between the ith frame and the (i−1)th frame, wherein the correlation between the signal of the ith frame and the signal of the (i−1)th frame comprises a value relationship between a thirteenth threshold and a correlation value of the signal of the (i−1)th frame, and a value relationship between a fourteenth threshold and a deviation of a pitch period of the signal of the ith frame;
determine whether the signal of the (i−1)th frame and the signal of the ith frame meet an eighth condition, wherein the eighth condition comprises whether the (i−1)th frame is a lost frame, the correlation value of the signal of the (i−1)th frame is greater than the preset thirteenth threshold, and the deviation of the pitch period of the signal of the ith frame is less than the preset fourteenth threshold;
determine, when the signal of the (i−1)th frame and the signal of the ith frame meet the eighth condition, to correct the excitation signal of the ith frame;
determine, when the signal of the (i−1)th frame and the signal of the ith frame do not meet the eighth condition, not to correct the excitation signal of the ith frame;
determine a third correction factor according to the energy stability between the ith frame and the (i−1)th frame, wherein the third correction factor is less than 1; and
multiply the excitation signal of the ith frame by the third correction factor to obtain a corrected excitation signal of the ith frame.

### Claim 22 (depends on 9)

The apparatus according to claim 9, wherein the processor is further configured to:
determine, according to correlation between a signal of the (i−1)th frame and a signal of the (i−2)th frame, whether to correct the excitation signal of the ith frame;
correct, when determines to correct the excitation signal of the ith frame, the excitation signal of the ith frame according to energy stability between the ith frame and the (i−1)th frame, wherein the correlation between the signal of the (i−1)th frame and the signal of the (i−2)th frame comprises: a value relationship between a thirteenth threshold and a correlation value of the signal of the (i−2)th frame, and whether an excitation signal of the (i−1)th frame is corrected;
determine whether the signal of the (i−2)th frame and the signal of the (i−1)th frame meet a ninth condition, wherein the ninth condition comprises whether the (i−2)th frame is a lost frame, the correlation value of the signal of the (i−2)th frame is greater than the thirteenth threshold, and the excitation signal of the (i−1)th frame is corrected;
determine, when the signal of the (i−2)th frame and the signal of the (i−1)th frame meet the ninth condition, to correct the excitation signal of the ith frame;
determine, when the signal of the (i−2)th frame and the signal of the (i−1)th frame do not meet the ninth condition, not to correct the excitation signal of the ith frame;
determine a fourth correction factor according to the energy stability between the ith frame and the (i−1)th frame, wherein the fourth correction factor is less than 1; and
multiply the excitation signal of the ith frame by the fourth correction factor to obtain a corrected excitation signal of the ith frame.

### Claim 23 (depends on 9)

The apparatus according to claim 9, wherein the processor is further configured to:
determine, according to correlation between a signal of the (i−1)th frame and a signal of the (i−2)th frame, whether to correct the excitation signal of the ith frame;
correct, when determines to correct the excitation signal of the ith frame, the excitation signal of the ith frame according to energy stability between the ith frame and the (i−1)th frame, wherein the correlation between the signal of the (i−1)th frame and the signal of the (i−2)th frame comprises a value relationship between a thirteenth threshold and a correlation value of the signal of the (i−2)th frame, and a value relationship between a fifteenth threshold and an algebraic codebook contribution of an excitation signal of the (i−1)th frame;
determine whether the signal of the (i−2)th frame and the signal of the (i−1)th frame meet a tenth condition, wherein the tenth condition comprises whether the (i−2)th frame is a lost frame, the correlation value of the signal of the (i−2)th frame is greater than the thirteenth threshold, and the algebraic codebook contribution of the excitation signal of the (i−1)th frame is less than the fifteenth threshold;
determine, when the signal of the (i−2)th frame and the signal of the (i−1)th frame meet the tenth condition, to correct the excitation signal of the ith frame;
determine, when the signal of the (i−2)th frame and the signal of the (i−1)th frame do not meet the tenth condition, not to correct the excitation signal of the ith frame;
determine a fourth correction factor according to the energy stability between the ith frame and the (i−1)th frame, wherein the fourth correction factor is less than 1; and
multiply the excitation signal of the ith frame by the fourth correction factor to obtain a corrected excitation signal of the ith frame.

### Claim 24 (depends on 9)

The apparatus according to claim 9, wherein the processor is further configured to:
determine, according to correlation between a signal of the (i−1)th frame and the signal of the ith frame, whether to correct the status-updated excitation signal of the ith frame;
correct, when determines to correct the status-updated excitation signal of the ith frame, the status-updated excitation signal of the ith frame according to energy stability between the ith frame and the (i−1)th frame, wherein the correlation between the signal of the (i−1)th frame and the signal of the ith frame comprises: correlation between the (i−1)th frame and the ith frame, and whether an excitation signal of the (i−1)th frame is corrected;
determine whether the signal of the ith frame and the signal of the (i−1)th frame meet an eleventh condition, wherein the eleventh condition comprises whether the ith frame or the (i−1)th frame is a highly-correlated frame, and the excitation signal of the (i−1)th frame is corrected;
determine, when the signal of the ith frame and the signal of the (i−1)th frame meet the eleventh condition, to correct the status-updated excitation signal of the ith frame;
determine, when the signal of the ith frame and the signal of the (i−1)th frame do not meet the eleventh condition, not to correct the status-updated excitation signal of the ith frame;
determine a fifth correction factor according to the energy stability between the ith frame and the (i−1)th frame, wherein the fifth correction factor is less than 1; and
multiply the status-updated excitation signal of the ith frame by the fifth correction factor to obtain a corrected status-updated excitation signal of the ith frame.

### Claim 25 (depends on 17)

The apparatus according to claim 17, wherein the processor is further configured to:
determine that a ratio of energy of the (i−1)th frame to energy of the ith frame is the second correction factor; or
determine that a ratio of energy of a same quantity of subframes of the (i−1)th frame and the ith frame is the second correction factor.
