# US 2020/0402524 A1 · Coding apparatus, coding method, program, and recording medium

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

- Number: US 2020/0402524 A1
- Document ID: US20200402524A1
- Status: Published application
- Kind: A1
- Application number: 16/971,977
- Filed: 2019-02-19
- Published: 2020-12-24
- Earliest claimed: 2018-03-02
- Assignees: Nippon Telegraph and Telephone Corporation
- Applicants: Nippon Telegraph and Telephone Corporation
- Inventors: Ryosuke SUGIURA; Yutaka KAMAMOTO; Takehiro MORIYA
- Web page: https://patentgrep.com/patent/US20200402524A1

## CPC

- G10L 19/035: Scalar quantisation
- G10L 19/038: Vector quantisation, e.g. TwinVQ audio
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

Efficient assignment of bit numbers is performed even under a low bit rate condition. A quantizer 12 obtains a quantized spectral sequence from a frequency spectral sequence. An integer transformer 13 obtains a unified quantized spectral sequence by obtaining, by a bijective transformation, a transformed integer for each of the sets, each being made up of integer values, obtained from the quantized spectral sequence. An integer encoder 15 obtains an integer code by encoding the unified quantized spectral sequence using a bit assignment sequence. An object-to-be-encoded estimator 18 obtains an estimated unified spectral sequence from the frequency spectral sequence by a transformation which is performed by the integer transformer 13 or a transformation that approximates the magnitude relationship between values before and after the above transformation. A bit assigner 14 obtains a bit assignment sequence and a bit assignment code from the estimated unified spectral sequence. A quantization step size obtainer 11 obtains a quantization step size from the estimated unified spectral sequence and the bit assignment sequence.

## Claims

### Claim 1

An encoder that encodes a frequency spectral sequence on an individual frame, which is a predetermined time segment, basis, the encoder comprising:
a quantizer that obtains a quantized spectral sequence which is a sequence of integer values by dividing frequency spectral values of the frequency spectral sequence by a quantization step size s;
an integer transformer that obtains N′ sets, each being made up of integer values, by combining a plurality of quantized spectra (p quantized spectra) contained in the quantized spectral sequence into a group in accordance with a predetermined rule and obtains a unified quantized spectral sequence of N′ unified quantized spectra by obtaining one integer value (hereinafter referred to as a “transformed integer”) for each of the N′ sets, each being made up of integer values, by a bijective transformation; and
an integer encoder that obtains an integer code by encoding each of the N′ unified quantized spectra contained in the unified quantized spectral sequence using N′ bit assignment values contained in a bit assignment sequence, wherein
the encoder further comprises:
an object-to-be-encoded estimator that obtains an estimated unified spectral sequence of N′ estimated unified spectra from the frequency spectral sequence by a transformation that is the same as a transformation which is performed by the integer transformer or a transformation that approximates a magnitude relationship between values before and after the transformation which is performed by the integer transformer;
a bit assigner that obtains the bit assignment sequence and a bit assignment code corresponding to the bit assignment sequence from the estimated unified spectral sequence; and
a quantization step size obtainer that obtains the quantization step size s from the estimated unified spectral sequence and the bit assignment sequence.

### Claim 2 (depends on 1)

The encoder according to claim 1, wherein
the bit assigner obtains, of a plurality of candidates for the bit assignment sequence, a candidate corresponding to a sequence, which is a sequence of powers of 2 whose exponents are bit assignment values of a bit assignment sequence, whose shape is closest to a shape of the estimated unified spectral sequence as the bit assignment sequence, and
the quantization step size obtainer obtains a sequence of division results by dividing each estimated unified spectral value of the estimated unified spectral sequence by a value of a power of 2 whose exponent is a bit assignment value, which corresponds to the estimated unified spectral value, of the bit assignment sequence, and determines a value which is greater than or equal to and close to a p-th root of a maximum value of amplitudes of values of the sequence of the division results as the quantization step size s.

### Claim 3 (depends on 1, 2)

The encoder according to claim 1 or 2, wherein
the integer transformer obtains, on an assumption that M is the number of integer values contained in the set made up of integer values, x1, x2, . . . , xM are integer values contained in the set made up of integer values, and x′i is a nonnegative integer value that satisfies the following formula in terms of the integer value xi
if(xi>0) x′i=2|xi|−1
otherwise x′i=2|xi|,
transformed integer y, which is the one integer value, by calculating the following formula
y=ƒM(x′1,x′2,□,x′M), and
a function fM′ which is used in the above formula is a recursive function that calculates the following formula
f
M
′

(
x
1
′
,
x
2
′
,
•

,
x
M
′
′
)
=
∑
m
=
0
K
-
1

C
m
M
′

x
ma


x
′


M
′
-
m
+
C
K
M
′

f
M
′
-
K

(
x
~
1
′
,
x
~
2
′
,
•
,
x
~
M
′
-
K
′
)
+
∑
i
=
0
K
-
1

