# US 2006/0069555 A1 · Method, system and apparatus for allocating bits in perceptual audio coders

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

- Number: US 2006/0069555 A1
- Document ID: US20060069555A1
- Status: Published application
- Kind: A1
- Application number: 10/939,533
- Filed: 2004-09-13
- Published: 2006-03-30
- Earliest claimed: 2004-09-13
- Assignees: Ittiam Systems (P) Ltd.
- Inventors: Preethi Konda; Vinod Prakash
- Web page: https://patentgrep.com/patent/US20060069555A1

## CPC

- G10L 19/035: Scalar quantisation
- G10L 19/002: Dynamic bit allocation (for perceptual audio coders G10L19/032)
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

A non-iterative and computationally efficient bit allocation technique for perceptual audio coders employing uniform quantization schemes. This is achieved by computing a target MNR for all critical bands in a frame using a target bit rate and associated SMRs. Associated SNRs are then computed for the critical bands using the computed target MNR and the associated SMRs. Bits are then allocated to the critical bands based on the computed associated SNRs.

## Claims

### Claim 1

A method of allocating bits in perceptual audio coders comprising:
computing a target MNR for all critical bands in a frame using a target bit rate and associated SMRs;
computing associated SNRs for the critical bands in the frame using the target MNR and the associated SMRs; and
allocating bits to the critical bands based on the associated SNRs.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
partitioning the signal into a sequence of successive frames; and
grouping spectral lines in each frame to form a plurality of critical bands, wherein each critical band is associated with an SMR provided by a psychoacoustic model.

### Claim 3 (depends on 1)

The method of claim 1, wherein the target MNR is computed using the equation,
target
⁢
⁢
MNR
=
(
6
⁢
TB
-
∑
NB
⁢
SMR
b
⁢
l
b
)
/
N
wherein TB is the Target bit rate, SMRb is the SMR of critical band b, N is the number of frequency lines in the frame, NB is the number of the critical bands in the frame, and lb is the number of frequency lines in the critical band b.

### Claim 4 (depends on 1)

The method of claim 1, wherein the SNRs for the critical bands in the frame are computed using the equation,
SNRb=target MNR+SMRb
wherein SNRb is the signal-to-noise ratio of critical band b, MNR is the target MNR, and SMRb is the signal-to-mask ratio for the critical band b.

### Claim 5 (depends on 1)

The method of claim 1, wherein, in allocating the bits to the critical bands, the bits in the critical bands are computed using the equation,
Bb=lbSNRb/6
wherein Bb is the bits consumed by critical band indexed by b, lb is the length of the critical band b, and SNRb is the SNR of the critical band b.

### Claim 6 (depends on 1)

The method of claim 1, wherein allocating the bits to the critical bands based on the associated SNRs comprises:
determining whether any of the SNRs associated with the critical bands are negative; and
if not, allocating the bits to the critical bands based on the associated SNRs.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
if so, sorting the critical bands in the frame in a descending order of associated SMRs to form a sorted critical band array;
performing a binary search on the sorted critical band array to determine a critical band boundary such that the SNR of a critical band at the critical band boundary is positive and when a critical band to the right of the determined critical band boundary is included in the bit allocation the SNR of the critical band at the critical band boundary becomes negative and computing a final target MNR;
removing the critical bands that fall to the right of the determined critical band boundary from the sorted critical band array to form a revised sorted critical band array;
computing revised SNRs for associated critical bands in the revised sorted critical band array using the final target MNR and the associated SMRs; and
allocating bits to the critical bands in the revised sorted critical band array based on the associated revised SNRs.

### Claim 8

An article comprising:
a storage medium having instructions that, when executed by a computing platform, result in execution of a method, comprising:
computing a target MNR for all critical bands in a frame using a target bit rate and associated SMRs;
computing associated SNRs for the critical bands in the frame using the target MNR and the associated SMRs; and
allocating bits to the critical bands based on the associated SNRs.

### Claim 9 (depends on 8)

The article of claim 8, further comprising;
partitioning the signal into a sequence of successive frames; and
grouping spectral lines in each frame to form a plurality of critical bands, wherein each critical band is associated with an SMR provided by a psychoacoustic model.

### Claim 10 (depends on 8)

The article of claim 8, wherein allocating bits to each critical band based on the associated SNR comprises:
determining whether any of the SNRs associated with the critical bands are negative; and
if not, allocating the bits to the critical bands based on the associated SNRs.

