IP Library Granted Patent US 9,325,286
Granted Patent B1
US 9,325,286 · App. 13/858,818 · Granted Apr 26, 2016

Audio clipping prevention

Inventor: Jun Yang (San Jose, CA)
Assignee: Amazon Technologies, Inc.
H03G3/20H03G7/00
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 9,325,286
App. No.
13/858,818
Granted
Apr 26, 2016
Kind
B1
Abstract

Audio clipping is prevented by attenuating an audio signal in accordance with values retrieved from a gain table. Corresponding amplitude values of a stereo audio signal are evaluated to determine a maximum of the values. The amount by which the maximum exceeds a predetermined threshold is used to calculate a table index, which is used to retrieve a gain value from the gain table. The gain value is then applied to the audio signal. The gain table is configured so that increasing index values produce decreasing gain values.

Claims (55)

1. An audio processing device, comprising:

one or more audio processing components configured to process a sequence of stereo amplitudes, a first stereo amplitude in the sequence of stereo amplitudes comprising a left audio amplitude value and a right audio amplitude value;

a lookup table having gain values, wherein a first gain value in the lookup table has a first corresponding index value and a second gain value in the lookup table has a second corresponding index value, the second gain value being less than the first gain value;

the one or more audio processing components configured to perform acts comprising:

determining an absolute value of the left audio amplitude value and an absolute value of the right audio amplitude value of the first stereo amplitude;

determining a maximum of the absolute values of the left and right audio amplitude values;

determining an amount by which the maximum of the absolute values of the left and right amplitude values exceeds a threshold, wherein the threshold is less than a clipping value;

determining a particular index value as a mathematical product of a constant and the amount by which the maximum of the absolute values of the left and right amplitudes exceeds the threshold;

retrieving, from the lookup table, one of the gain values that corresponds to the particular index value; and

attenuating the left audio amplitude value and the right audio amplitude value of the first stereo amplitude sample in accordance with the retrieved one of the gain values to prevent signal clipping.

2. The computing device of claim 1 , wherein the gain values of the lookup table decrease in accordance with a power function of the corresponding index values.

3. The computing device of claim 1 , wherein the gain values of the lookup table decrease from a unity gain value as a function of the corresponding index values.

4. The computing device of claim 1 , wherein attenuating the left and right audio amplitude values comprises multiplying the left and right audio amplitude values by the retrieved one of the gain values.

5. One or more non-transitory computer-readable media storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to perform acts comprising:

receiving a sequence of stereo amplitudes, a first stereo amplitude in the sequence of stereo amplitudes comprising a first audio amplitude value and a second audio amplitude value;

determining a first absolute value of the first audio amplitude value;

determining a second absolute value of the second audio amplitude value;

determining a maximum absolute value of the first absolute value and the second absolute value;

determining an amount by which the maximum absolute value exceeds a threshold;

determining an index value as a mathematical product of a constant and the amount;

retrieving, from a lookup table, a first gain value of gain values that corresponds to the index value; and

attenuating the first audio amplitude value in accordance with the first gain value;

attenuating the second audio amplitude value in accordance with the first gain value to prevent signal clipping; and

wherein the lookup table includes the gain values, wherein a first gain value has a first index value and a second gain value has a second index value, the second gain value being less than the first gain value.

6. The one or more non-transitory computer-readable media of claim 5 , wherein the threshold is less than a clipping value.

7. The one or more non-transitory computer-readable media of claim 5 , wherein the gain values of the lookup table decrease as a function of increasing index values.

8. The one or more non-transitory computer-readable media of claim 5 , wherein the gain values of the lookup table decrease as a power function of increasing index values.

9. The one or more non-transitory computer-readable media of claim 5 , wherein the gain values of the lookup table decrease from a unity gain as a function of increasing index values.

10. The one or more non-transitory computer-readable media of claim 5 , wherein attenuating the first and second audio amplitude values comprises multiplying the first and second audio amplitude values by the first gain value.

11. The one or more non-transitory computer-readable media of claim 5 , the acts further comprising multiplying the determined amount by a predetermined constant to determine the index value.

12. The one or more non-transitory computer-readable media of claim 5 , wherein

the first audio amplitude value comprises a left audio amplitude value, and

the second audio amplitude value comprises a right audio amplitude value.

13. A method comprising:

receiving a sequence of stereo amplitudes, a first stereo amplitude in the sequence of stereo amplitudes comprising a first audio amplitude value and a second audio amplitude value;

by one or more processors determining a first absolute value of the first audio amplitude value;

determining a second absolute value of the second audio amplitude value;

determining a maximum absolute value of the first absolute value and the second absolute value;

determining an amount by which the maximum absolute value exceeds a threshold;

determining an index value as a mathematical product of a constant and the amount;

retrieving, from a lookup table, a first gain value of gain values that corresponds to the index value;

attenuating the first audio amplitude value in accordance with the first gain value;

attenuating the second audio amplitude value in accordance with the first gain value to prevent signal clipping; and

wherein the lookup table includes the gain values, wherein a first gain value has a first index value and a second gain value has a second index value, the second gain value being less than the first gain value.

14. The method of claim 13 , wherein the threshold is less than a clipping value.

15. The method of claim 13 , wherein the gain values of the lookup table decrease as a function of increasing index values.

16. The method of claim 13 , wherein the gain values of the lookup table decrease as a power function of increasing index values.

17. The method of claim 13 , wherein the gain values of the lookup table decrease from a unity gain as a function of increasing index values.

18. The method of claim 13 , wherein determining an adjusted first audio amplitude value comprises multiplying the first audio amplitude value by the first gain value.

19. The method of claim 13 , wherein attenuating the first and second audio amplitude values comprises multiplying the first and second audio amplitude values by the first gain value.

20. The method of claim 13 , wherein determining the index value further comprises multiplying a predetermined constant by the amount by which the maximum absolute value exceeds the threshold.

21. The method of claim 13 , wherein increasing index values correspond to decreasing gain values in the lookup table.

22. The method of claim 13 , wherein

the first audio amplitude value comprises a left audio amplitude value, and

the second audio amplitude value comprises a right audio amplitude value.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 12, 2015
From: RAWLES LLC
To: AMAZON TECHNOLOGIES, INC.
Reel/Frame 037103/0084 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 8, 2013
From: YANG, JUN
To: RAWLES LLC
Reel/Frame 030173/0092 →