Patent ID: 7698130

Claim:
An audio encoding method capable of fast bit rate control and being executed by a processor, the method, comprising: converting audio sampling data into frequency domain data by using the processor; adjusting a scalefactor value in each predetermined frequency band based on an available bits and allowed distortion of a psychoacoustic model to allocate a number of necessary bits to the frequency domain data by using the processor; quantizing the frequency domain data by using the processor; and generating a bit stream based on the quantized data by using the processor, wherein quantizing the frequency domain data comprises: obtaining available bits for the frequency domain data; obtaining the common scalefactor value satisfying that the number of used bits is not larger than the number of available bits, using a difference of the available bits and the used bits to quantize the audio data; calculating quantization noise in each predetermined quantization band; and adjusting a scalefactor value of a quantization band in which the quantization noise exceeds the allowed distortion of the psychoacoustic model to quantize the audio data.