### Claim 11 (depends on 10)

The article of claim 10, further comprising:
if so, sorting the critical bands in the frame in a descending order of associated SMRs to form a sorted critical band array;
performing a binary search on the sorted critical band array to determine a critical band boundary such that the SNR of a critical band at the critical band boundary is positive and when a critical band to the right of the determined critical band boundary is included in the bit allocation the SNR of the critical band at the critical band boundary becomes negative and computing a final target MNR;
removing the critical bands that fall to the right of the determined critical band boundary from the sorted critical band array to form a revised sorted critical band array;
computing revised SNRs for associated critical bands in the revised sorted critical band array using the final target MNR and the associated SMRs; and
allocating bits to the critical bands in the revised sorted critical band array based on the associated revised SNRs.

### Claim 12

An apparatus comprising:
an encoder that computes a target MNR for all critical bands in a frame using a target bit rate and associated SMRs, and wherein the encoder computes SNRs for all critical bands using the target MNR; and
a bit allocator that allocates bits to all the critical bands based on the associated SNRs.

### Claim 13 (depends on 12)

The apparatus of claim 12, further comprising:
an input module that partitions an audio signal into a sequence of successive frames; and
a time-to-frequency transformation module that performs frequency analysis on each frame and groups spectral lines in each frame to form associated critical bands; and
a psychoacoustic analysis module that computes SMRs for associated critical bands.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein the encoder computes the target MNR using the equation,
target
⁢
⁢
MNR
=
(
6
⁢
TB
-
∑
NB
⁢
SMR
b
⁢
l
b
)
/
N
wherein TB is the Target bit rate, SMRb is the SMR of critical band b, N is the number of frequency lines in the frame, NB is the number of the critical bands in the frame, and lb is the number of frequency lines in critical band b.

### Claim 15 (depends on 12)

The apparatus of claim 12, wherein the encoder computes SNRs for the critical bands in the frame using the equation,
SNRb=target MNR+SMRb
wherein SNRb is the signal-to-noise ratio of critical band b, MNR is the target MNR, and SMRb is the signal-to-mask ratio for the critical band b.

### Claim 16 (depends on 12)

The apparatus of claim 12, wherein the bit allocator allocates bits to the critical bands using the equation,
Bb=lbSNRb/6
wherein Bb is the bits consumed by critical band indexed by b, lb is the length of the critical band b, and SNRb is the SNR of the critical band b.

### Claim 17 (depends on 12)

The apparatus of claim 12, wherein the bit allocator allocates bits to the critical bands based on the associated SNRs if all the SNRs are not negative.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the encoder forms a sorted critical band array based on descending order of associated SMRs if one or more of the computed SNRs are negative, wherein the encoder performs a binary search on the sorted critical band array to determine a critical band boundary such that a SNR at the critical band boundary is positive and when a critical band to the right of the determined critical band boundary is included in the bit allocation, wherein the encoder removes the critical bands that fall to the right of the determined critical band boundary from the sorted critical band array to form a revised sorted critical band array and computes a final target MNR, wherein the encoder computes revised SNRs for the critical bands in the revised sorted critical band array using the final target MNR and the associated SMRs, and wherein the bit allocator allocates bits to the critical bands in the revised sorted critical band array based on the associated revised SNRs.

### Claim 19

A system comprising:
a bus;
a processor coupled to the bus;
a memory coupled to the processor;
a network interface coupled to the processor and the memory; and
an audio coder coupled to the network interface and the processor, wherein the audio coder further comprises:
an encoder that computes a target MNR for all critical bands in a frame using a target bit rate and associated SMRs, and wherein the encoder computes SNRs for all critical bands using the target MNR; and
a bit allocator that allocates bits to all critical bands based on the associated SNRs.

### Claim 20 (depends on 19)

The system of claim 19, wherein the audio coder further comprising:
an input module that partitions an audio signal into a sequence of successive frames; and
a time-to-frequency transformation module that groups the spectral lines in each frame and forms critical bands by determining associated SMRs.

### Claim 21 (depends on 19)

The system of claim 19, wherein the encoder computes the target MNR using the equation,
target
⁢
⁢
MNRvalue
=
(
6
⁢
TB
-
∑
NB
⁢
SMR
b
⁢
l
b
)
/
N
wherein TB is the Target bit rate, SMRb is the SMR of critical band b, N is the number of frequency lines in the frame, NB is the number of the critical bands in the frame, and Ib is the number of frequency lines in critical band b.
