# US 10,957,331 B2 · Phase reconstruction in a speech decoder

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

- Number: US 10,957,331 B2
- Document ID: US10957331B2
- Status: Granted
- Kind: B2
- Application number: 16/222,833
- Filed: 2018-12-17
- Published: 2020-06-18
- Granted: 2021-03-23
- Earliest claimed: 2018-12-17
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Soren Skak Jensen; Sriram Srinivasan; Koen Bernard Vos
- Web page: https://patentgrep.com/patent/US10957331B2

## CPC

- G10L 19/0018: {Speech coding using phonetic or linguistical decoding of the source; Reconstruction using text-to-speech synthesis}
- G10L 19/08: Determination or coding of the excitation function; Determination or coding of the long-term prediction parameters
- G10L 19/265: {Pre-filtering, e.g. high frequency emphasis prior to encoding}
- G10L 21/038: using band spreading techniques
- G10L 25/12: the extracted parameters being prediction coefficients
- G10L 25/69: for evaluating synthetic or decoded voice signals
- G10L 25/72: for transmitting results of analysis
- G10L 19/0212: {using orthogonal transformation}
- G10L 19/125: Pitch excitation, e.g. pitch synchronous innovation CELP [PSI-CELP]
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

Innovations in phase quantization during speech encoding and phase reconstruction during speech decoding are described. For example, to encode a set of phase values, a speech encoder omits higher-frequency phase values and/or represents at least some of the phase values as a weighted sum of basis functions. Or, as another example, to decode a set of phase values, a speech decoder reconstructs at least some of the phase values using a weighted sum of basis functions and/or reconstructs lower-frequency phase values then uses at least some of the lower-frequency phase values to synthesize higher-frequency phase values. In many cases, the innovations improve the performance of a speech codec in low bitrate scenarios, even when encoded data is delivered over a network that suffers from insufficient bandwidth or transmission quality problems.

## Claims

### Claim 1

In a computer system that implements a speech decoder, a method comprising:
receiving encoded data as part of a bitstream;
decoding the encoded data to reconstruct speech, including:
decoding residual values, including:
decoding a set of phase values, including reconstructing at least some of the set of phase values using a linear component and a weighted sum of basis functions; and
reconstructing the residual values based at least in part on the set of phase values; and
filtering the residual values according to linear prediction coefficients; and
storing the reconstructed speech for output.

### Claim 2 (depends on 1)

The method of claim 1, wherein the reconstructing the residual values includes:
repeating the set of phase values for one or more subframes of a current frame;
based at least in part on the repeated sets of phase values for the respective subframes, reconstructing complex amplitude values for the respective subframes; and
applying an inverse frequency transform to the complex amplitude values for the respective subframes.

### Claim 3 (depends on 1)

The method of claim 1, wherein the reconstructed phase values are a first subset of the set of phase values, and wherein the decoding the set of phase values further includes using at least some of the first subset to synthesize a second subset of the set of phase values, each of the second subset having a frequency above a cutoff frequency.

### Claim 4 (depends on 3)

The method of claim 3, wherein the decoding the set of phase values further includes determining the cutoff frequency based at least in part on a target bitrate for the encoded data and/or pitch cycle information.

### Claim 5 (depends on 1)

The method of claim 1, wherein the basis functions are sine functions.

### Claim 6 (depends on 1)

The method of claim 1, wherein the decoding the set of phase values further includes:
decoding a set of coefficients that weight the basis functions;
decoding an offset value and a slope value that parameterize the linear component; and
using the set of coefficients, the offset value, and the slope value as part of the reconstructing the at least some of the set of phase values.

### Claim 7 (depends on 1)

The method of claim 1, wherein the decoding the set of phase values further includes, based at least in part on a target bitrate for the encoded data, determining a count of coefficients that weight the basis functions.

### Claim 8 (depends on 1)

The method of claim 1, wherein the reconstructing the residual values includes:
based at least in part on the set of phase values, reconstructing complex amplitude values for one or more subframes;
adaptively smoothing the complex amplitude values for the respective subframes based at least in part on one or more of pitch cycle information and differences in amplitude values across boundaries;
applying an inverse frequency transform to the smoothed complex amplitude values for the respective subframes; and
selectively adding noise to the residual values based at least in part on correlation values and a sparseness value.

### Claim 9

