# US 2011/0238424 A1 · Method and apparatus for encoding and decoding excitation patterns from which the masking levels for an audio signal encoding and decoding are determined

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

- Number: US 2011/0238424 A1
- Document ID: US20110238424A1
- Status: Published application
- Kind: A1
- Application number: 12/932,894
- Filed: 2011-03-09
- Published: 2011-09-29
- Earliest claimed: 2010-03-24
- Assignees: Thomson Licensing
- Inventors: Florian Keiler; Oliver Wuebbolt; Johannes Boehm
- Web page: https://patentgrep.com/patent/US20110238424A1

## CPC

- G10L 19/038: Vector quantisation, e.g. TwinVQ audio
- G10H 2220/311: with controlled tactile or haptic feedback effect; output interfaces therefor
- G10L 19/008: Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
- G10L 19/022: Blocking, i.e. grouping of samples in time; Choice of analysis windows; Overlap factoring
- G10L 19/10: the excitation function being a multipulse excitation
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10H: ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE

## Abstract

For the quantisation of spectral data in an audio transform encoder psycho-acoustic information is required, i.e. an approximation of the true masking threshold. According to the invention, for each spectrum to be quantised in the audio signal encoding, an excitation pattern is computed and coded for both long and short window/transform lengths. The excitation patterns are grouped together in a variable-size matrix. A pre-determined sorting order with a fixed number of values only is applied to the excitation pattern data matrix values, and by that re-ordering a quadratic matrix is formed to which matrix' bit planes a SPECK encoding is applied.

## Claims

### Claim at position 1

1-13. (canceled)

### Claim 14

Method for encoding excitation patterns from which the masking levels for an audio signal encoding are determined following a corresponding excitation pattern decoding, wherein for said audio signal encoding said audio signal is processed successively using different window and spectral transform lengths and a section of the audio signal representing a given multiple of the longest transform length is denoted a frame, and wherein said excitation patterns are related to a spectral representation of successive sections of said audio signal, said method including the steps:
a) forming, for a current frame of said audio signal, in each case for a corresponding group of successive excitation patterns an excitation pattern matrix P, wherein for each one of said different spectral transform lengths a corresponding excitation pattern is included in said matrix P, and taking the logarithm of each matrix P entry,
and wherein, in case the resulting matrix size is not suited for the transform of the following step, the size of the matrix is increased by copying a necessary number of times the values of an excitation pattern located at the matrix border;
b) applying a two-dimensional transform on the logarithmized matrix P values, resulting in matrix PT;
c) applying a pre-determined sorting order to the coefficients in said matrix PT, said pre-determined sorting order depending on the matrix size, which matrix size depends on the number of non-longest transform lengths in the current frame and is represented by a corresponding sorting index,
and, taking only a fixed number of values of the corresponding sorting path starting from the first value, forming a quadratic version PTq of matrix PT with these values;
d) carrying out a SPECK encoding for matrix PTq, in which SPECK encoding bit planes of the matrix PTq are processed and a successive partitioning is used for locating and coding the positions of the corresponding coefficient bits in said bit planes.

### Claim 15 (depends on 14)

Method for decoding excitation patterns that were encoded according to the method of claim 14, from which excitation patterns the masking levels for an encoded audio signal decoding are determined, wherein for said audio signal decoding said audio signal is processed successively using different window and spectral inverse transform lengths and a section of the audio signal representing a given multiple of the longest transform length is denoted a frame, and wherein said excitation patterns are related to a spectral representation of successive sections of said audio signal, said method including the steps:
a) on the corresponding data received from the bitstream, carrying out a corresponding SPECK decoding for said quadratic matrix PTq;
b) appending zeros to the reconstructed matrix PTq data in order to regain the original number of data in the sorting path as used in the encoding,
and converting back these data to the reconstructed matrix PT by applying according to the sorting index for the current matrix—the inverse sorting order as used in the encoding, wherein that sorting index is also used to establish the appropriate matrix size;
c) applying on matrix PT the corresponding inverse two-dimensional transform and the inverse logarithm in order to regain the reconstructed excitation pattern matrix P.

### Claim 16 (depends on 14)

Method according to claim 14, wherein between steps b) and c) the size of matrix PT is reduced by removing at least one matrix border column or row that represents frequencies statistically having the lowest magnitudes.

### Claim 17 (depends on 15)

Method according to claim 15, wherein a window type code for signalling the current window and spectral transform length and optionally a sorting index signalling the current matrix size are included in the encoded audio signal bitstream.

### Claim 18 (depends on 15)

Method according to claim 15, wherein between steps b) and c) the missing values for the matrix border columns or lines—that represented frequencies statistically having the lowest magnitudes—are filled with zeros in order to regain said reconstructed matrix PT.

### Claim 19 (depends on 15)

Method according to claim 15, wherein the matrix size and thereby the sorting index is automatically determined from the number of short windows per frame.

### Claim 20 (depends on 14)

