# US 2024/0339980 A1 · Method and device for limiting of output synthesis distortion in a sound codec

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

- Number: US 2024/0339980 A1
- Document ID: US20240339980A1
- Status: Published application
- Kind: A1
- Application number: 18/681,316
- Filed: 2022-08-05
- Published: 2024-10-10
- Earliest claimed: 2021-08-10
- Assignees: Voiceage Corporation
- Applicants: Voiceage Corporation
- Inventors: Vaclav EKSLER
- Web page: https://patentgrep.com/patent/US20240339980A1

## CPC

- G10L 19/26: Pre-filtering or post-filtering
- H03G 11/08: Limiting rate of change of amplitude {(H03G11/008 takes precedence)}
- G10L 19/005: Correction of errors induced by the transmission channel, if related to the coding algorithm
- H03G 3/3005: {in amplifiers suitable for low-frequencies, e.g. audio amplifiers (H03G3/32, H03G3/34 take precedence)}
- H03G 3/3089: {Control of digital or coded signals}
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- H03G: CONTROL OF AMPLIFICATION

## Abstract

A two-stage distortion limiter and method for limiting distortion in a sound signal, for example an output sound signal synthesis from a sound signal decoder. In a first stage, a level detector detects an amplitude value of the sound signal and computes a control gain using the detected amplitude value, and an attenuator reduces the level of the sound signal using the control gain. In a second stage, a saturation detector detects saturation in the sound signal and updates the control gain in response to detection of saturation.

## Claims

### Claim at position 1

1-48. (canceled)

### Claim 49

A two-stage distortion limiter for limiting distortion in a sound signal, comprising:
at least one processor; and
a memory coupled to the processor and storing non-transitory instructions that when executed cause the processor to implement:
a first stage comprising:
a level detector for detecting an amplitude value of the sound signal and for computing a control gain using the detected amplitude value;
an attenuator of the level of the sound signal using the control gain; and
a second stage comprising:
a saturation detector for detecting saturation in the sound signal and for updating the control gain in response to detection of saturation.

### Claim 50 (depends on 49)

The two-stage distortion limiter according to claim 49, wherein the detected amplitude value of the sound signal is a peak value of the sound signal.

### Claim 51 (depends on 49)

The two-stage distortion limiter according to claim 49, wherein the sound signal comprises a plurality of channels and wherein the two-stage distortion limiter is a two-stage multi-channel distortion limiter of which the first and second stages are applied to every channel of the sound signal.

### Claim 52 (depends on 49)

The two-stage distortion limiter according to claim 49, wherein the level detector compares the detected amplitude value with a sound signal limiter threshold to compute the control gain.

### Claim 53 (depends on 52)

The two-stage distortion limiter according to claim 52, wherein, if the detected amplitude value is equal to or lower than the limiter threshold, the level detector sets the control gain to 1.

### Claim 54 (depends on 52)

The two-stage distortion limiter according to claim 52, wherein, if the detected amplitude value is larger than the limiter threshold, the level detector selects the control gain as the larger of (a) a ratio between the detected amplitude value and the limiter threshold and (b) a lowest gain limit.

### Claim 55 (depends on 49)

The two-stage distortion limiter according to claim 49, wherein the first stage comprises a calculator of an attack/release time parameter defining a shorter or longer attack/release time depending on transient versus non-transient characteristics of the sound signal.

### Claim 56 (depends on 55)

The two-stage distortion limiter according to claim 55, wherein the sound signal is formed of sound signal samples, and wherein the attenuator comprises:
a gain filter using the attack/release time parameter and the control gain to obtain a gain per sample of the sound signal; and
an amplifier for applying the gain per sample to the respective samples of the sound signal and obtain a distortion-limited sound signal.

### Claim 57

(canceled)

### Claim 58 (depends on 49)

The two-stage distortion limiter according to claim 49, wherein the saturation detector comprises a first calculator of a saturation detection flag indicative of detection of saturation of the sound signal.

### Claim 59

(canceled)

### Claim 60 (depends on 58)

The two-stage distortion limiter according to claim 58, wherein the first calculator updates a saturation detection counter which stores a probability that saturation is present in a current sound signal processing frame.

### Claim 61 (depends on 60)

The two-stage distortion limiter according to claim 60, wherein a sound signal decoder produces a parameter indicative of bit errors in a bitstream received by the sound signal decoder, and the first calculator updates the saturation detection counter to a maximum value thereof and sets the saturation detection flag to a saturation indicating value when the produced parameter indicates bit errors in the bitstream.

### Claim 62 (depends on 60)

