# US 2021/0343303 A1 · High resolution 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/0343303 A1
- Document ID: US20210343303A1
- Status: Published application
- Kind: A1
- Application number: 17/373,148
- Filed: 2021-07-12
- Published: 2021-11-04
- Earliest claimed: 2019-01-13
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Yang GAO
- Web page: https://patentgrep.com/patent/US20210343303A1

## CPC

- G10L 19/08: Determination or coding of the excitation function; Determination or coding of the long-term prediction parameters
- G10L 19/09: Long term prediction, i.e. removing periodical redundancies, e.g. by using adaptive codebook or pitch predictor
- G10L 19/005: Correction of errors induced by the transmission channel, if related to the coding algorithm
- G10L 19/083: the excitation function being an excitation gain (G10L25/90 takes precedence)
- G10L 25/90: Pitch determination of speech signals
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for performing long-term prediction (LTP) are described. One example of the methods includes determining a pitch gain and a pitch lag of an input audio signal for at least a predetermined number of frames. It is determined that the pitch gain of the input audio signal has exceeded a predetermined threshold and that a change of the pitch lag of the input audio signal has been within a predetermined range for at least the predetermined number of frames. In response to determining that the pitch gain of the input audio signal has exceeded the predetermined threshold and that the change of the third pitch lag has been within the predetermined range for at least the predetermined number of frames, a pitch gain is set for a current frame of the input audio signal.

## Claims

### Claim 1

A computer-implemented method for performing long-term prediction (LTP), the method comprising:
determining a pitch gain and a pitch lag of an input audio signal for at least a predetermined number of frames;
determining that the pitch gain of the input audio signal has exceeded a predetermined threshold and that a change of the pitch lag of the input audio signal has been within a predetermined range for at least the predetermined number of frames; and
in response to determining that the pitch gain of the input audio signal has exceeded the predetermined threshold and that the change of the pitch lag has been within the predetermined range for at least the predetermined number of frames, setting a pitch gain for a current frame of the input audio signal, in order to improve package loss concealment (PLC).

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
receiving the input audio signal comprising a plurality of first samples generated at a first sampling rate;
downsampling the plurality of first samples to generate a plurality of second samples at a second sampling rate, wherein the second sampling rate is lower than the first sampling rate;
determining a plurality of pitch candidates based on the plurality of second samples at the second sampling rate; and
determining a first pitch lag based on the plurality of pitch candidates.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein
determining the first pitch lag comprises maximizing a normalized cross-correlation with a first window or an auto-correlation with a second window, wherein the second window is larger than the first window.

### Claim 4 (depends on 2)

The computer-implemented method of claim 2, further comprising:
determining a first search range based on the determined first pitch lag;
determining a first waveform peak location and a second waveform peak location within the first search range; and
determining a second pitch lag based on the first waveform peak location and the second waveform peak location.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, further comprising:
determining a second search range based on the second pitch lag;
determining a third pitch lag within the second search range at a third sampling rate, wherein the third sampling rate is higher than the second sampling rate; and
determining the pitch lag of the input audio signal as the third pitch lag.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein
determining the third pitch lag within the second search range at the third sampling rate comprises using a normalized cross-correlation approach within the second search range at the third sampling rate.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising:
in response to determining at least one of that the pitch gain of the input audio signal is lower than the predetermined threshold or that the change of the pitch lag has not been within the predetermined range for at least the predetermined number of frames, setting the pitch gain to for the current frame of the input audio signal to zero, in order to improve PLC.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, further comprising:
in response to determining at least one of that the pitch gain of the input audio signal is continuously higher than the predetermined threshold for at least the predetermined number of frames or that the change of the pitch lag has been within the predetermined range for at least the predetermined number of frames, artificially resetting the pitch gain for the current frame of the input audio signal to zero, in order to improve PLC.

### Claim 9

An electronic device, comprising:
one or more processors; and
a memory coupled to the one or more processors for storing instructions, which when executed by the one or more processors, cause the one or more processors to:
determine a pitch gain and a pitch lag of an input audio signal for at least a predetermined number of frames;
determine that the pitch gain of the input audio signal has exceeded a predetermined threshold and that a change of the pitch lag of the input audio signal has been within a predetermined range for at least the predetermined number of frames; and
in response to determining that the pitch gain of the input audio signal has exceeded the predetermined threshold and that the change of the pitch lag has been within the predetermined range for at least the predetermined number of frames, set a pitch gain for a current frame of the input audio signal, in order to improve package loss concealment (PLC).

