| CPC H03M 7/3082 (2013.01) [G06F 17/16 (2013.01); G10L 19/038 (2013.01); H04N 19/124 (2014.11); H04N 19/192 (2014.11); H04N 19/94 (2014.11)] | 17 Claims |

|
1. A method for encoding of an audio signal, the method comprising:
obtaining an input vector for use in encoding at least a portion of the audio signal;
determining a first energy value (EL0) that represents an energy of a first left level segment of the input vector, the first left level segment having a length LL;
determining a second energy value (ER0) that represents an energy of a first right level segment of the input vector, the first right level segment having a length LR;
allocating a number of available bits (BSEG) to the first left level segment and to the first right level segment, wherein allocating the available bits to the first left level segment and the first right level segment comprises:
determining a first number of bits (BLSEG) for the first left level segment and a second number of bits (BRSEG) for the first right level segment in dependence on i) a ratio between the length of the first left level segment (LL) and the length of the first right level segment (LR), ii) ER0, and iii) EL0, wherein
BRSEG=BSEG−BLSEG.
|