IP Library Granted Patent US 12,469,503
Granted Patent B2
US 12,469,503 · App. 18/440,210 · Granted Nov 11, 2025

Method for determining audio coding/decoding mode and related product

Inventors: Bin Wang (Shenzhen, CN); Haiting Li (Beijing, CN); Lei Miao (Beijing, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G10L19/008G10L19/22
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,469,503
App. No.
18/440,210
Granted
Nov 11, 2025
Kind
B2
Abstract

A method for determining an audio coding mode and a related apparatus are provided. The method may include: determining a channel combination scheme for a current frame, where the determined channel combination scheme for the current frame is one of a plurality of channel combination schemes; and determining a coding mode of the current frame based on a channel combination scheme for a previous frame and the channel combination scheme for the current frame, where the coding mode of the current frame is one of a plurality of coding modes. The technical solutions provided in embodiments of this application help improve encoding quality.

Claims (68)

1 . A method for determining a channel combination scheme, comprising:

obtaining a first signal type of a current frame of an audio signal, wherein the first signal type is either a near in phase signal or a near out of phase signal, and wherein the current frame includes a left channel signal and a right channel signal;

obtaining a previous channel combination scheme of a first previous frame of the audio signal, wherein the previous channel combination scheme is either an anticorrelated signal channel combination scheme corresponding to the near out of phase signal or a correlated signal channel combination scheme corresponding to the near in phase signal;

obtaining a first signal-to-noise ratio of the left channel signal and a second signal-to-noise ratio of the right channel signal;

determining whether the first signal-to-noise ratio is greater than a preset threshold;

determining whether the second signal-to-noise ratio is greater than the preset threshold; and

in response to determining that the first signal type of the current frame is the near in phase signal, the previous channel combination scheme is the anticorrelated signal channel combination scheme, and both the first signal-to-noise ratio and the second signal-to-noise ratio are less than the preset threshold, determining that an initial channel combination scheme of the current frame is the correlated signal channel combination scheme.

2 . The method according to claim 1 , further comprising:

determining whether the initial channel combination scheme needs to be modified; and

in response to determining that the initial channel combination scheme needs to be modified, obtaining a final channel combination scheme by modifying the initial channel combination scheme.

3 . The method according to claim 2 , wherein the determining whether the initial channel combination scheme needs to be modified comprises:

obtaining a channel combination ratio factor modification flag of the first previous frame;

determining whether the current frame meets a switching condition when the channel combination ratio factor modification flag indicates that a channel combination ratio factor does not need to be modified; and

determining the final channel combination scheme based on a result of determining whether the current frame meets the switching condition.

4 . The method according to claim 3 , wherein the determining whether the current frame meets a switching condition comprises:

obtaining a second signal type of a primary channel signal of the first previous frame;

obtaining a third signal type of a primary channel signal of a second previous frame prior to the first previous frame; and

determining that the current frame meets the switching condition when the second signal type is UNVOICED_CLAS and the third signal type is VOICED_TRANSITION.

5 . The method according to claim 3 , wherein the determining whether the current frame meets a switching condition comprises:

obtaining a fourth signal type of a secondary channel signal of the first previous frame;

obtaining a fifth signal type of a secondary channel signal of a second previous frame prior to the first previous frame; and

determining that the current frame meets the switching condition when the fourth signal type is UNVOICED_CLAS and the fifth signal type is VOICED_TRANSITION.

6 . An apparatus comprising:

at least one processor; and

one or more memories coupled to the at least one processor and storing programming instructions, which when executed by the at least one processor, cause the apparatus to:

obtain a first signal type of a current frame of an audio signal, wherein the first signal type is either a near in phase signal or a near out of phase signal, and wherein the current frame includes a left channel signal and a right channel signal;

obtain a previous channel combination scheme of a first previous frame of the audio signal, wherein the previous channel combination scheme is either an anticorrelated signal channel combination scheme corresponding to the near out of phase signal or a correlated signal channel combination scheme corresponding to the near in phase signal;

obtain a first signal-to-noise ratio of the left channel signal and a second signal-to-noise ratio of the right channel signal;

determine whether the first signal-to-noise ratio is greater than a preset threshold;

determine whether the second signal-to-noise ratio is greater than the preset threshold; and

in response to determining that the first signal type of the current frame is the near in phase signal, the previous channel combination scheme is the anticorrelated signal channel combination scheme, and both the first signal-to-noise ratio and the second signal-to-noise ratio are less than the preset threshold, determine that an initial channel combination scheme of the current frame is the correlated signal channel combination scheme.

7 . The apparatus according to claim 6 , wherein the programming instructions, when executed by the at least one processor, cause the apparatus further to:

determine whether the initial channel combination scheme needs to be modified; and

in response to determining that the initial channel combination scheme needs to be modified, obtain a final channel combination scheme by modifying the initial channel combination scheme.

8 . The apparatus according to claim 7 , wherein the programming instructions, when executed by the at least one processor, cause the apparatus further to:

obtain a channel combination ratio factor modification flag of the first previous frame;

determine whether the current frame meets a switching condition when the channel combination ratio factor modification flag indicates that a channel combination ratio factor does not need to be modified; and

determine the final channel combination scheme based on a result of determining whether the current frame meets the switching condition.

9 . The apparatus according to claim 8 , wherein the programming instructions, when executed by the at least one processor, cause the apparatus further to:

obtain a second signal type of a primary channel signal of the first previous frame;

obtain a third signal type of a primary channel signal of a second previous frame prior to the first previous frame; and

determine that the current frame meets the switching condition when the second signal type is UNVOICED_CLAS and the third signal type is VOICED_TRANSITION.

10 . The apparatus according to claim 8 , wherein the programming instructions, when executed by the at least one processor, cause the apparatus further to:

obtain a fourth signal type of a secondary channel signal of the first previous frame;

obtain a fifth signal type of a secondary channel signal of a second previous frame prior to the first previous frame; and

determine that the current frame meets the switching condition when the fourth signal type is UNVOICED_CLAS and the fifth signal type is VOICED_TRANSITION.

11 . A non-transitory computer-readable storage medium storing computer instructions, which when executed by one or more processors, cause the one or more processors to perform operations, the operations comprising:

obtaining a first signal type of a current frame of an audio signal, wherein the first signal type is either a near in phase signal or a near out of phase signal, and wherein the current frame includes a left channel signal and a right channel signal;

obtaining a previous channel combination scheme of a first previous frame of the audio signal, wherein the previous channel combination scheme is either an anticorrelated signal channel combination scheme corresponding to the near out of phase signal or a correlated signal channel combination scheme corresponding to the near in phase signal;

obtaining a first signal-to-noise ratio of the left channel signal and a second signal-to-noise ratio of the right channel signal;

determining whether the first signal-to-noise ratio is greater than a preset threshold;

determining whether the second signal-to-noise ratio is greater than the preset threshold; and

in response to determining that the first signal type of the current frame is the near in phase signal, the previous channel combination scheme is the anticorrelated signal channel combination scheme, and both the first signal-to-noise ratio and the second signal-to-noise ratio are less than the preset threshold, determining that an initial channel combination scheme of the current frame is the correlated signal channel combination scheme.

12 . The non-transitory computer-readable storage medium according to claim 11 , wherein the operations further comprise:

determining whether the initial channel combination scheme needs to be modified; and

in response to determining that the initial channel combination scheme needs to be modified, obtaining a final channel combination scheme by modifying the initial channel combination scheme.

13 . The non-transitory computer-readable storage medium according to claim 12 , wherein the determining whether the initial channel combination scheme needs to be modified comprises:

obtaining a channel combination ratio factor modification flag of the first previous frame;

determining whether the current frame meets a switching condition when the channel combination ratio factor modification flag indicates that a channel combination ratio factor does not need to be modified; and

determining the final channel combination scheme based on a result of determining whether the current frame meets the switching condition.

14 . The non-transitory computer-readable storage medium according to claim 13 , wherein the determining whether the current frame meets a switching condition comprises:

obtaining a second signal type of a primary channel signal of the first previous frame;

obtaining a third signal type of a primary channel signal of a second previous frame prior to the first previous frame; and

determining that the current frame meets the switching condition when the second signal type is UNVOICED_CLAS and the third signal type is VOICED_TRANSITION.

15 . The non-transitory computer-readable storage medium according to claim 13 , wherein the determining whether the current frame meets a switching condition comprises:

obtaining a fourth signal type of a secondary channel signal of the first previous frame;

obtaining a fifth signal type of a secondary channel signal of a second previous frame prior to the first previous frame; and

determining that the current frame meets the switching condition when the fourth signal type is UNVOICED_CLAS and the fifth signal type is VOICED_TRANSITION.

Priority Claims (1)
CN 201710679081.6 · Aug 10, 2017 · national
Continuity (4)
Continuation 17400289 · Aug 12, 2021
Continuation 16785274 · Feb 7, 2020
Continuation PCTCN2018100100 · Aug 10, 2018
Related Publication 20240282318A1 · Aug 22, 2024
References Cited (51)
US 8417100B2 · Liebchen · 2013 [cited by applicant]
US 10319385B2 · Vaillancourt · 2019 [cited by examiner]
US 20070009227A1 · Liebchen · 2007 [cited by applicant]
US 20080253576A1 · Choo et al. · 2008 [cited by applicant]
US 20120035940A1 · Jeong et al. · 2012 [cited by applicant]
US 20120224702A1 · Den Brinker et al. · 2012 [cited by applicant]
US 20130262130A1 · Ragot et al. · 2013 [cited by applicant]
US 20140195253A1 · Vasilache et al. · 2014 [cited by applicant]
US 20140205101A1 · Yamamoto et al. · 2014 [cited by applicant]
US 20150235647A1 · Zopf · 2015 [cited by applicant]
US 20150371643A1 · Ramo et al. · 2015 [cited by applicant]
US 20170076732A1 · Liu et al. · 2017 [cited by applicant]
US 20170178659A1 · Moriya et al. · 2017 [cited by applicant]
US 20170206912A1 · Grant et al. · 2017 [cited by applicant]
US 20170223356A1 · Sung et al. · 2017 [cited by applicant]
US 20170243589A1 · Krueger et al. · 2017 [cited by applicant]
US 20180233154A1 · Vaillancourt et al. · 2018 [cited by applicant]
US 20190035409A1 · Atti et al. · 2019 [cited by applicant]
US 20190304479A1 · Yamamoto et al. · 2019 [cited by applicant]
US 20190348052A1 · Friedrich et al. · 2019 [cited by applicant]
US 20200126585A1 · Wang · 2020 [cited by applicant]
CN 101036414A · 2007 [cited by applicant]
CN 101218628A · 2008 [cited by applicant]
CN 101292285A · 2008 [cited by applicant]
CN 102037507A · 2011 [cited by applicant]
CN 102388417A · 2012 [cited by applicant]
CN 103384900A · 2013 [cited by applicant]
CN 103915098A · 2014 [cited by applicant]
CN 104364842A · 2015 [cited by applicant]
CN 104919524A · 2015 [cited by applicant]
CN 105074818A · 2015 [cited by applicant]
CN 106409310A · 2017 [cited by applicant]
CN 106486129A · 2017 [cited by applicant]
CN 106796801A · 2017 [cited by applicant]
EP 3067886A1 · 2016 [cited by applicant]
JP 2013044921A · 2013 [cited by applicant]
KR 20110020846A · 2011 [cited by applicant]
KR 102387159B1 · 2022 [cited by applicant]
TW 201614638A · 2016 [cited by applicant]
TW 201717663A · 2017 [cited by applicant]
TW 201719634A · 2017 [cited by applicant]
WO 2011013981A2 · 2011 [cited by applicant]
WO 2011034374A2 · 2011 [cited by applicant]
WO 2011039668A1 · 2011 [cited by applicant]
WO 2016142376A1 · 2016 [cited by applicant]
WO 2017049396A1 · 2017 [cited by applicant]
Christian Helmrich:“Efficient Perceptual Audio Coding Using Cosine and Sine Modulated Lapped Transforms”, May 2017, total 172 pages. [cited by applicant]
Bertrand Fatus et al., “Master Thesis :Parametric Coding for Spatial Audio”,Jul.-Dec. 2015,total:70pags. [cited by applicant]
K. Kj rling et al.,.“AC-4 The Next Generation Audio Codec”,Presented at the 140th ConventionJun. 4, 2016 7 Paris, France,total:10pages. [cited by applicant]
7 kHz audio-coding within 64 kbit/s: New Annex D with stereo embedded extension ITU-T Draft Study Period 2009-2012,total:52pages. [cited by applicant]
Recommendation ITU-T G.722. 7 kHz audio-coding within 64 kbit/s. Sep. 2012. total 274 pages. [cited by applicant]