Patent ID: 8909520

Claim:
A pulse audio encoding method performed by a pulse encoder which is implemented by hardware, comprising: obtaining algebraic codebook pulses that are on T tracks and to be encoded, wherein T is an integer greater than or equal to 2; separately collecting, according to positions, statistics about at least one pulse that is on each track and to be encoded, to obtain the number N t of positions that have at least one pulse on each track, distribution of the positions that have at least one pulse on each track, and the number of pulses on each position that has at least one pulse, wherein the subscript t represents a t th track, and tε[0, T−1]; according to a {N 0 , N 1 , . . . , N T-1 } combination of the number of positions that have at least one pulse on the T tracks, determining a first index I1, wherein the first index I1 corresponds to all possible distribution situations of positions that have at least one pulse and are on each track; determining a second index I2 t of each track separately according to distribution of positions that have at least one pulse and are on each track, wherein the second index indicates, among all possible distribution situations corresponding to the first index I1, a distribution situation which corresponds to distribution of current positions having at least one pulse on a corresponding track; determining a third index I3 t of each track separately according to the number of pulses on each position that has at least one pulse and is on each track; and generating a code index Ind, wherein the code index comprises information of the first index, the second index of each track and the third index of each track.