The two-stage distortion limiter according to claim 60, wherein the first calculator sets the saturation detection flag to a saturation indicating value when (a) a parameter produced by a sound signal decoder indicates no bit errors in a bitstream received by the sound signal decoder, and (b) the detected amplitude value is larger than a given threshold and the saturation detection counter is larger than 0.

### Claim 63 (depends on 60)

The two-stage distortion limiter according to claim 60, wherein, if (a) a parameter produced by a sound signal decoder indicates no bit errors in a bitstream received by the sound signal decoder, (b) the detected amplitude value is not larger than a first given threshold and/or the saturation detection counter is not larger than 0, and (c) the detected amplitude value is larger than a second given threshold, the first calculator sets the saturation detection flag to a saturation indicating value and updates the saturation detection counter to the minimum between a maximum value of the saturation detection counter and the sum of the saturation detection counter and a constant.

### Claim 64 (depends on 60)

The two-stage distortion limiter according to claim 60, wherein the first calculator sets the saturation detection flag to a saturation indicating value if (a) a parameter produced by a sound signal decoder indicates bit errors in a bitstream received by the sound signal decoder, (b) the detected amplitude value is larger than a first given threshold and the saturation detection counter is larger than 0, or (c) the detected amplitude value is larger than a second given threshold.

### Claim 65

(canceled)

### Claim 66 (depends on 60)

The two-stage distortion limiter according to claim 60, wherein the first calculator updates the saturation detection counter to the maximum between 0 and a difference between the saturation detection counter and a constant if (a) a parameter produced by a sound signal decoder indicates no bit errors in a bitstream received by the sound signal decoder, (b) the detected amplitude value is equal to or lower than a first given threshold and/or the saturation detection counter is equal to 0, and (c) the detected amplitude value is equal to or lower than a second given threshold.

### Claim 67 (depends on 58)

The two-stage distortion limiter according to claim 58, wherein the saturation detector comprises a second calculator responsive to the saturation detection flag equal to a saturation indicating value for updating the control gain.

### Claim 68

(canceled)

### Claim 69 (depends on 67)

The two-stage distortion limiter according to claim 67, wherein the second calculator calculates a gain correction factor as a function of the detected amplitude value and a sound signal limiter threshold, and uses the gain correction factor to update the control gain.

### Claim 70 (depends on 69)

The two-stage distortion limiter according to claim 69, wherein the second calculator uses another, constant correction factor to update the control gain if the gain correction factor is lower than a certain threshold and performs no updating of the control gain if the gain correction factor is equal to or larger than the certain threshold.

### Claim 71

(canceled)

### Claim 72

A two-stage distortion limiter for limiting distortion in a sound signal, comprising:
a first stage comprising:
a level detector for detecting an amplitude value of the sound signal and for computing a control gain using the detected amplitude value;
an attenuator of the level of the sound signal using the control gain; and
a second stage comprising:
a saturation detector for detecting saturation in the sound signal and for updating the control gain in response to detection of saturation.

### Claim 73

A two-stage distortion limiter for limiting distortion in a sound signal, comprising:
at least one processor; and
a memory coupled to the processor and storing non-transitory instructions that when executed cause the processor to:
in a first stage:
detect an amplitude value of the sound signal and compute a control gain using the detected amplitude value;
attenuate the level of the sound signal using the control gain; and
in a second stage:
detect saturation in the sound signal and update the control gain in response to detection of saturation.

### Claim 74

A two-stage method for limiting distortion in a sound signal, comprising:
in a first stage:
detecting an amplitude value of the sound signal and computing a control gain using the detected amplitude value;
attenuating the level of the sound signal using the control gain; and
in a second stage:
detecting saturation in the sound signal and updating the control gain in response to detection of saturation.

### Claim 75 (depends on 74)

The two-stage distortion limiting method according to claim 74, wherein the detected amplitude value of the sound signal is a peak value of the sound signal.

### Claim 76 (depends on 74)

The two-stage distortion limiting method according to claim 74, wherein the sound signal comprises a plurality of channels and wherein the two-stage distortion limiting method is a two-stage multi-channel distortion limiting method of which the first and second stages are applied to every channel of the sound signal.

### Claim 77 (depends on 74)

The two-stage distortion limiting method according to claim 74, wherein detecting the sound signal amplitude value and computing the control gain comprises comparing the detected amplitude value with a sound signal limiter threshold to compute the control gain.

### Claim 78 (depends on 77)

The two-stage distortion limiting method according to claim 77, wherein, if the detected amplitude value is equal to or lower than the limiter threshold, detecting the sound signal amplitude value and computing the control gain comprises setting the control gain to 1.

### Claim 79 (depends on 77)

The two-stage distortion limiting method according to claim 77, wherein, if the detected amplitude value is larger than the limiter threshold, detecting the sound signal amplitude value and computing the control gain comprises selecting the control gain as the larger of (a) a ratio between the detected amplitude value and the limiter threshold and (b) a lowest gain limit.

