IP Library Granted Patent US 12711966
Granted Patent B2
US 12711966 · App. 18/810,463 · Granted Aug 18, 2026

Method and device for decoding signals

Inventors: Zexin Liu (Shenzhen, CN); Fengyan Qi (Shenzhen, CN); Lei Miao (Beijing, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G10L19/002G10L19/005G10L19/0204G10L19/028
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12711966
App. No.
18/810,463
Granted
Aug 18, 2026
Kind
B2
Abstract

In a method to decode signals, a computing device decodes spectral coefficients of a current frame are grouped into a plurality of sub-bands. The computing device classifies a sub-band as a bit allocation unsaturated sub-band based on an average quantity of allocated bits per spectral coefficient of a sub-band of the plurality of sub-bands and a threshold. The computing device obtains a noise filling gain based on an envelope of the sub-band, and obtains a reconstructed spectral coefficient of the sub-band by performing noise filling based on the noise filling gain. The computing device then obtains a frequency domain audio signal based on spectral coefficients in the sub-band obtained by decoding and the reconstructed spectral coefficient.

Claims (29)

1 . A method comprising:

obtaining spectral coefficients of sub-bands from a received bitstream by means of decoding;

classifying sub-bands in which the spectral coefficients are located into a sub-band with saturated bit allocation and a sub-band with unsaturated bit allocation, including:

comparing an average quantity of allocated bits per spectral coefficient with a first threshold, wherein an average quantity of allocated bits per spectral coefficient of one sub-band is a ratio of a quantity of bits allocated for the one sub-band to a quantity of spectral coefficients in the one sub-band, wherein a sub-band whose average quantity of allocated bits per spectral coefficient is greater than or equal to the first threshold is classified as the sub-band with saturated bit allocation, and a sub-band whose average quantity of allocated bits per spectral coefficient is less than the first threshold is classified as the sub-band with unsaturated bit allocation;

performing noise filling on a spectral coefficient that has not been obtained by means of decoding and is in the sub-band with unsaturated bit allocation, to reconstruct the spectral coefficient that has not been obtained by means of decoding, including:

comparing an average quantity of allocated bits per spectral coefficient with a second threshold, wherein the second threshold is less than the first threshold;

calculating a harmonic parameter of a sub-band whose average quantity of allocated bits per spectral coefficient is greater than or equal to the second threshold, wherein the harmonic parameter represents harmonic strength or weakness of a frequency domain signal; and

performing, based on the harmonic parameter, noise filling on the spectral coefficient that has not been obtained by means of decoding and is in the sub-band with unsaturated bit allocation; and

obtaining a frequency domain signal according to the spectral coefficients obtained by means of decoding and the reconstructed spectral coefficient.

2 . An apparatus comprising:

a memory storing computer executable instructions; and

a processor configured to execute the computer executable instructions to:

obtain spectral coefficients of sub-bands from a received bitstream by means of decoding;

classify, based on an average quantity of allocated bits per spectral coefficient, sub-bands in which the spectral coefficients are located into a sub-band with saturated bit allocation and a sub-band with unsaturated bit allocation, including:

compare an average quantity of allocated bits per spectral coefficient with a first threshold, wherein an average quantity of allocated bits per spectral coefficient of one sub-band is a ratio of a quantity of bits allocated for the one sub-band to a quantity of spectral coefficients in the one sub-band, wherein a sub-band whose average quantity of allocated bits per spectral coefficient is greater than or equal to the first threshold is classified as the sub-band with saturated bit allocation, and a sub-band whose average quantity of allocated bits per spectral coefficient is less than the first threshold is classified as the sub-band with unsaturated bit allocation;

perform noise filling on a spectral coefficient that has not been obtained by means of decoding and is in the sub-band with unsaturated bit allocation to reconstruct the spectral coefficient that has not been obtained by means of decoding, including:

compare an average quantity of allocated bits per spectral coefficient with a second threshold, wherein the second threshold is less than the first threshold;

calculate a harmonic parameter of a sub-band whose average quantity of allocated bits per spectral coefficient is greater than or equal to the second threshold, wherein the harmonic parameter represents harmonic strength or weakness of a frequency domain signal; and

perform, based on the harmonic parameter, noise filling on the spectral coefficient that has not been obtained by means of decoding and is in the sub-band with unsaturated bit allocation; and

obtain a frequency domain signal according to the spectral coefficients obtained by means of decoding and the reconstructed spectral coefficient.

3 . A non-transitory computer-readable storage medium having stored thereon computer executable instructions that, when executed by a processor of a computing apparatus, cause the computing apparatus to perform operations of:

obtaining spectral coefficients of sub-bands from a received bitstream by means of decoding;

classifying sub-bands in which the spectral coefficients are located into a sub-band with saturated bit allocation and a sub-band with unsaturated bit allocation, including:

comparing an average quantity of allocated bits per spectral coefficient with a first threshold, wherein an average quantity of allocated bits per spectral coefficient of one sub-band is a ratio of a quantity of bits allocated for the one sub-band to a quantity of spectral coefficients in the one sub-band, wherein a sub-band whose average quantity of allocated bits per spectral coefficient is greater than or equal to the first threshold is classified as the sub-band with saturated bit allocation, and a sub-band whose average quantity of allocated bits per spectral coefficient is less than the first threshold is classified as the sub-band with unsaturated bit allocation;

performing noise filling on a spectral coefficient that has not been obtained by means of decoding and is in the sub-band with unsaturated bit allocation, to reconstruct the spectral coefficient that has not been obtained by means of decoding, including:

comparing an average quantity of allocated bits per spectral coefficient with a second threshold, wherein the second threshold is less than the first threshold;

calculating a harmonic parameter of a sub-band whose average quantity of allocated bits per spectral coefficient is greater than or equal to the second threshold, wherein the harmonic parameter represents harmonic strength or weakness of a frequency domain signal; and

performing, based on the harmonic parameter, noise filling on the spectral coefficient that has not been obtained by means of decoding and is in the sub-band with unsaturated bit allocation; and

obtaining a frequency domain signal according to the spectral coefficients obtained by means of decoding and the reconstructed spectral coefficient.