# US 2025/0149049 A1 · Audio signal 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 2025/0149049 A1
- Document ID: US20250149049A1
- Status: Published application
- Kind: A1
- Application number: 19/013,976
- Filed: 2025-01-08
- Published: 2025-05-08
- Earliest claimed: 2022-07-27
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Zhuo WANG; Bin FENG; Chunhui DU; Fan FAN
- Web page: https://patentgrep.com/patent/US20250149049A1

## CPC

- G10L 19/0204: {using subband decomposition}
- G10L 19/032: Quantisation or dequantisation of spectral components
- G10L 19/008: Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

This application discloses an audio signal processing method and apparatus, and belongs to the field of audio signal processing technologies. The method includes: obtaining a plurality of sub-bands of an audio signal and a scale factor of each sub-band; determining, based on the scale factors of the plurality of sub-bands, a reference value used for shaping a spectral envelope of the audio signal; and shaping the spectral envelope of the audio signal by using the reference value as a baseline, to obtain an adjustment factor of each sub-band corresponding to a shaped spectral envelope. The adjustment factor is used to quantize a spectral value of the audio signal, and/or the adjustment factor is used to dequantize a code value of the spectral value. In this application, compression efficiency of encoding an audio signal is improved while sound quality is ensured.

## Claims

### Claim 1

An audio signal processing method, comprising:
obtaining a plurality of sub-bands of an audio signal and a scale factor of each sub-band;
determining, based on scale factors of the plurality of sub-bands, a reference value used for shaping a spectral envelope of the audio signal; and
shaping the spectral envelope of the audio signal by using the reference value as a baseline, to obtain an adjustment factor of each sub-band corresponding to a shaped spectral envelope, wherein the adjustment factor is used to quantize a spectral value of the audio signal, and/or the adjustment factor is used to dequantize a code value of the spectral value.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the shaping the spectral envelope of the audio signal by using the reference value as a baseline, to obtain the adjustment factor of each sub-band corresponding to the shaped spectral envelope comprises:
obtaining a difference between the scale factor of the sub-band and the reference value; and
adjusting the scale factor of the sub-band based on the difference, to obtain the adjustment factor.

### Claim 3 (depends on 2)

The method according to claim 2, wherein before the shaping the spectral envelope of the audio signal by using the reference value as the baseline, to obtain the adjustment factor of each sub-band corresponding to the shaped spectral envelope, the method further comprises:
masking the scale factor of the sub-band, and updating the scale factor of the sub-band based on a masked scale factor of the sub-band.

### Claim 4 (depends on 2)

The method according to claim 2, wherein when the audio signal is a dual-channel signal, the adjusting the scale factor of the sub-band based on the difference, to obtain the adjustment factor comprises:
scaling down the difference, to obtain a scaled-down difference;
updating the scale factor of the sub-band based on the scaled-down difference and the reference value; and
obtaining the adjustment factor based on an updated scale factor of the sub-band.

### Claim 5 (depends on 4)

The method according to claim 4, wherein a scale-down multiple of the difference is determined based on a value of the difference.

### Claim 6 (depends on 2)

The method according to claim 2, wherein when the audio signal is a mono-channel signal, the adjusting the scale factor of the sub-band based on the difference, to obtain the adjustment factor comprises:
determining the difference as the adjustment factor.

### Claim 7 (depends on 6)

The method according to claim 6, wherein before the obtaining the difference between the scale factor of the sub-band and the reference value, the method further comprises:
performing signal enhancement on the scale factor of the sub-band, and updating the scale factor of the sub-band based on a scale factor of the sub-band and on which signal enhancement has been performed.

### Claim 8 (depends on 1)

The method according to claim 1, wherein
when the audio signal is a dual-channel signal, the reference value is obtained based on an average value of the scale factors of the plurality of sub-bands; and
when the audio signal is a mono-channel signal, the reference value is obtained based on a maximum value in the scale factors of the plurality of sub-bands.

### Claim 9 (depends on 8)

The method according to claim 8, wherein before the determining the reference value used for shaping the spectral envelope of the audio signal, the method further comprises:
masking the scale factor of the sub-band, and updating the scale factor of the sub-band based on the masked scale factor of the sub-band.

### Claim 10 (depends on 8)

The method according to claim 8, wherein when the audio signal is a mono-channel signal, before the determining the reference value used for shaping the spectral envelope of the audio signal, the method further comprises:
performing signal enhancement on the scale factor of the sub-band, and updating the scale factor of the sub-band based on a scale factor of the sub-band and on which signal enhancement has been performed.