### Claim 80 (depends on 74)

The two-stage distortion limiting method according to claim 74, comprising, in the first stage, calculating an attack/release time parameter defining a shorter or longer attack/release time depending on transient versus non-transient characteristics of the sound signal.

### Claim 81 (depends on 80)

The two-stage distortion limiting method according to claim 80, wherein the sound signal is formed of sound signal samples, and wherein attenuating the level of the sound signal comprises:
gain filtering, using the attack/release time parameter and the control gain, to obtain a gain per sample of the sound signal; and
applying the gain per sample to the respective samples of the sound signal and obtain a distortion-limited sound signal.

### Claim 82

(canceled)

### Claim 83 (depends on 74)

The two-stage distortion limiting method according to claim 74, wherein detecting saturation in the sound signal and updating the control gain comprises calculating a saturation detection flag indicative of detection of saturation of the sound signal.

### Claim 84

(canceled)

### Claim 85 (depends on 83, 84)

The two-stage distortion limiting method according to claim 83 or 84, wherein calculating the saturation detection flag comprises updating a saturation detection counter which stores a probability that saturation is present in a current sound signal processing frame.

### Claim 86 (depends on 85)

The two-stage distortion limiting method according to claim 85, wherein a sound signal decoder produces a parameter indicative of bit errors in a bitstream received by the sound signal decoder, and wherein calculating the saturation detection flag comprises updating the saturation detection counter to a maximum value thereof and setting the saturation detection flag to a saturation indicating value when the produced parameter indicates bit errors in the bitstream.

### Claim 87 (depends on 85)

The two-stage distortion limiting method according to claim 85, wherein calculating the saturation detection flag comprises setting the saturation detection flag to a saturation indicating value when (a) a parameter produced by a sound signal decoder indicates no bit errors in a bitstream received by the sound signal decoder, and (b) the detected amplitude value is larger than a given threshold and the saturation detection counter is larger than 0.

### Claim 88 (depends on 85)

The two-stage distortion limiting method according to claim 85, wherein, if (a) a parameter produced by a sound signal decoder indicates no bit errors in a bitstream received by the sound signal decoder, (b) the detected amplitude value is not larger than a first given threshold and/or the saturation detection counter is not larger than 0, and (c) the detected amplitude value is larger than a second given threshold, calculating the saturation detection flag comprises setting the saturation detection flag to a saturation indicating value and updating the saturation detection counter to the minimum between a maximum value of the saturation detection counter and the sum of the saturation detection counter and a constant.

### Claim 89 (depends on 85)

The two-stage distortion limiting method according to claim 85, wherein calculating the saturation detection flag comprises setting the saturation detection flag to a saturation indicating value if (a) a parameter produced by a sound signal decoder indicates bit errors in a bitstream received by the sound signal decoder, (b) the detected amplitude value is larger than a first given threshold and the saturation detection counter is larger than 0, or (c) the detected amplitude value is larger than a second given threshold.

### Claim 90

(canceled)

### Claim 91 (depends on 85)

The two-stage distortion limiting method according to claim 85, wherein calculating the saturation detection flag comprises updating the saturation detection counter to the maximum between 0 and a difference between the saturation detection counter and a constant if (a) a parameter produced by a sound signal decoder indicates no bit errors in a bitstream received by the sound signal decoder, (b) the detected amplitude value is equal to or lower than a first given threshold and/or the saturation detection counter is equal to 0, and (c) the detected amplitude value is equal to or lower than a second given threshold.

### Claim 92 (depends on 83)

The two-stage distortion limiting method according to claim 83, wherein detecting saturation in the sound signal and updating the control gain comprises updating the control gain in response to the saturation detection flag equal to a saturation indicating value.

### Claim 93

(canceled)

### Claim 94 (depends on 92)

The two-stage distortion limiting method according to claim 92, wherein updating the control gain comprises calculating a gain correction factor as a function of the detected amplitude value and a sound signal limiter threshold, and using the gain correction factor to update the control gain.

### Claim 95 (depends on 94)

The two-stage distortion limiting method according to claim 94, wherein updating the control gain comprises using another, constant correction factor to update the control gain if the gain correction factor is lower than a certain threshold and wherein no updating of the control gain is performed if the gain correction factor is equal to or larger than the certain threshold.

### Claim 96

(canceled)

### Claim 97 (depends on 49)

The two-stage distortion limiter according to claim 49, wherein the sound signal is an output sound signal synthesis from a sound signal decoder.

### Claim 98 (depends on 74)

The two-stage distortion limiting method according to claim 74, wherein the sound signal is an output sound signal synthesis from a sound signal decoder.