C
K
-
i
M
′
-
m
i
+
1
on an assumption that x′max is a maximum value of x′1, x′2, . . . , x′M′, K is the number of integer values, of x′1, x′2, . . . , x′M′, which take the maximum value, m1, m2, . . . , mK are indexes of the integer values, of x′1, x′2, . . . , x′M′, which take the maximum value, ˜x′1, ˜x′2, . . . , ˜x′M′-K are integer values of x′1, x′2, . . . , x′M′ from which the K integer values that take the maximum value were removed, aCb is the number of combinations of selections of b integer values from a integer values, and f0 is 0.

### Claim 4

An encoding method of encoding a frequency spectral sequence on an individual frame, which is a predetermined time segment, basis, the encoding method comprising:
a quantization step in which a quantizer obtains a quantized spectral sequence which is a sequence of integer values by dividing frequency spectral values of the frequency spectral sequence by a quantization step size s;
an integer transformation step in which an integer transformer obtains N′ sets, each being made up of integer values, by combining a plurality of quantized spectra (p quantized spectra) contained in the quantized spectral sequence into a group in accordance with a predetermined rule and obtains a unified quantized spectral sequence of N′ unified quantized spectra by obtaining one integer value (hereinafter referred to as a “transformed integer”) for each of the N′ sets, each being made up of integer values, by a bijective transformation; and
an integer encoding step in which an integer encoder obtains an integer code by encoding each of the N′ unified quantized spectra contained in the unified quantized spectral sequence using N′ bit assignment values contained in a bit assignment sequence, wherein
the encoding method further comprises:
an object-to-be-encoded estimation step in which an object-to-be-encoded estimator obtains an estimated unified spectral sequence of N′ estimated unified spectra from the frequency spectral sequence by a transformation that is the same as a transformation which is performed in the integer transformation step or a transformation that approximates a magnitude relationship between values before and after the transformation which is performed in the integer transformation step;
a bit assignment step in which a bit assigner obtains the bit assignment sequence and a bit assignment code corresponding to the bit assignment sequence from the estimated unified spectral sequence; and
a quantization step size obtaining step in which a quantization step size obtainer obtains the quantization step size s from the estimated unified spectral sequence and the bit assignment sequence.

### Claim 5 (depends on 4)

The encoding method according to claim 4, wherein
the bit assignment step obtains, of a plurality of candidates for the bit assignment sequence, a candidate corresponding to a sequence, which is a sequence of powers of 2 whose exponents are bit assignment values of a bit assignment sequence, whose shape is closest to a shape of the estimated unified spectral sequence as the bit assignment sequence, and
the quantization step size obtaining step obtains a sequence of division results by dividing each estimated unified spectral value of the estimated unified spectral sequence by a value of a power of 2 whose exponent is a bit assignment value, which corresponds to the estimated unified spectral value, of the bit assignment sequence, and determines a value which is greater than or equal to and close to a p-th root of a maximum value of amplitudes of values of the sequence of the division results as the quantization step size s.

### Claim 6 (depends on 4, 5)

The encoding method according to claim 4 or 5, wherein
the integer transformation step obtains, on an assumption that M is the number of integer values contained in the set made up of integer values, x1, x2, . . . , xM are integer values contained in the set made up of integer values, and x′i is a nonnegative integer value that satisfies the following formula in terms of the integer value xi
if(xi>0) x′i=2|xi|−1
otherwise x′i=2|xi|,
a transformed integer y, which is the one integer value, by calculating the following formula
y=ƒM(x′1,x′2,□,x′M), and
a function fM′ which is used in the above formula is a recursive function that calculates the following formula
f
M
′

(
x
1
′
,
x
2
′
,
•

,
x
M
′
′
)
=
∑
m
=
0
K
-
1

C
m
M
′

x
ma


x
′


M
′
-
m
+
C
K
M
′

f
M
′
-
K

(
x
~
1
′
,
x
~
2
′
,
•
,
x
~
M
′
-
K
′
)
+
∑
i
=
0
K
-
1

C
K
-
i
M
′
-
m
i
+
1
on an assumption that x′max is a maximum value of x′1, x′2, . . . , x′M′, K is the number of integer values, of x′1, x′2, . . . , x′M′, which take the maximum value, m1, m2, . . . , mK are indexes of the integer values, of x′1, x′2, . . . , x′M′, which take the maximum value, ˜x′1, ˜x′2, . . . , ˜x′M′-K are integer values of x′1, x′2, . . . , x′M′ from which the K integer values that take the maximum value were removed, aCb is the number of combinations of selections of b integer values from a integer values, and f0 is 0.

### Claim 7

(canceled)

### Claim 8 (depends on 4, 5)

A non-transitory computer-readable recording medium on which a program for making a computer execute each step of the encoding method according to claim 4 or 5 is recorded.