Method according to claim 14, wherein said window and spectral transform lengths have two types: long and short, and wherein the short windows are preceded by a start window and succeeded by a stop window.

### Claim 21 (depends on 14)

Method according to claim 14, wherein the bits representing the signs of the values of matrix PTq are included without a specific encoding in the encoded audio signal bitstream.

### Claim 22 (depends on 14)

Method according to claim 14, wherein in case that audio signal is a multi-channel audio signal, for a current frame in all channels the same matrix size is used in the excitation pattern encoding and the individual matrices are coded in at least one of the following multi-channel coding modes k:
Interleaved excitation patterns per channel;
Combined matrix with channel data;
One individual matrix for each channel,
and wherein code representing said coding modes k is included in the bitstream and is correspondingly used in the excitation pattern decoding processing.

### Claim 23

Audio signal encoder in which excitation patterns are encoded from which the masking levels for an encoding of said audio signal are determined following a corresponding excitation pattern decoding, wherein for encoding said audio signal it is processed successively using different window and spectral transform lengths and a section of the audio signal representing a given multiple of the longest transform length is denoted a frame, and wherein said excitation patterns are related to a spectral representation of successive sections of said audio signal, said apparatus including:
means being adapted for forming, for a current frame of said audio signal, in each case for a corresponding group of successive excitation patterns an excitation pattern matrix P, wherein for each one of said different spectral transform lengths a corresponding excitation pattern is included in said matrix P, and for taking the logarithm of each matrix P entry,
and wherein, in case the resulting matrix size is not suited for the transform of the following step, the size of the matrix is increased by copying a necessary number of times the values of an excitation pattern located at the matrix border,
and wherein a two-dimensional transform is applied on the logarithmized matrix P values, resulting in matrix PT,
and wherein a pre-determined sorting order is applied to the coefficients in said matrix PT, said pre-determined sorting order depending on the matrix size, which matrix size depends on the number of non-longest transform lengths in the current frame and is represented by a corresponding sorting index,
and wherein, taking only a fixed number of values of the corresponding sorting path starting from the first value, a quadratic version PTq of matrix PT is formed with these values;
means being adapted for carrying out a SPECK encoding for matrix PTq, in which SPECK encoding bit planes of the matrix PTq are processed and a successive partitioning is used for locating and coding the positions of the corresponding coefficient bits in said bit planes.

### Claim 24 (depends on 14)

Audio signal decoder in which excitation patterns encoded according to the method of claim 14 are decoded and used for determining the masking levels for the decoding of the encoded audio signal, wherein for decoding said audio signal it is processed successively using different window and spectral inverse transform lengths and a section of the audio signal representing a given multiple of the longest transform length is denoted a frame, and wherein said excitation patterns are related to a spectral representation of successive sections of said audio signal, said apparatus including:
means being adapted for carrying out—on the corresponding data received from the bitstream—a corresponding SPECK decoding for said quadratic matrix PTq,
and for appending zeros to the reconstructed matrix PTq data in order to regain the original number of data in the sorting path as used in the encoding,
and for converting back these data to the reconstructed matrix PT by applying according to the sorting index for the current matrix—the inverse sorting order as used in the encoding, wherein that sorting index is also used to establish the appropriate matrix size;
and for applying on matrix PT the corresponding inverse two-dimensional transform and the inverse logarithm in order to regain the reconstructed excitation pattern matrix P;
means being adapted for calculating from the excitation patterns of matrix P said masking thresholds;
means being adapted for decoding and re-quantising said encoded audio signal using said masking thresholds, and for inverse transforming the resulting signal and for applying on it an overlap+add processing.

### Claim 25 (depends on 23)

Apparatus according to claim 23, wherein between said two-dimensional transform and said applying of said pre-determined sorting order the size of matrix PT is reduced by removing at least one matrix border column or line that represents frequencies statistically having the lowest magnitudes.

### Claim 26 (depends on 23)

Apparatus to claim 23, wherein a window type code for signalling the current window and spectral transform length and optionally a sorting index signalling the current matrix size are included in the encoded audio signal bitstream.

### Claim 27 (depends on 24)

Apparatus according to claim 24, wherein following said inverse sorting the missing values for the matrix border columns or lines—that represented frequencies statistically having the lowest magnitudes—are filled with zeros in order to regain said reconstructed matrix PT.

### Claim 28 (depends on 24)

Apparatus according to claim 24, wherein the matrix size and thereby the sorting index is automatically determined from the number of short windows per frame.

### Claim 29 (depends on 23)

Apparatus according to claim 23, wherein said window and spectral transform lengths have two types: long and short, and wherein the short windows are preceded by a start window and succeeded by a stop window.

### Claim 30 (depends on 23)

Apparatus according to claim 23, wherein the bits representing the signs of the values of matrix PTq are included without a specific encoding in the encoded audio signal bitstream.

### Claim 31 (depends on 14)

Digital audio signal that is encoded according to the method of claim 14.

### Claim 32 (depends on 31)

Storage medium that contains or stores, or has recorded on it, a digital audio signal according to claim 31.
