# US 2018/0322887 A1 · Coding mode determination method and apparatus, audio encoding method and apparatus, and audio decoding method and apparatus

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

- Number: US 2018/0322887 A1
- Document ID: US20180322887A1
- Status: Published application
- Kind: A1
- Application number: 16/039,110
- Filed: 2018-07-18
- Published: 2018-11-08
- Earliest claimed: 2012-11-13
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Ki-hyun CHOO; Anton Victorovich POROV; Konstantin Sergeevich OSIPOV; Nam-suk LEE
- Web page: https://patentgrep.com/patent/US20180322887A1

## CPC

- G10L 19/12: the excitation function being a code excitation, e.g. in code excited linear prediction [CELP] vocoders
- G10L 19/22: Mode decision, i.e. based on audio signal content versus external parameters
- G10L 19/00: Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis (in musical instruments G10H)
- G10L 19/20: using sound class specific coding, hybrid encoders or object based coding
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

Provided are a method and an apparatus for determining an encoding mode for improving the quality of a reconstructed audio signal. A method of determining an encoding mode includes determining one from among a plurality of encoding modes including a first encoding mode and a second encoding mode as an initial encoding mode in correspondence to characteristics of an audio signal, and if there is an error in the determination of the initial encoding mode, generating a modified encoding mode by modifying the initial encoding mode to a third encoding mode.

## Claims

### Claim 1

A method of encoding an audio signal, the method comprising:
receiving the audio signal;
obtaining, performed by at least one processor, signal characteristics of a current frame of the audio signal;
selecting, performed by the at least one processor, a class of the current frame in the audio signal from among a plurality of classes including a music class and a speech class, based on the signal characteristics of the current frame;
obtaining feature parameters including at least two tonalities and a linear prediction error, the feature parameters being obtained based on a plurality of frames including the current frame;
generating a plurality of conditions from one or a combination of the obtained feature parameters;
determining, performed by the at least one processor, whether an error occurs in the selected class of the current frame based on whether at least one of the plurality of conditions is met;
when the error occurs in the selected class of the current frame, correcting, performed by the at least one processor, the selected class of the current frame;
encoding, performed by at least one processor, the current frame, based on either the corrected class or the selected class of the current frame; and
generating a bitstream based on the encoded current frame,
wherein the at least two tonalities are obtained from at least two frequency regions, and
wherein the correcting comprises:
when the error occurs in the selected class of the current frame and the selected class of the current frame is the speech class, correcting the selected class of the current frame from the speech class to the music class; and
when the error occurs in the selected class of the current frame and the selected class of the current frame is the music class, correcting the selected class of the current frame from the music class to the speech class.

### Claim 2 (depends on 1)

The method of claim 1, wherein the correcting is performed based on at least two independent states.

### Claim 3 (depends on 1)

The method of claim 1, wherein the feature parameters further comprise a difference between a voicing parameter and a correlation parameter.

### Claim 4 (depends on 1)

The method of claim 1, wherein the determining of whether the error occurs in the selected class of the current frame occurs comprises:
determining whether the current frame has speech characteristics when the current frame is classified as the music class; and
determining whether the current frame has music characteristics when the current frame is classified as the speech class.

### Claim 5 (depends on 1)

The method of claim 1, wherein the correcting comprises:
correcting a classification of the current frame, when the current frame is classified as the music class and has speech characteristics; and
correcting the classification of the current frame, when the current frame is classified as the speech class and has music characteristics.

### Claim 6 (depends on 1)

The method of claim 1, wherein the determining is performed further based on a hangover parameter which is used to prevent frequent switching between coding modes.

### Claim 7 (depends on 1)

The method of claim 1, wherein the selecting is performed by using the Gaussian mixture model(GMM).

### Claim 8 (depends on 1)

The method of claim 1, wherein the feature parameters include first tonality, second tonality and third tonality.

### Claim 9 (depends on 8)

The method of claim 8, wherein the first tonality is obtained from a subband of 0 to 1 kHz, the second tonality is obtained from a subband of 1 to 2 kHz and the third tonality is obtained from a subband of 2 to 4 kHz.
