# US 2021/0082443 A1 · Stereo Signal Encoding 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 2021/0082443 A1
- Document ID: US20210082443A1
- Status: Published application
- Kind: A1
- Application number: 17/107,004
- Filed: 2020-11-30
- Published: 2021-03-18
- Earliest claimed: 2018-05-31
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Bin Wang; Zexin Liu; Haiting Li
- Web page: https://patentgrep.com/patent/US20210082443A1

## CPC

- G10L 19/008: Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
- G10L 19/22: Mode decision, i.e. based on audio signal content versus external parameters
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

A stereo signal encoding method includes obtaining indication information of an encoding mode of a residual signal of a current frame, where the indication information includes at least one of an encoding status of a residual signal of a previous frame, a value of an updating manner flag for a long-term smooth parameter of the current frame, or a value of a status change parameter of the current frame relative to a stereo signal of the previous frame, and determining the encoding mode of the residual signal of the current frame based on the indication information of the encoding mode of the residual signal of the current frame, where the encoding mode indicates whether to encode the residual signal of the current frame.

## Claims

### Claim 1

A method comprising:
obtaining indication information of a first encoding mode of a first residual signal of a current frame, wherein the first encoding mode indicates whether to encode the first residual signal, and wherein the indication information comprises at least one of an encoding status of a second residual signal of a first previous frame of the current frame, a first value of an updating manner flag for a long-term smooth parameter of a first stereo signal of the current frame, or a second value of a status change parameter of the first stereo signal relative to a second stereo signal of the first previous frame; and
determining the first encoding mode based on the indication information.

### Claim 2 (depends on 1)

The method of claim 1, wherein the encoding status indicates at least one of:
a first quantity of consecutive frames previous to the current frame, wherein third residual signals of the first quantity of consecutive frames are encoded;
a second quantity of consecutive frames previous to the current frame, wherein fourth residual signals of the second quantity of consecutive frames are not encoded; or
a plurality of second encoding modes of fifth residual signals of N frames previous to the current frame, wherein the N frames are consecutive in a time domain, wherein the N frames comprise a second previous frame, and wherein N is a positive integer.

### Claim 3 (depends on 1)

The method of claim 1, wherein the second value comprises:
a first ratio of a first energy of the first stereo signal to a second energy of the second stereo signal of M frames previous to the current frame, wherein the M frames are consecutive in a time domain, wherein the M frames comprise a second previous frame, and wherein M is a positive integer; or
a second ratio of a first amplitude of the first stereo signal to a second amplitude of the second stereo signal of S frames previous to the current frame, wherein the S frames are consecutive in the time domain, wherein the S frames comprise the second previous frame, and wherein S is a positive integer.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
determining an initial encoding mode of the first residual signal; and
determining the first encoding mode further based on the initial encoding mode.

### Claim 5 (depends on 4)

The method of claim 4, wherein the indication information comprises the encoding status indicating the second encoding modes, and wherein the method further comprises determining that the first encoding mode is the initial encoding mode when the initial encoding mode is same as a third encoding mode of a sixth residual signal of the second previous frame.

### Claim 6 (depends on 4)

The method of claim 4, wherein the indication information comprises the encoding status or the first value, wherein the encoding status indicates the first quantity of consecutive frames and the second encoding modes, wherein the method further comprises determining that the first encoding mode is a fourth encoding mode of the second residual signal when the initial encoding mode is different from a third encoding mode of a sixth residual signal of the second previous frame, wherein the fourth encoding mode indicates to encode the second residual signal and that a first condition is met, and wherein the first condition comprises at least one of:
the first quantity of consecutive frames is less than a first threshold;
the first value is zero; or
the fourth encoding mode is not modified.

### Claim 7 (depends on 4)

The method of claim 4, wherein the indication information comprises the encoding status or the second value, wherein the encoding status indicates the second quantity of consecutive frames and the second encoding modes, wherein the method further comprises determining that the first encoding mode is a fourth encoding mode of the second residual signal when the initial encoding mode is different from a third encoding mode of a sixth residual signal of the second previous frame, wherein the fourth encoding mode indicates not to encode the second residual signal and that a second condition is met, and wherein the second condition comprises at least one of:
the second quantity of consecutive frames is less than a first threshold; or
the second value is greater than or equal to a second threshold and less than or equal to a third threshold.

### Claim 8 (depends on 4)

The method of claim 4, further comprising modifying the first encoding mode based on the indication information.

### Claim 9 (depends on 8)

The method of claim 8, wherein the indication information comprises the encoding status indicating the second encoding modes, and wherein the method further comprises determining that the first encoding mode indicates to encode the first residual signal when the first encoding mode is different from a third encoding mode of a sixth residual signal of the second previous frame and a fourth encoding mode of the second residual signal is not modified.

### Claim 10

