# US 10,311,885 B2 · Method and apparatus for recovering lost frames

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

- Number: US 10,311,885 B2
- Document ID: US10311885B2
- Status: Granted
- Kind: B2
- Application number: 15/817,296
- Filed: 2017-11-20
- Published: 2018-03-15
- Granted: 2019-06-04
- Earliest claimed: 2014-06-25
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co.,Ltd.
- Inventors: Bin Wang; Zexin Liu; Lei Miao
- Web page: https://patentgrep.com/patent/US10311885B2

## CPC

- G10L 19/083: the excitation function being an excitation gain (G10L25/90 takes precedence)
- G10L 19/005: Correction of errors induced by the transmission channel, if related to the coding algorithm
- G10L 19/0204: {using subband decomposition}
- G10L 21/038: using band spreading techniques
- G10L 21/0388: Details of processing therefor
- G10L 25/93: Discriminating between voiced and unvoiced parts of speech signals (G10L25/90 takes precedence)
- G10L 19/24: Variable rate codecs, e.g. for generating different qualities using a scalable representation such as hierarchical encoding or layered encoding
- G10L 2025/932: {Decision in previous or following frames}
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

A method for recovering a lost frame in a received audio signal includes: obtaining an initial high-frequency band signal of a current lost frame in the received audio signal; calculating a ratio R, wherein the ratio R is a ratio of a high frequency excitation energy of a previous frame of the current lost frame to a high frequency excitation energy of the current lost frame; obtaining a global gain of the current lost frame according to the ratio R and a global gain of the previous frame of the current lost frame; and recovering a high-frequency band signal of the current lost frame according to the initial high-frequency band signal of the current lost frame and the global gain of the current lost frame. The method can be used in an audio signal decoding process for low-loss recovery of lost frames of the audio signal.

## Claims

### Claim 1

A method for recovering lost frames in an audio signal, performed by an audio signal decoder, comprising:
receiving and decoding a bit stream to obtain the audio signal, wherein the audio signal is transmitted in consecutive frames, and at least one frame of the audio signal is lost;
obtaining an initial high-frequency band signal of a current lost frame of the audio signal, wherein the initial high-frequency band signal is obtained according to a global gain, a subframe gain, and an encoding type of a previous frame of the current lost frame;
calculating a ratio R, wherein the ratio R is a ratio of a high frequency excitation energy of the previous frame to a high frequency excitation energy of the current lost frame, wherein the high frequency excitation energy of the current lost frame is obtained according to a low-frequency band signal energy of the current lost frame;
obtaining a global gain of the current lost frame according to the ratio R and the global gain of the previous frame;
obtaining a high-frequency band signal of the current lost frame according to the initial high-frequency band signal of the current lost frame and the global gain of the current lost frame;
reconstructing the current lost frame according to the high-frequency band signal of the current lost frame; and
outputting the audio signal including the reconstructed current lost frame.

### Claim 2 (depends on 1)

The method according to claim 1, wherein obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
obtaining the global gain of the current lost frame according to the following formula:
G′=α×R+(1−α)×G,
where G′ is the global gain of the current lost frame, G is the global gain of the previous frame, and α is a weighting factor,
wherein α is greater than or equal to 0 and smaller than 1.

### Claim 3 (depends on 1)

The method according to claim 1, wherein obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
obtaining an initial gain according to the global gain of the previous frame; and
obtaining the global gain of the current lost frame according to the following formula:
G′=α×R+(1−α)×G,
where G′ is the global gain of the current lost frame, G is the initial gain, and α is a weighting factor,
wherein α is greater than or equal to 0 and smaller than 1.

### Claim 4 (depends on 1)

The method according to claim 1, wherein obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
obtaining an initial gain according to the global gain of the previous frame; and
if the ratio R is greater than two times of the initial gain and less than or equal to four times of the initial gain, obtaining the global gain of the current lost frame according to the following formula:
G′=0.4×R+0.6×G;
or if the ratio R is greater than four times of the initial gain, obtaining the global gain of the current lost frame according to the following formula:
G′=0.8×R+0.2×G;
or if the ratio R is less than or equal to two times of the initial gain, obtaining the global gain of the current lost frame according to the following formula:
G′=0.2×R+0.8×G;
wherein G′ is the global gain of the current lost frame, and G is the initial gain.

### Claim 5 (depends on 1)

The method according to claim 1, wherein obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
if the ratio R is greater than two times and less than or equal to four times of the global gain of the previous frame, obtaining the global gain of the current lost frame according to the following formula:
G′=0.4×R+0.6×G;
or if the ratio R is greater than four times of the global gain of the previous frame, obtaining the global gain of the current lost frame according to the following formula:
G′=0.8×R+0.2×G;
or if the ratio R is less than or equal to two times of the global gain of the previous frame, obtaining the global gain of the current lost frame according to the following formula:
G′=0.2×R+0.8×G;
wherein G′ is the global gain of the current lost frame, and G is the global gain of the previous frame of the current lost frame.

### Claim 6 (depends on 1)

The method according to claim 1, wherein obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
obtaining the global gain of the current lost frame according to the following formula:
G′=min ((0.5×R+0.5×G), 4×G),
where G′ is the global gain of the current lost frame, and G is the global gain of the previous frame.

