Patent ID: 8600764

Claim:
A quantization method performed by an audio encoder, the quantization method comprising: calculating an absolute value of a maximum frequency spectrum of a first frame of audio data received from an external source by analyzing frequency spectrum data of the first frame; setting an initial value of a common scale factor to be used to quantize the first frame of audio data based on the calculated absolute value of the maximum frequency spectrum of the first frame and an absolute value of a maximum frequency spectrum of a second frame of audio data, which has been calculated prior to calculating the absolute value of a maximum frequency spectrum of the first frame; and quantizing the frequency spectrum data of the first frame of audio data based on the set initial value of the common scale factor, wherein setting the initial value of the common scale factor to be used to quantize the first frame of audio data comprises: comparing the absolute value of the maximum frequency spectrum of the first frame of audio data and the absolute value of the maximum frequency spectrum of the second frame of audio data, using a corresponding comparison algorithm; and calculating the initial value of the common scale factor used to quantize the first frame of audio data using a calculation algorithm corresponding to a result of the comparison, wherein comparing the absolute value of the maximum frequency spectrum of the first frame of audio data and the absolute value of the maximum frequency spectrum of the second frame of audio data comprises: calculating a first binary log value by applying a binary log to the absolute value of the maximum frequency spectrum of the first frame of audio data; calculating a second binary log value by applying a binary log to the absolute value of the maximum frequency spectrum of the second frame of audio data; and calculating, a difference value between the first binary log value and the second binary log value.