One or more computer-readable memory or storage devices having stored thereon computer-executable instructions for causing one or more processors, when programmed thereby, to perform operations of a speech decoder, the operations comprising:
receiving encoded data as part of a bitstream;
decoding the encoded data to reconstruct speech, including:
decoding residual values, including:
decoding a set of phase values, including reconstructing a first subset of the set of phase values and using at least some of the first subset to synthesize a second subset of the set of phase values, each of the second subset having a frequency above a cutoff frequency; and
reconstructing the residual values based at least in part on the set of phase values; and
filtering the residual values according to linear prediction coefficients; and
storing the reconstructed speech for output.

### Claim 10 (depends on 9)

The one or more computer-readable memory or storage devices of claim 9, wherein the decoding the set of phase values further includes determining the cutoff frequency based at least in part on a target bitrate for the encoded data and/or pitch cycle information.

### Claim 11 (depends on 9)

The one or more computer-readable memory or storage devices of claim 9, wherein the using the at least some of the first subset to synthesize the second subset includes:
determining a pattern in a range of the first subset; and
repeating the pattern above the cutoff frequency.

### Claim 12 (depends on 11)

The one or more computer-readable memory or storage devices of claim 11, wherein the determining the pattern includes:
identifying the range of the first subset; and
determining, as the pattern, differences between adjacent phase values in the range of the first subset.

### Claim 13 (depends on 12)

The one or more computer-readable memory or storage devices of claim 12, wherein the using the at least some of the first subset to synthesize the second subset further includes:
after the repeating, integrating the differences between adjacent phase values to determine the second subset.

### Claim 14 (depends on 9)

The one or more computer-readable memory or storage devices of claim 9, wherein the reconstructing the first subset uses a linear component and a weighted sum of basis functions.

### Claim 15

A computer system comprising:
an input buffer, implemented in memory of the computer system, configured to receive encoded data as part of a bitstream;
a speech decoder, implemented using one or more processors of the computer system, configured to decode the encoded data to reconstruct speech, the speech decoder including:
a residual decoder configured to decode residual values, wherein the residual decoder is configured to:
decode a set of phase values, including performing operations to reconstruct a first subset of the set of phase values using a linear component and a weighted sum of basis functions and/or use at least some of the first subset to synthesize a second subset of the set of phase values, each of the second subset having a frequency above a cutoff frequency; and
reconstruct the residual values based at least in part on the set of phase values; and
one or more synthesis filters configured to filter the residual values according to linear prediction coefficients; and
an output buffer configured to store the reconstructed speech for output.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein, to decode the set of phase values, the residual decoder is further configured to determine the cutoff frequency based at least in part on a target bitrate for the encoded data and/or pitch cycle information.

### Claim 17 (depends on 15)

The computer system of claim 15, wherein, to decode the set of phase values, the residual decoder is further configured to perform operations to:
based at least in part on target bitrate for the encoded data, determine a count of coefficients that weight the basis functions;
decode a set of coefficients;
decode an offset value and a slope value that parameterize the linear component; and
use the set of coefficients, the offset value, and the slope value to reconstruct the first subset.

### Claim 18 (depends on 15)

The computer system of claim 15, wherein the speech decoder further includes:
a filter bank configured to combine multiple bands that result from filtering of the residual values in corresponding bands by synthesis filters, wherein the first subset is for a low band among the corresponding bands of the residual values, and wherein the second subset is for a high band among the corresponding bands of the residual values.

### Claim 19 (depends on 15)

The computer system of claim 15, wherein the speech decoder further includes one or more of:
(a) one or more LPC recovery modules configured to reconstruct the linear prediction coefficients; and
(b) a post-processing filter configured to selectively filter the reconstructed speech.

### Claim 20 (depends on 15)

The computer system of claim 15, wherein the residual decoder is further configured to:
reconstruct sets of magnitude values for one or more subframes;
reconstruct complex amplitude values for the respective subframes based at least in part on the sets of magnitude values for the respective subframes and the set of phase values;
adaptively smooth the complex amplitude values for the respective subframes based at least in part on one or more of pitch cycle information and differences in amplitude values across boundaries;
apply an inverse one-dimensional frequency transform to the smoothed complex amplitude values for the respective subframes;
decode a sparseness value and correlation values; and
selectively add noise to the residual values based at least in part on the correlation values and the sparseness value.