### Claim 7 (depends on 1)

The method according to claim 1, wherein obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
obtaining an initial gain according to the global gain of the previous frame; and
obtaining the global gain of the current lost frame according to the following formula:
G′=min ((0.5×R+0.5×G), 4×G),
where G′ is the global gain of the current lost frame, and G is the initial gain.

### Claim 8 (depends on 1)

The method according to claim 1, wherein obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
obtaining an initial gain according to the global gain of the previous frame; and
obtaining the global gain of the current lost frame according to the following formula:
G′=min ((0.8×R+0.2×G), 4×G),
where G′ is the global gain of the current lost frame, and G is the initial gain.

### Claim 9

An audio signal decoding apparatus, comprising:
a processor, and a storage medium storing programming instructions for execution by the processor,
wherein the programming instructions, when executed by the processor, cause the decoding apparatus to perform a process of recovering lost frames in an audio signal,
wherein the process comprises:
receiving and decoding a bit stream to obtain the audio signal, wherein the audio signal is transmitted in consecutive frames, and at least one frame of the audio signal is lost;
obtaining an initial high-frequency band signal of a current lost frame of the audio signal, wherein the initial high-frequency band signal is obtained according to a global gain, a subframe gain, and an encoding type of a previous frame of the current lost frame;
calculating a ratio R, wherein the ratio R is a ratio of a high frequency excitation energy of the previous frame to a high frequency excitation energy of the current lost frame, wherein the high frequency excitation energy of the current lost frame is obtained according to a low-frequency band signal energy of the current lost frame;
obtaining a global gain of the current lost frame according to the ratio R and the global gain of the previous frame;
obtaining a high-frequency band signal of the current lost frame according to the initial high-frequency band signal of the current lost frame and the global gain of the current lost frame;
reconstructing the current lost frame according to the high-frequency band signal of the current lost frame; and
outputting the audio signal including the reconstructed current lost frame.

### Claim 10 (depends on 9)

The apparatus according to claim 9, wherein the process of obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
obtaining the global gain of the current lost frame according to the following formula:
G′=α×R+(1−α)×G,
where G′ is the global gain of the current lost frame, G is the global gain of the previous frame, and α is a weighting factor,
wherein α is greater than or equal to 0 and smaller than 1.

### Claim 11 (depends on 9)

The apparatus according to claim 9, wherein the process of obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
obtaining an initial gain according to the global gain of the previous frame; and
obtaining the global gain of the current lost frame according to the following formula:
G′=α×R+(1−α)×G,
where G′ is the global gain of the current lost frame, G is the initial gain, and α is a weighting factor,
wherein α is greater than or equal to 0 and smaller than 1.

### Claim 12 (depends on 9)

The apparatus according to claim 9, wherein the process of obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
obtaining an initial gain according to the global gain of the previous frame; and
if the ratio R is greater than two times of the initial gain and less than or equal to four times of the initial gain, obtaining the global gain of the current lost frame according to the following formula:
G′=0.4×R+0.6×G;
or if the ratio R is greater than four times of the initial gain, obtaining the global gain of the current lost frame according to the following formula:
G′=0.8×R+0.2×G;
or if the ratio R is less than or equal to two times of the initial gain, obtaining the global gain of the current lost frame according to the following formula:
G′=0.2×R+0.8×G;
wherein G′ is the global gain of the current lost frame, and G is the initial gain.

### Claim 13 (depends on 9)

The apparatus according to claim 9, wherein the process of obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
if the ratio R is greater than two times and less than or equal to four times of the global gain of the previous frame, obtaining the global gain of the current lost frame according to the following formula:
G′=0.4×R+0.6×G;
or if the ratio R is greater than four times of the global gain of the previous frame, obtaining the global gain of the current lost frame according to the following formula:
G′=0.8×R+0.2×G;
or if the ratio R is less than or equal to two times of the global gain of the previous frame, obtaining the global gain of the current lost frame according to the following formula:
G′=0.2×R+0.8×G;
wherein G′ is the global gain of the current lost frame, and G is the global gain of the previous frame.

### Claim 14 (depends on 9)

The apparatus according to claim 9, wherein the process of obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
obtaining the global gain of the current lost frame according to the following formula:
G′=min ((0.5×R+0.5×G), 4×G),
where G′ is the global gain of the current lost frame, and G is the global gain of the previous frame.

### Claim 15 (depends on 9)

The apparatus according to claim 9, wherein the process of obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
obtaining an initial gain according to the global gain of the previous frame; and
obtaining the global gain of the current lost frame according to the following formula:
G′=min ((0.5×R+0.5×G), 4×G),
where G′ is the global gain of the current lost frame, and G is the initial gain.

### Claim 16 (depends on 9)

The apparatus according to claim 9, wherein the process of obtaining the global gain of the current lost frame according to the ratio R and the global gain of the previous frame comprises:
obtaining an initial gain according to the global gain of the previous frame; and
obtaining the global gain of the current lost frame according to the following formula:
G′=min ((0.8×R+0.2×G), 4×G),
where G′ is the global gain of the current lost frame, and G is the initial gain.