### Claim 10 (depends on 9)

The electronic device of claim 9, wherein the instructions,
which when executed by the one or more processors, further cause the one or more processors to:
receive the input audio signal comprising a plurality of first samples generated at a first sampling rate;
downsample the plurality of first samples to generate a plurality of second samples at a second sampling rate, wherein the second sampling rate is lower than the first sampling rate;
determine a plurality of pitch candidates based on the plurality of second samples at the second sampling rate; and
determine a first pitch lag based on the plurality of pitch candidates.

### Claim 11 (depends on 10)

The electronic device of claim 10, wherein to determine the first pitch lag, the instructions, which when executed by the one or more processors, cause the one or more processors to:
maximize a normalized cross-correlation with a first window or an auto-correlation with a second window, wherein the second window is larger than the first window.

### Claim 12 (depends on 10)

The electronic device of claim 10, wherein the instructions, which when executed by the one or more processors, further cause the one or more processors to:
determine a first search range based on the determined first pitch lag;
determine a first waveform peak location and a second waveform peak location within the first search range; and
determine a second pitch lag based on the first waveform peak location and the second waveform peak location.

### Claim 13 (depends on 12)

The electronic device of claim 12, wherein the instructions, which when executed by the one or more processors, further cause the one or more processors to:
determine a second search range based on the second pitch lag;
determine a third pitch lag within the second search range at a third sampling rate, wherein the third sampling rate is higher than the second sampling rate; and
determine the pitch lag of the input audio signal as the third pitch lag.

### Claim 14 (depends on 13)

The electronic device of claim 13, wherein to determine the third pitch lag within the second search range at the third sampling rate, the instructions, which when executed by the one or more processors, cause the one or more processors to:
use a normalized cross-correlation approach within the second search range at the third sampling rate.

### Claim 15 (depends on 9)

The electronic device of claim 9, wherein the instructions, which when executed by the one or more processors, further cause the one or more processors to:
in response to determining at least one of that the pitch gain of the input audio signal is lower than the predetermined threshold or that the change of the pitch lag has not been within the predetermined range for at least the predetermined number of frames, set the pitch gain for the current frame of the input audio signal to zero, in order to improve PLC.

### Claim 16 (depends on 9)

The electronic device of claim 9, wherein the instructions, which when executed by the one or more processors, further cause the one or more processors to:
in response to determining at least one of that the pitch gain of the input audio signal is continuously higher than the predetermined threshold for at least the predetermined number of frames or that the change of the pitch lag has been within the predetermined range for at least the predetermined number of frames, artificially reset the pitch gain for the current frame of the input audio signal to zero, in order to improve PLC.

### Claim 17

A non-transitory computer-readable medium storing computer instructions for performing long-term prediction (LTP), which when executed by one or more processors, cause the one or more processors to perform operations, the operations comprising:
determining a pitch gain and a pitch lag of an input audio signal for at least a predetermined number of frames;
determining that the pitch gain of the input audio signal has exceeded a predetermined threshold and that a change of the pitch lag of the input audio signal has been within a predetermined range for at least the predetermined number of frames; and
in response to determining that the pitch gain of the input audio signal has exceeded the predetermined threshold and that the change of the pitch lag has been within the predetermined range for at least the predetermined number of frames, setting a pitch gain for a current frame of the input audio signal, in order to improve package loss concealment (PLC).

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the operations further comprise:
receiving the input audio signal comprising a plurality of first samples generated at a first sampling rate;
downsampling the plurality of first samples to generate a plurality of second samples at a second sampling rate, wherein the second sampling rate is lower than the first sampling rate;
determining a plurality of pitch candidates based on the plurality of second samples at the second sampling rate; and
determining a first pitch lag based on the plurality of pitch candidates.

### Claim 19 (depends on 18)

The non-transitory computer-readable medium of claim 18,
wherein determining the first pitch lag comprises maximizing a normalized cross-correlation with a first window or an auto-correlation with a second window, wherein the second window is larger than the first window.

### Claim 20 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the operations further comprise:
determining a first search range based on the determined first pitch lag;
determining a first waveform peak location and a second waveform peak location within the first search range; and
determining a second pitch lag based on the first waveform peak location and the second waveform peak location.
