×

Pulse encoding and decoding method and pulse codec

  • US 9,858,938 B2
  • Filed: 10/28/2016
  • Issued: 01/02/2018
  • Est. Priority Date: 06/24/2010
  • Status: Active Grant
First Claim
Patent Images

1. A terminal device with an audio coder comprising a processor and non-transitory computer readable medium storing instructions for execution by the processor such that when the instructions are executed by the processor, the processor is configured to perform:

  • determining pulses that are on T tracks of a speech signal and required to be encoded, wherein T is an integer greater than or equal to 2;

    separately collecting, according to positions on the T tracks, statistics about pulses on each track and to be encoded, wherein the statistics include (a) a number Nt of positions that have pulses on each track, wherein the subscript t represents a tth track, t∈

    [0, T−

    1], (b) distribution of the Nt positions, and (c) a number of pulses on each position that has a pulse;

    determining a first index of each track according to the number of the Nt positions, wherein the first index corresponds to all possible distribution situations of the Nt positions;

    determining a second index of each track according to a distribution of the Nt positions, wherein the second index indicates, among the all possible distribution situations corresponding to the first index, a distribution situation corresponding to a current distribution of the Nt positions;

    determining a third index of each of the T tracks by mapping situations in which the Nt positions have custom charactert pulses to situations that the Nt positions have custom charactert

    Nt pulses for the tth track, wherein (a) custom charactert represents a total number of pulses to be encoded on the tth track, (b) all possible distribution situations of the custom charactert

    Nt pulses on the Nt positions are arrayed according to a set order, and an arrayed serial number is used as the third index indicating the number of pulses on a position that has a pulse;

    generating a joint index comprising information of the first, second, and third indexes of each of the tracks;

    comparing the joint index with an adjustment threshold (THR), whereinTHR≦

    2Bmax

    Imax(T), Imax(T) represents an upper limit value of the joint index, and Bmax represents an upper limit value of the number of bits used for encoding the joint index; and

    if the joint index is smaller than THR, the joint index is encoded by using a first number of code bits then transmitted;

    otherwise, the joint index plus an offset value THR0 is encoded by using a second number of code bits then transmitted, wherein (a) THR≦

    THR0

    2Bmax

    Imax(T), (b) the first number is smaller than the second number, (c) the second number is smaller than or equal to Bmax, and (d) the first number and the second number are both positive integers.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×