# US 2016/0329059 A1 · Method and device for pulse encoding, method and device for pulse decoding

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0329059 A1
- Document ID: US20160329059A1
- Status: Published application
- Kind: A1
- Application number: 15/151,508
- Filed: 2016-05-11
- Published: 2016-11-10
- Earliest claimed: 2009-06-19
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: FUWEI MA; DEJUN ZHANG; MINJIE XIE; QING ZHANG
- Web page: https://patentgrep.com/patent/US20160329059A1

## CPC

- G10L 19/113: Regular pulse excitation
- G10L 19/002: Dynamic bit allocation (for perceptual audio coders G10L19/032)
- G10L 19/04: using predictive techniques
- H03M 7/30: Compression (speech analysis-synthesis for redundancy reduction G10L19/00; for image communication H04N); Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H03M 7/40: Conversion to or from variable length codes, e.g. Shannon-Fano code, Huffman code, Morse code
- H03M 7/4068: {Parameterized codes}
- G10L 19/10: the excitation function being a multipulse excitation
- G10L 19/12: the excitation function being a code excitation, e.g. in code excited linear prediction [CELP] vocoders
- G10L 2019/0016: {Codebook for LPC parameters}
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

The present application discloses a pulse encoding method for use by a voice encoder. An initial number of coding bits is determined according to number of pulses in an input signal. An index value is calculated according to information of the pulses in the input signal. The index value is compared with an adjustment threshold value. If the index value is smaller than the adjustment threshold value, the index value is encoded using a reduced number of encoding bits. If the index value is not smaller than the adjustment threshold value, the index value plus an offset value is encoded using the initial number of encoding bits. The reduced number of encoding bits is smaller than the initial number of encoding bits, and the offset value is greater than or equal to the adjustment threshold value.

## Claims

### Claim 1

A pulse encoding method for use by a voice encoder, comprising:
determining an initial number of coding bits according to number of pulses in an input signal;
calculating an index value according to information of the pulses in the input signal;
comparing the index value with an adjustment threshold value; and
if the index value is smaller than the adjustment threshold value, encoding the index value using a reduced number of encoding bits,
if the index value is not smaller than the adjustment threshold value, encoding the index value plus an offset value using the initial number of encoding bits,
wherein the reduced number of encoding bits is smaller than the initial number of encoding bits, and the initial number of encoding bits and the reduced number of encoding bits are both positive integers,
and wherein the offset value is greater than or equal to the adjustment threshold value.

### Claim 2 (depends on 1)

The pulse encoding method according to claim 1, wherein the initial number of encoding bits is obtained by rounding up a theoretical value of encoding bits required to encode the number of the pulses.

### Claim 3 (depends on 1)

The pulse encoding method according to claim 1, wherein the index value is calculated based on the number of the pulses on a track of the input signal, locations of the pulses on the track and symbol of each pulse.

### Claim 4 (depends on 2)

The pulse encoding method according to claim 2, further comprising:
determining a value range corresponding to the initial number of encoding bits;
determining a codebook space corresponding to the number of pulses in the input signal, wherein a value range of the codebook space is smaller than the value range corresponding to the initial number of encoding bits; and
setting the adjustment threshold value as smaller than or equal to a difference between the value range corresponding to the initial number of encoding bits and the value range of the codebook space.

### Claim 5

A non-transitory computer readable medium having computer executable program codes stored thereon for use by a voice encoder in pulse encoding, wherein the program codes comprise instructions for:
determining an initial number of coding bits according to number of pulses in an input signal;
calculating an index value according to information of the pulses in the input signal;
comparing the index value with an adjustment threshold value; and
if the index value is smaller than the adjustment threshold value, encoding the index value using a reduced number of encoding bits,
if the index value is not smaller than the adjustment threshold value, encoding the index value plus an offset value using the initial number of encoding bits,
wherein the reduced number of encoding bits is smaller than the initial number of encoding bits, and the initial number of encoding bits and the reduced number of encoding bits are both positive integers,
and wherein the offset value is greater than or equal to the adjustment threshold value.

### Claim 6 (depends on 5)

The non-transitory computer readable medium according to claim 5, wherein the initial number of encoding bits is obtained by rounding up a theoretical value of encoding bits required to encode the number of the pulses.

### Claim 7 (depends on 5)

The non-transitory computer readable medium according to claim 5, wherein the index value is calculated based on the number of the pulses on a track of the input signal, locations of the pulses on the track and symbol of each pulse.

### Claim 8 (depends on 6)

The non-transitory computer readable medium according to claim 6, wherein the program codes further comprise instructions for:
determining a value range corresponding to the initial number of encoding bits;
determining a codebook space corresponding to the number of pulses in the input signal, wherein a value range of the codebook space is smaller than the value range corresponding to the initial number of encoding bits; and
setting the adjustment threshold value as smaller than or equal to a difference between the value range corresponding to the initial number of encoding bits and the value range of the codebook space.
