# US 2021/0287688 A1 · Post-Quantization Gain Correction in Audio Coding

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

- Number: US 2021/0287688 A1
- Document ID: US20210287688A1
- Status: Published application
- Kind: A1
- Application number: 17/331,995
- Filed: 2021-05-27
- Published: 2021-09-16
- Earliest claimed: 2011-03-04
- Assignees: Telefonaktiebolaget LM Ericsson (publ)
- Applicants: Telefonaktiebolaget LM Ericsson (publ)
- Inventors: Erik Norvell; Volodya Grancharov
- Web page: https://patentgrep.com/patent/US20210287688A1

## CPC

- G10L 19/038: Vector quantisation, e.g. TwinVQ audio
- G10L 19/02: using spectral analysis, e.g. transform vocoders or subband vocoders
- G10L 19/0204: {using subband decomposition}
- G10L 19/0212: {using orthogonal transformation}
- G10L 19/032: Quantisation or dequantisation of spectral components
- G10L 19/083: the excitation function being an excitation gain (G10L25/90 takes precedence)
- G10L 21/0232: Processing in the frequency domain
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

A gain adjustment apparatus for use in decoding of audio that has been encoded with separate gain and shape representations includes an accuracy meter configured to estimate an accuracy measure of the shape representation, and to determine a gain correction based on the estimated accuracy measure. An envelope adjuster further included in the apparatus is configured to adjust the gain representation based on the determined gain correction.

## Claims

### Claim 1

A method of operation by a gain adjustment apparatus, the method comprising:
receiving an encoded audio signal comprising a set of gain values and a corresponding set of shape vectors, each gain value representing the energy of a frequency sub-band in a frequency transform of an input audio signal, and each corresponding shape vector representing a fine structure of the frequency transform in the frequency sub-band;
determining an accuracy measure for each shape vector from corresponding shape quantization characteristics indicating a quantization resolution;
determining a gain correction for each gain value as a function of the accuracy measure calculated for the corresponding shape vector; and
adjusting each gain value according to the corresponding gain correction, to obtain corrected gain values, for use in decoding the encoded audio signal.

### Claim 2 (depends on 1)

The method of claim 1, wherein each shape vector comprises a pulse vector and wherein determining the accuracy measure for the shape vector comprises calculating the accuracy measure as a function of the number of pulses allocated to the pulse vector, as said quantization resolution, and a maximum pulse height for the pulse vector, and wherein greater pulse allocations correspond to higher accuracy and smaller pulse allocations correspond to lower accuracy.

### Claim 3 (depends on 2)

The method of claim 2, further comprising determining the accuracy measure for each shape vector as a further function of the number of pulses allocated to the pulse vector in relation to a bandwidth of the frequency sub-band corresponding to the shape vector.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining the gain correction for each gain value comprises obtaining a gain correction factor from a stored table of gain correction factors indexed as a function of accuracy measures, and wherein adjusting each gain value according to the corresponding gain correction comprises applying the corresponding gain correction factor to each gain value.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining the accuracy measure for each shape vector comprises obtaining the accuracy measure from a stored table of accuracy measures indexed as a function of quantization resolution.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining the accuracy measure for each shape vector comprises determining the accuracy measure as a linear function of an allocated bit rate used for shape representation.

### Claim 7 (depends on 1)

The method of claim 1, wherein adjusting each gain value comprises scaling each gain value according to the corresponding gain correction, and wherein the scaling further depends on whether the encoded audio signal represents encoded speech or encoded music.

### Claim 8 (depends on 1)

The method of claim 1, wherein adjusting each gain value according to the corresponding gain correction comprises storing, at least temporarily, each corrected gain value and the corresponding shape vector, for decoding.

### Claim 9

A gain adjustment apparatus comprising:
input circuitry configured to receive an encoded audio signal comprising a set of gain values and a corresponding set of shape vectors, each gain value representing the energy of a frequency sub-band in a frequency transform of an input audio signal, and each corresponding shape vector representing a fine structure of the frequency transform in the frequency sub-band; and
gain correction circuitry configured to:
determine an accuracy measure for each shape vector from corresponding shape quantization characteristics indicating a quantization resolution;
determine a gain correction for each gain value as a function of the accuracy measure calculated for the corresponding shape vector; and
adjust each gain value according to the corresponding gain correction, to obtain corrected gain values, for use in decoding the encoded audio signal.

### Claim 10 (depends on 9)

The gain adjustment apparatus of claim 9, wherein each shape vector comprises a pulse vector and wherein the gain adjustment apparatus is configured to determine the accuracy measure for the shape vector by calculating the accuracy measure as a function of the number of pulses allocated to the pulse vector, as said quantization resolution, and a maximum pulse height for the pulse vector, and wherein greater pulse allocations correspond to higher accuracy and smaller pulse allocations correspond to lower accuracy.

### Claim 11 (depends on 10)

The gain adjustment apparatus of claim 10, wherein the gain adjustment apparatus is configured to determine the accuracy measure for each shape vector as a further function of the number of pulses allocated to the pulse vector in relation to a bandwidth of the frequency sub-band corresponding to the shape vector.

### Claim 12 (depends on 9)

The gain adjustment apparatus of claim 9, wherein the gain adjustment apparatus is configured to determine the gain correction for each gain value by obtaining a gain correction factor from a stored table of gain correction factors indexed as a function of accuracy measures, and to adjust each gain value according to the corresponding gain correction by applying the corresponding gain correction factor to each gain value.

### Claim 13 (depends on 9)

The gain adjustment apparatus of claim 9, wherein the gain adjustment apparatus is configured to determine the accuracy measure for each shape vector by obtaining the accuracy measure from a stored table of accuracy measures indexed as a function of quantization resolution.

### Claim 14 (depends on 9)

The gain adjustment apparatus of claim 9, wherein the gain adjustment apparatus is configured to determine the accuracy measure for each shape vector by determining the accuracy measure as a linear function of an allocated bit rate used for shape representation.

### Claim 15 (depends on 9)

The gain adjustment apparatus of claim 9, wherein the gain adjustment apparatus is configured to adjust each gain value by scaling each gain value according to the corresponding gain correction, and to make the scaling further depend on whether the encoded audio signal represents encoded speech or encoded music.

### Claim 16 (depends on 9)

The gain adjustment apparatus of claim 9, wherein the gain adjustment apparatus is configured to adjust each gain value according to the corresponding gain correction by storing, at least temporarily, each corrected gain value and the corresponding shape vector, for decoding.