An apparatus comprising:
a memory configured to store computer-executable instructions; and
a processor coupled to the memory, wherein the computer-executable instructions cause the processor to be configured to:
obtain indication information of a first encoding mode of a first residual signal of a current frame, wherein the first encoding mode indicates whether to encode the first residual signal, and wherein the indication information comprises at least one of an encoding status of a second residual signal of a first previous frame of the current frame, a first value of an updating manner flag for a long-term smooth parameter of a first stereo signal of the current frame, or a second value of a status change parameter of the first stereo signal relative to a second stereo signal of the first previous frame; and
determine the first encoding mode based on the indication information.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the encoding status indicates at least one of:
a first quantity of consecutive frames previous to the current frame, wherein third residual signals of the first quantity of consecutive frames are encoded;
a second quantity of consecutive frames previous to the current frame, wherein fourth residual signals of the second quantity of consecutive frames are not encoded; or
a plurality of second encoding modes of fifth residual signals of N frames previous to the current frame, wherein the N frames are consecutive in a time domain, wherein the N frames comprise a second previous frame, and wherein N is a positive integer.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein the second value comprises:
a first ratio of a first energy of the first stereo signal to a second energy of the second stereo signal of M frames previous to the current frame, wherein the M frames are consecutive in a time domain, wherein the M frames comprise a second previous frame, and wherein M is a positive integer; or
a second ratio of a first amplitude of the first stereo signal to a second amplitude of the second stereo signal of S frames previous to the current frame, wherein the S frames are consecutive in the time domain, wherein the S frames comprise the second previous frame, and wherein S is a positive integer.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the computer-executable instructions further cause the processor to be configured to:
determine an initial encoding mode of the first residual signal; and
determine the first encoding mode further based on the indication information.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the indication information comprises the encoding status indicating the second encoding modes, and wherein the computer-executable instructions further cause the processor to be configured to determine that the first encoding mode is the initial encoding mode when the initial encoding mode is same as a third encoding mode of a sixth residual signal of the second previous frame.

### Claim 15 (depends on 13)

The apparatus of claim 13, wherein the indication information comprises the encoding status or the first value, wherein the encoding status indicates the first quantity of consecutive frames and the second encoding modes, wherein the computer-executable instructions further cause the processor to be configured to determine that the first encoding mode is a fourth encoding mode of the second residual signal when the initial encoding mode is different from a third encoding mode of a sixth residual signal of the second previous frame, wherein the fourth encoding mode indicates to encode the second residual signal and that a first condition is met, and wherein the first condition comprises at least one of:
the first quantity of consecutive frames is less than a first threshold;
the first value of the updating manner flag is zero; or
the fourth encoding mode is not modified.

### Claim 16 (depends on 13)

The apparatus of claim 13, wherein the indication information comprises the encoding status or the second value, wherein the encoding status indicates the second quantity of consecutive frames and the second encoding modes, wherein the computer-executable instructions further cause the processor to be configured to determine that the first encoding mode is a fourth encoding mode of the second residual signal when the initial encoding mode is different from a third encoding mode of a sixth residual signal of the second previous frame, wherein the fourth encoding mode indicates not to encode the second residual signal and that a second condition is met, and wherein the second condition comprises at least one of:
the second quantity of consecutive frames is less than a first threshold; or
the second value is greater than or equal to a second threshold and less than or equal to a third threshold.

### Claim 17 (depends on 13)

The apparatus of claim 13, wherein the computer-executable instructions further cause the processor to be configured to modify the first encoding mode based on the indication information.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the indication information comprises the encoding status indicating the second encoding modes, and wherein the computer-executable instructions further cause the processor to be configured to determine that the first encoding mode indicates to encode the first residual signal when the first encoding mode is different from a third encoding mode of a sixth residual signal of the second previous frame and a fourth encoding mode of the second residual signal is not modified.

### Claim 19

A computer program product comprising computer-executable instructions for storage on a non-transitory computer-readable storage medium that, when executed by a processor, cause an apparatus to:
obtain indication information of a first encoding mode of a first residual signal of a current frame, wherein the encoding mode indicates whether to encode the residual signal of the current frame, and wherein the indication information comprises at least one of an encoding status of a second residual signal of a first previous frame of the current frame, wherein a first value of an updating manner flag for a long-term smooth parameter of a first stereo signal of the current frame, or a second value of a status change parameter of the first stereo signal relative to a second stereo signal of the first previous frame; and
determine the first encoding mode based on the indication information.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the encoding status indicates at least one of:
a first quantity of consecutive frames previous to the current frame, wherein third residual signals of the first quantity of consecutive frames are encoded;
a second quantity of consecutive frames previous to the current frame, wherein fourth residual signals of the second quantity of consecutive frames are not encoded; or
second encoding modes of fifth residual signals of N frames previous to the current frame, wherein the N frames are consecutive in a time domain, wherein the N frames comprise a second previous frame, and wherein N is a positive integer.
