Patent ID: 8630863

Claim:
A method of encoding an audio/speech signal, the method comprising: (a) variably determining a length of a frame, that is, a processing unit of an input signal in accordance with a position of an attack on the input signal; (b) transforming, performed by at least one processor, each frame of the input signal to a frequency domain and dividing a frequency band corresponding to the frame into a plurality of sub frequency bands; and (c) if a signal of a sub frequency band is determined to be encoded in the frequency domain, encoding the signal of the sub frequency band in the frequency domain, and if the signal of the sub frequency band is determined to be encoded in a time domain, inverse transforming the signal of the sub frequency band to the time domain and encoding the inverse transformed signal in the time domain, wherein the encoding in the time domain is according to an adaptive codebook and a fixed codebook based on information related to the position of the attack of the input signal.