### Claim 11 (depends on 7)

The method according to claim 7, wherein a strength of performing signal enhancement on the scale factor of the sub-band is determined based on a frequency of the sub-band and a total number of the plurality of sub-bands.

### Claim 12 (depends on 3)

The method according to claim 3, wherein the masking the scale factor of the sub-band comprises:
obtaining a masking coefficient that an adjacent sub-band of the sub-band has on the sub-band and a scale factor of the adjacent sub-band, wherein the masking coefficient indicates a masking degree; and
obtaining the masked scale factor of the sub-band based on the scale factor of the sub-band, the scale factor of the adjacent sub-band, and the masking coefficient that the adjacent sub-band has on the sub-band.

### Claim 13 (depends on 12)

The method according to claim 12, wherein
when the audio signal is a dual-channel signal, the masking coefficient is determined based on a value relationship between the scale factor of the sub-band and the reference value; and
when the audio signal is a mono-channel signal, the masking coefficient is determined based on a frequency relationship between the sub-band and the adjacent sub-band.

### Claim 14 (depends on 1)

The method according to claim 1, wherein the shaping the spectral envelope of the audio signal by using the reference value as the baseline, to obtain the adjustment factor of each sub-band corresponding to the shaped spectral envelope comprises:
when a bit rate of the audio signal is less than a bit rate threshold and/or an energy concentration of the audio signal is less than a concentration threshold, shaping the spectral envelope of the audio signal by using the reference value as the baseline, to obtain the adjustment factor of each sub-band corresponding to the shaped spectral envelope.

### Claim 15

A computer device, comprising:
a processor, and
a memory, coupled to the processor to store instructions, which when executed by the processor, cause the processor to:
obtain a plurality of sub-bands of an audio signal and a scale factor of each sub-band;
determine, based on scale factors of the plurality of sub-bands, a reference value used for shaping a spectral envelope of the audio signal; and
shape the spectral envelope of the audio signal by using the reference value as a baseline, to obtain an adjustment factor of each sub-band corresponding to a shaped spectral envelope, wherein the adjustment factor is used to quantize a spectral value of the audio signal, and/or the adjustment factor is used to dequantize a code value of the spectral value.

### Claim 16 (depends on 15)

The device according to claim 15, wherein the processor to shape the spectral envelope of the audio signal by using the reference value as the baseline comprises the processor to:
obtain a difference between the scale factor of the sub-band and the reference value; and
adjust the scale factor of the sub-band based on the difference, to obtain the adjustment factor.

### Claim 17 (depends on 16)

The device according to claim 16, wherein when the instructions executed by the processor, further cause the processor to:
mask the scale factor of the sub-band, and update the scale factor of the sub-band based on a masked scale factor of the sub-band.

### Claim 18

A non-transitory machine-readable storage medium having instructions stored therein, which when executed by a processor, causes the processor to perform operations, the operations comprising:
obtaining a plurality of sub-bands of an audio signal and a scale factor of each sub-band;
determining, based on scale factors of the plurality of sub-bands, a reference value used for shaping a spectral envelope of the audio signal; and
shaping the spectral envelope of the audio signal by using the reference value as a baseline, to obtain an adjustment factor of each sub-band corresponding to a shaped spectral envelope, wherein the adjustment factor is used to quantize a spectral value of the audio signal, and/or the adjustment factor is used to dequantize a code value of the spectral value.

### Claim 19 (depends on 18)

The non-transitory machine-readable storage medium according to claim 18, wherein the shaping the spectral envelope of the audio signal by using the reference value as the baseline, to obtain the adjustment factor of each sub-band corresponding to the shaped spectral envelope comprises:
obtaining a difference between the scale factor of the sub-band and the reference value; and
adjusting the scale factor of the sub-band based on the difference, to obtain the adjustment factor.

### Claim 20 (depends on 18)

The non-transitory machine-readable storage medium according to claim 18, wherein the shaping the spectral envelope of the audio signal by using the reference value as the baseline, to obtain the adjustment factor of each sub-band corresponding to the shaped spectral envelope comprises:
when a bit rate of the audio signal is less than a bit rate threshold and/or an energy concentration of the audio signal is less than a concentration threshold, shaping the spectral envelope of the audio signal by using the reference value as the baseline, to obtain the adjustment factor of each sub-band corresponding to the shaped spectral envelope.
