Patent ID: 8781822

Claim:
A method of audio or speech processing, comprising: generating, by an apparatus, a plurality of frames, each of the frames comprising a plurality of transform coefficients; allocating bits, by the apparatus, to the transform coefficients in each of the frames such that at least two of the transform coefficients in the same frame have different bit allocations and the total number of the bits allocated to the transform coefficients in at least two of the frames is equal, wherein the allocation of the bits for each of the frames is based on a selected one of a plurality of predefined bit allocation vectors in a dictionary, the selection of the selected predefined bit allocation vector being based on respective amplitudes of the transform coefficients, wherein the allocation comprises selecting one of the bit allocation vectors from the dictionary for each of the frames, wherein each of the bit allocation vectors is identified by an index; and transmitting each of the frames with the index for the bit allocation vector selected for that frame, wherein the index for each of the frames is transmitted within that frame.