(19)
(11)EP 3 157 010 B1

(12)EUROPEAN PATENT SPECIFICATION

(45)Mention of the grant of the patent:
10.06.2020 Bulletin 2020/24

(21)Application number: 15826814.4

(22)Date of filing:  01.04.2015
(51)International Patent Classification (IPC): 
G10L 19/22(2013.01)
G10L 19/12(2013.01)
G10L 25/21(2013.01)
G10L 19/02(2013.01)
G10L 25/18(2013.01)
(86)International application number:
PCT/CN2015/075645
(87)International publication number:
WO 2016/015485 (04.02.2016 Gazette  2016/05)

(54)

AUDIO CODING

AUDIOKODIERUNG

CODAGE AUDIO


(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

(30)Priority: 28.07.2014 CN 201410363905

(43)Date of publication of application:
19.04.2017 Bulletin 2017/16

(60)Divisional application:
20159183.1

(73)Proprietor: Huawei Technologies Co., Ltd.
Longgang District Shenzhen, Guangdong 518129 (CN)

(72)Inventors:
  • LIU, Zexin
    Shenzhen Guangdong 518129 (CN)
  • MIAO, Lei
    Shenzhen Guangdong 518129 (CN)

(74)Representative: Kreuz, Georg Maria 
Huawei Technologies Duesseldorf GmbH Riesstraße 25
80992 München
80992 München (DE)


(56)References cited: : 
EP-A2- 0 932 141
CN-A- 101 025 918
CN-A- 102 089 814
US-A1- 2003 004 711
CN-A- 1 969 319
CN-A- 101 145 343
CN-A- 104 143 335
  
  • "5 Functional description of the encoder", 3GPP DRAFT; 26445-C00_1_S05_S0501, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE , 16 September 2014 (2014-09-16), XP050872548, Retrieved from the Internet: URL:http://www.3gpp.org/ftp/tsg_sa/WG4_COD EC/Specs_update_after_SA65/ [retrieved on 2014-09-16]
  • SCHUYLER QUACKENBUSH: "MPEG Unified Speech and Audio Coding", IEEE MULTIMEDIA, IEEE SERVICE CENTER, NEW YORK, NY, US, vol. 20, no. 2, 1 April 2013 (2013-04-01), pages 72-78, XP011515217, ISSN: 1070-986X, DOI: 10.1109/MMUL.2013.24
  • DIETZ MARTIN ET AL: "Overview of the EVS codec architecture", 2015 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP), IEEE, 19 April 2015 (2015-04-19), pages 5698-5702, XP033064791, DOI: 10.1109/ICASSP.2015.7179063 [retrieved on 2015-08-04]
  
Note: Within nine months from the publication of the mention of the grant of the European patent, any person may give notice to the European Patent Office of opposition to the European patent granted. Notice of opposition shall be filed in a written reasoned statement. It shall not be deemed to have been filed until the opposition fee has been paid. (Art. 99(1) European Patent Convention).


Description

TECHNICAL FIELD



[0001] The present invention relates to audio coding technologies, and specifically, to an audio coding method and a related apparatus.

BACKGROUND



[0002] In an existing audio (for example, music) coding algorithm, at a same bit rate, some audio coding algorithms are limited to a particular coding bandwidth, and are mainly used to code an audio frame having a relatively low bandwidth, and some audio coding algorithms are not limited to a coding bandwidth, and are mainly used to code an audio frame having a relatively high bandwidth. Certainly, both of the two categories of audio coding algorithms have advantages and disadvantages.

[0003] However, in the prior art, during audio frame coding, a fixed coding algorithm is directly used to code an audio frame. In this way, the used audio coding algorithm can hardly ensure fine coding quality or coding efficiency.

[0004] MPEG unified Speech and Audio Coding (IEEE MULTIMEDIA, IEEE SERVICE CENTER, NEW YORK, NY, US, vol. 20, no. 2, 1 April 2013 pages 72-78) discloses that the USAC incorporates the TCX and MDCT coding architectures.

SUMMARY



[0005] The present invention provides an audio coding method and a related apparatus, to improve coding quality or coding efficiency of audio frame coding. The present invention is defined by the independent claims.

[0006] deleted

[0007] As can be seen, after a reference coding parameter of a current audio frame is acquired, a TCX algorithm or an HQ algorithm is selected based on the acquired reference coding parameter of the current audio frame, to code spectral coefficients of the current audio frame. The reference coding parameter of the current audio frame is associated with a coding algorithm used to code spectral coefficients of the current audio frame, which helps improve adaptability and matchability between the coding algorithm and the reference coding parameter of the current audio frame, and further helps improve coding quality or coding efficiency of the current audio frame.

BRIEF DESCRIPTION OF DRAWINGS



[0008] To describe the technical solutions of the present invention more clearly, in the following the accompanying drawings are briefly introduced for describing embodiments of the present invention. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention.

FIG. 1, FIG. 3, and FIG. 5 to FIG. 8 are schematic flowcharts of several audio coding methods according to examples useful for understanding the present invention;

FIG. 2 and FIG. 4 are schematic flowcharts of two audio coding methods according to embodiments of the present invention ;and

FIG. 9 and FIG. 10 are schematic diagrams of two types of audio coders according to examples useful for understanding the present invention.


DESCRIPTION OF EMBODIMENTS



[0009] The present invention provide an audio coding method and a related apparatus, to improve coding quality or coding efficiency of audio frame coding.

[0010] To make persons skilled in the art understand the technical solutions in the present invention better, the following clearly describes the technical solutions of the present invention with reference to the accompanying drawings showing preferred embodiments of the present invention. Apparently, the described embodiments are merely a part rather than all of the embodiments of the present invention.

[0011] The following gives detailed descriptions.

[0012] In the specification, claims, and accompanying drawings of the present invention, the terms "first", "second", "third", "fourth", and so on are intended to distinguish between different objects but are not intended to describe a specific order. In addition, terms "include" and "have" and any variation thereof are intended to cover non-exclusive including. For example, a process, a method, a system, a product, or a device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes an unlisted step or unit, or optionally further includes another inherent step or unit of the process, the method, the product, or the device.

[0013] The following first introduces the audio coding method provided in the embodiments of the present invention. The audio coding method provided in the embodiments of the present invention may be executed by an audio coder. The audio coder may be any apparatus that needs to collect, store, or transmit an audio signal, for example, a mobile phone, a tablet computer, a personal computer, or a notebook computer.

[0014] In one example of the audio coding method useful for understanding the present invention, the audio coding method includes: performing time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame; acquiring a reference coding parameter of the current audio frame; and if the acquired reference coding parameter of the current audio frame satisfies a first parameter condition, coding spectral coefficients of the current audio frame based on a transform coded excitation algorithm, or if the acquired reference coding parameter of the current audio frame satisfies a second parameter condition, coding spectral coefficients of the current audio frame based on a high quality transform coding algorithm.

[0015] Referring to FIG. 1, FIG. 1 is a schematic flowchart of an audio coding method according to an example useful for understanding the present invention. As shown in FIG. 1, the audio coding method provided in this example useful for understanding the present invention may include the following content:

[0016] 101: Perform time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame.

[0017] The audio frame mentioned may be a speech frame or a music frame.

[0018] 102: Acquire a reference coding parameter of the current audio frame.

[0019] 103: If the acquired reference coding parameter of the current audio frame satisfies a first parameter condition, code spectral coefficients of the current audio frame based on a transform coded excitation (English: transform coded excitation, TCX for short) coding algorithm.

[0020] 104: If the acquired reference coding parameter of the current audio frame satisfies a second parameter condition, code spectral coefficients of the current audio frame based on a high quality transform coding (English: high quality transform coding, HQ for short) algorithm.

[0021] As can be seen, in solutions of this example useful for understanding the present invention, after a reference coding parameter of a current audio frame is acquired, a TCX algorithm or an HQ algorithm is selected based on the acquired reference coding parameter of the current audio frame, to code spectral coefficients of the current audio frame. The reference coding parameter of the current audio frame is associated with a coding algorithm used to code spectral coefficients of the current audio frame, which helps improve adaptability and matchability between the coding algorithm and the reference coding parameter of the current audio frame, and further helps improve coding quality or coding efficiency of the current audio frame.

[0022] In the TCX algorithm, stripping processing is usually performed on a time-domain signal of the current audio frame. For example, a quadrature mirror filter is used to perform stripping processing on the time-domain signal of the current audio frame. In the HQ algorithm, stripping processing is not performed on the time-domain signal of the current audio frame.

[0023] According to a requirement of an application scenario, the reference coding parameter, acquired in step 102, of the current audio frame may be varied.

[0024] For example, the reference coding parameter may include at least one of the following parameters: a coding rate of the current audio frame; a peak-to-average ratio of spectral coefficients that is located within a subband z and that is of the current audio frame; an envelope deviation of spectral coefficients that is located within a subband w and that is of the current audio frame; an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame; an amplitude average of spectral coefficients that is located within a subband m and that is of the current audio frame and an amplitude average of spectral coefficients that is located within a subband n and that is of the current audio frame; a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of the current audio frame and a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame; an envelope deviation of spectral coefficients that is located within a subband r and that is of the current audio frame and an envelope deviation of spectral coefficients that is located within a subband s and that is of the current audio frame; an envelope of spectral coefficients that is located within a subband e and that is of the current audio frame and an envelope of spectral coefficients that is located within a subband f and that is of the current audio frame; or a parameter value of spectral correlation between spectral coefficients that is located within a subband p and that is of the current audio frame and spectral coefficients that is located within a subband q and that is of the current audio frame.

[0025] A larger parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame indicates stronger spectral correlation between the spectral coefficients located within the subband p and the spectral coefficients located within the subband q. The parameter value of the spectral correlation may be, for example, a normalized cross correlation parameter value.

[0026] Frequency bin ranges of the subbands may be determined according to actual needs.

[0027] Optionally, in some possible implementation manners, a highest frequency bin of the subband z may be greater than a critical frequency bin F1, and a highest frequency bin of the subband w may be greater than the critical frequency bin F1. A value range of the critical frequency bin F1 may be, for example, 6.4 kHz to 12 kHz. For example, a value of the critical frequency bin F1 may be 6.4 kHz, 8 kHz, 9 kHz, 10 kHz, or 12 kHz. Certainly, the critical frequency bin F1 may be another value.

[0028] Optionally, in some possible implementation manners, a highest frequency bin of the subband j may be greater than a critical frequency bin F2, and a highest frequency bin of the subband n is greater than the critical frequency bin F2. For example, a value range of the critical frequency bin F2 may be 4.8 kHz to 8 kHz. Specifically, for example, a value of the critical frequency bin F2 may be 6.4 kHz, 4.8 kHz, 6 kHz, 8 kHz, 5 kHz, or 7 kHz. Certainly, the critical frequency bin F2 may be another value.

[0029] Optionally, in some possible implementation manners, a highest frequency bin of the subband i may be less than the highest frequency bin of the subband j, a highest frequency bin of the subband m may be less than the highest frequency bin of the subband n, a highest frequency bin of the subband x may be less than or equal to a lowest frequency bin of the subband y, a highest frequency bin of the subband p may be less than or equal to a lowest frequency bin of the subband q, a highest frequency bin of the subband r may be less than or equal to a lowest frequency bin of the subband s, and a highest frequency bin of the subband e may be less than or equal to a lowest frequency bin of the subband f.

[0030] Optionally, in some possible implementation manners, at least one of the following conditions may be satisfied:
a lowest frequency bin of the subband w is greater than or equal to the critical frequency bin F1, a lowest frequency bin of the subband z is greater than or equal to the critical frequency bin F1, the highest frequency bin of the subband i is less than or equal to a lowest frequency bin of the subband j, the highest frequency bin of the subband m is less than or equal to a lowest frequency bin of the subband n, a lowest frequency bin of the subband j is greater than or equal to the critical frequency bin F2, a lowest frequency bin of the subband n is greater than or equal to the critical frequency bin F2, the highest frequency bin of the subband i is less than or equal to the critical frequency bin F2, the highest frequency bin of the subband m is less than or equal to the critical frequency bin F2, a lowest frequency bin of the subband j is greater than or equal to the critical frequency bin F2, or a lowest frequency bin of the subband n is greater than or equal to the critical frequency bin F2.

[0031] Optionally, in some possible implementation manners, at least one of the following conditions may be satisfied: the highest frequency bin of the subband e is less than or equal to the critical frequency bin F2, the highest frequency bin of the subband x is less than or equal to the critical frequency bin F2, the highest frequency bin of the subband p is less than or equal to the critical frequency bin F2, or the highest frequency bin of the subband r is less than or equal to the critical frequency bin F2.

[0032] Optionally, in some possible implementation manners, the highest frequency bin of the subband f may be less than or equal to the critical frequency bin F2, and certainly, the lowest frequency bin of the subband f may be greater than or equal to the critical frequency bin F2. The highest frequency bin of the subband q may be less than or equal to the critical frequency bin F2, and certainly, the lowest frequency bin of the subband q may be greater than or equal to the critical frequency bin F2. The highest frequency bin of the subband s may be less than or equal to the critical frequency bin F2, and certainly, the lowest frequency bin of the subband s may be greater than or equal to the critical frequency bin F2.

[0033] For example, a value range of the highest frequency bin of the subband z may be 12 kHz to 16 kHz. A value range of the lowest frequency bin of the subband z may be 8 kHz to 14 kHz. A value range of a bandwidth of the subband z may be 1.6 kHz to 8 kHz. Specifically, for example, a frequency bin range of the subband z may be 8 kHz to 12 kHz, 9 kHz to 11 kHz, 8 kHz to 9.6 kHz, or 12 kHz to 14 kHz. Certainly, the frequency bin range of the subband z is not limited to the foregoing examples.

[0034] For example, a frequency bin range of the subband w may be determined according to actual needs. For example, a value range of the highest frequency bin of the subband w may be 12 kHz to 16 kHz, and a value range of the lowest frequency bin of the subband w may be 8 kHz to 14 kHz. Specifically, for example, the frequency bin range of the subband w is 8 kHz to 12 kHz, 9 kHz to 11 kHz, 8 kHz to 9.6 kHz, 12 kHz to 14 kHz, or 12.2 kHz to 14.5 kHz. Certainly, the frequency bin range of the subband w is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband w may be the same as or similar to the frequency bin range of the subband z.

[0035] For example, a frequency bin range of the subband i may be 3.2 kHz to 6.4 kHz, 3.2 kHz to 4.8 kHz, 4.8 kHz to 6.4 kHz, 0.4 kHz to 6.4 kHz, or 0.4 kHz to 3.6 kHz. Certainly, the frequency bin range of the subband i is not limited to the foregoing examples.

[0036] For example, a frequency bin range of the subband j may be 6.4 kHz to 9.6 kHz, 6.4 kHz to 8 kHz, 8 kHz to 9.6 kHz, 4.8 kHz to 9.6 kHz, or 4.8 kHz to 8 kHz. Certainly, the frequency bin range of the subband j is not limited to the foregoing examples.

[0037] For example, a frequency bin range of the subband m may be 3.2 kHz to 6.4 kHz, 3.2 kHz to 4.8 kHz, 4.8 kHz to 6.4 kHz, 0.4 kHz to 6.4 kHz, or 0.4 kHz to 3.6 kHz. Certainly, the frequency bin range of the subband m is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband m may be the same as or similar to the frequency bin range of the subband i.

[0038] For example, a frequency bin range of the subband n may be 6.4 kHz to 9.6 kHz, 6.4 kHz to 8 kHz, 8 kHz to 9.6 kHz, 4.8 kHz to 9.6 kHz, or 4.8 kHz to 8 kHz. Certainly, the frequency bin range of the subband n is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband n may be the same as or similar to the frequency bin range of the subband j.

[0039] For example, a frequency bin range of the subband x may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, 1.6 kHz to 3.2 kHz, 2 kHz to 3.2 kHz, or 2.5 kHz to 3.4 kHz. Certainly, the frequency bin range of the subband x is not limited to the foregoing examples.

[0040] For example, a frequency bin range of the subband y may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, 4.8 kHz to 6.4 kHz, 4.4 kHz to 6.4 kHz, or 4.5 kHz to 6.2 kHz. Certainly, the frequency bin range of the subband y is not limited to the foregoing examples.

[0041] For example, a frequency bin range of the subband p may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, 1.6 kHz to 3.2 kHz, 2.1 kHz to 3.2 kHz, or 2.5 kHz to 3.5 kHz. Certainly, the frequency bin range of the subband p is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband p may be the same as or similar to the frequency bin range of the subband x.

[0042] For example, a frequency bin range of the subband q may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, 4.8 kHz to 6.4 kHz, 4.2 kHz to 6.4 kHz, or 4.7 kHz to 6.2 kHz. Certainly, the frequency bin range of the subband q is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband q may be the same as or similar to the frequency bin range of the subband y.

[0043] For example, a frequency bin range of the subband r may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, 1.6 kHz to 3.2 kHz, 2.05 kHz to 3.27 kHz, or 2.59 kHz to 3.51 kHz. Certainly, the frequency bin range of the subband r is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband r may be the same as or similar to the frequency bin range of the subband x.

[0044] For example, a frequency bin range of the subband s may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, 4.8 kHz to 6.4 kHz, 5.4 kHz to 7.1 kHz, or 4.55 kHz to 6.29 kHz. Certainly, the frequency bin range of the subband s is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband s may be the same as or similar to the frequency bin range of the subband y.

[0045] For example, a frequency bin range of the subband e may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, 1.6 kHz to 3.2 kHz, 0.8 kHz to 3 kHz, or 1.9 kHz to 3.8 kHz. Certainly, the frequency bin range of the subband e is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband e may be the same as or similar to the frequency bin range of the subband x.

[0046] For example, a frequency bin range of the subband f may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, 4.8 kHz to 6.4 kHz, 5.3 kHz to 7.15 kHz, or 4.58 kHz to 6.52 kHz. Certainly, the frequency bin range of the subband f is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband f may be the same as or similar to the frequency bin range of the subband y.

[0047] The first parameter condition may be varied.

[0048] For example, in some possible implementation manners, the first parameter condition, for example, may include at least one of the following conditions:

the coding rate of the current audio frame is less than a threshold T1 (the threshold T1 may be, for example, greater than or equal to 24.4 kbps, 32 kbps, 64 kbps, or another rate);

the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T2 (the threshold T2 may be, for example, greater than or equal to 1, 2, 3, 5, or another value);

the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T3 (the threshold T3 may be, for example, greater than or equal to 10, 20, 35, or another value);

a quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T4 (the threshold T4 may be, for example, greater than or equal to 0.5, 1, 2, 3, or another value);

a difference of subtracting the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame from the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame is greater than or equal to a threshold T5 (the threshold T5 may be, for example, greater than or equal to 10, 20, 51, 100, or another value);

a quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is greater than or equal to a threshold T6 (the threshold T6 may be, for example, greater than or equal to 0.5, 1.1, 2, 3, or another value);

a difference of subtracting the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame from the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame is greater than or equal to a threshold T7 (the threshold T7 may be, for example, greater than or equal to 11, 20, 50, 101, or another value);

a ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame falls within an interval R1 (the interval R1 may be, for example, [0.5, 2], [0.4, 2.5], or another value);

an absolute value of a difference between the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is less than or equal to a threshold T8 (the threshold T8 may be, for example, greater than or equal to 1, 2, 3, or another value);

a ratio of the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame to the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame falls within an interval R2 (the interval R2 may be, for example, [0.5, 2], [0.4, 2.5], or another value);

an absolute value of a difference between the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is less than or equal to a threshold T9 (the threshold T9 may be, for example, greater than or equal to 10, 20, 35, or another value);

a ratio of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame to the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame falls within an interval R3 (the interval R3 may be, for example, [0.5, 2], [0.4, 2.5], or another value);

an absolute value of a difference between the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is less than or equal to a threshold T10 (the threshold T10 may be, for example, greater than or equal to 11, 20, 50, 101, or another value); or

the parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame is greater than or equal to a threshold T11 (the threshold T11 may be, for example, 0.5, 0.8, 0.9, 1, or another value).



[0049] For another example, in some possible implementation manners, the first parameter condition, for example, may include one of the following conditions:

the coding rate of the current audio frame is greater than or equal to the threshold T1, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T12 (the threshold T12 may be, for example, greater than or equal to the threshold T4, and the threshold T12 may be, for example, greater than or equal to 2, 3, 5, 8, or another value);

the coding rate of the current audio frame is greater than or equal to the threshold T1, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is greater than or equal to a threshold T13 (the threshold T13 may be, for example, greater than or equal to the threshold T6, and the threshold T13 may be, for example, greater than or equal to 2, 3, 9, 7, or another value);

the coding rate of the current audio frame is greater than or equal to the threshold T1, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T14 (the threshold T14 may be, for example, less than or equal to the threshold T2, and the threshold T14 may be, for example, less than or equal to 0.5, 2, 3, 1.5, 4, or another value);

the coding rate of the current audio frame is greater than or equal to the threshold T1, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T15 (the threshold T15 may be, for example, less than or equal to the threshold T3, and the threshold T15 may be, for example, less than or equal to 5, 8, 10, 20, or another value);

the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame does not fall within the interval R1, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T16 (the threshold T16 may be, for example, greater than or equal to the threshold T4, and the threshold T16 may be, for example, greater than or equal to 2, 3, 5, 8, or another value);

the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame does not fall within the interval R1, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is greater than or equal to a threshold T17 (the threshold T17 may be, for example, greater than or equal to the threshold T6, and the threshold T17 may be, for example, greater than or equal to 2, 3, 9, 7, or another value);

the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame does not fall within the interval R1, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T18 (the threshold T18 may be, for example, less than or equal to the threshold T2, and the threshold T18 may be, for example, less than or equal to 0.5, 2, 3, 1.5, 4, 5, or another value);

the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame does not fall within the interval R1, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T19 (the threshold T19 may be, for example, less than or equal to the threshold T3, and the threshold T19 may be, for example, less than or equal to 5, 8, 10, 20, or another value);

the absolute value of the difference between the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than the threshold T8, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T20 (the threshold T20 may be, for example, greater than or equal to the threshold T4, and the threshold T20 may be, for example, greater than or equal to 2, 3, 5, 8, or another value);

the absolute value of the difference between the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than the threshold T8, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is greater than or equal to a threshold T21 (the threshold T21 may be, for example, greater than or equal to the threshold T6, and the threshold T21 may be, for example, greater than or equal to 2, 3, 9, 7, or another value);

the absolute value of the difference between the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than the threshold T8, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T22 (the threshold T22 may be, for example, less than or equal to the threshold T2, and the threshold T22 may be, for example, less than or equal to 0.5, 2, 3, 1.5, 4, 5, or another value);

the absolute value of the difference between the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than the threshold T8, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T23 (the threshold T23 may be, for example, less than or equal to the threshold T3, and the threshold T23 may be, for example, less than or equal to 5, 8, 10, 20, or another value);

the ratio of the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame to the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame does not fall within the interval R2, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T24 (the threshold T24 may be, for example, greater than or equal to the threshold T4, and the threshold T24 may be, for example, greater than or equal to 2, 3, 5, 8, or another value);

the ratio of the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame to the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame does not fall within the interval R2, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is greater than or equal to a threshold T25 (the threshold T25 may be, for example, greater than or equal to the threshold T6, and the threshold T25 may be, for example, greater than or equal to 2, 3, 9, 7, or another value);

the ratio of the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame to the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame does not fall within the interval R2, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T26 (the threshold T26 may be, for example, less than or equal to the threshold T2, and the threshold T26 may be, for example, less than or equal to 0.5, 2, 3, 1.5, 4, 5, or another value);

the ratio of the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame to the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame does not fall within the interval R2, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T27 (the threshold T27 may be, for example, less than or equal to the threshold T3, and the threshold T27 may be, for example, less than or equal to 5, 8, 10, 20, or another value);

the absolute value of the difference between the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than the threshold T9, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T28 (the threshold T28 may be, for example, greater than or equal to the threshold T4, and the threshold T28 may be, for example, greater than or equal to 2, 3, 5, 8, or another value);

the absolute value of the difference between the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than the threshold T9, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is greater than or equal to a threshold T29 (the threshold T29 may be, for example, greater than or equal to the threshold T6, and the threshold T29 may be, for example, greater than or equal to 2, 3, 9, 7, or another value);

the absolute value of the difference between the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than the threshold T9, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T30 (the threshold T30 may be, for example, less than or equal to the threshold T2, and the threshold T30 may be, for example, less than or equal to 0.5, 2, 3, 1.5, 4, 5, or another value);

the absolute value of the difference between the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than the threshold T9, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T31 (the threshold T31 may be, for example, less than or equal to the threshold T3, and the threshold T31 may be, for example, less than or equal to 5, 8, 10, 20, or another value);

the ratio of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame to the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame falls within the interval R3, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T32 (the threshold T32 may be, for example, greater than or equal to the threshold T4, and the threshold T32 may be, for example, greater than or equal to 2, 3, 5, 8, or another value);

the ratio of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame to the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame falls within the interval R3, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is greater than or equal to a threshold T33 (the threshold T33 may be, for example, greater than or equal to the threshold T6, and the threshold T33 may be, for example, greater than or equal to 2, 3, 9, 7, or another value);

the ratio of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame to the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame falls within the interval R3, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T34 (the threshold T34 may be, for example, less than or equal to the threshold T2, and the threshold T34 may be, for example, less than or equal to 0.5, 2, 3, 1.5, 4, 5, or another value);

the ratio of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame to the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame falls within the interval R3, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T35 (the threshold T35 may be, for example, less than or equal to the threshold T3, and the threshold T35 may be, for example, less than or equal to 5, 8, 9.5, 10, 15, 20, or another value);

the absolute value of the difference between of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than the threshold T10, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T36 (the threshold T36 may be, for example, greater than or equal to the threshold T4, and the threshold T36 may be, for example, greater than or equal to 2, 3, 5, 8, or another value);

the absolute value of the difference between of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than the threshold T10, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is greater than or equal to a threshold T37 (the threshold T37 may be, for example, greater than or equal to the threshold T6, and the threshold T37 may be, for example, greater than or equal to 2, 3, 9, 7, or another value);

the absolute value of the difference between of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than the threshold T10, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T38 (the threshold T38 may be, for example, less than or equal to the threshold T2, and the threshold T38 may be, for example, less than or equal to 0.5, 2, 3, 1.5, 4, 5, or another value);

the absolute value of the difference between of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than the threshold T10, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T39 (the threshold T39 may be, for example, less than or equal to the threshold T3, and the threshold T39 may be, for example, less than or equal to 5, 8, 9.5, 10, 15, 20, or another value);

the parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame is less than or equal to the threshold T11, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T40 (the threshold T40 may be, for example, greater than or equal to the threshold T4, and the threshold T40 may be, for example, greater than or equal to 2, 3, 5, 8, or another value);

the parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame is less than or equal to the threshold T11, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is greater than or equal to a threshold T41 (the threshold T41 may be, for example, greater than or equal to the threshold T6, and the threshold T41 may be, for example, greater than or equal to 2, 3, 9, 7, or another value);

the parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame is less than or equal to the threshold T11, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T42 (the threshold T42 may be, for example, less than or equal to the threshold T2, and the threshold T42 may be, for example, less than or equal to 0.5, 2, 3, 1.5, 4, 5, or another value);

the parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame is less than or equal to the threshold T11, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T43 (the threshold T43 may be, for example, less than or equal to the threshold T3, and the threshold T43 may be, for example, less than or equal to 5, 8, 9.5, 10, 15, 20, or another value);

a quotient of dividing the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame by the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is less than a threshold T44 (a value range of the threshold T44 may be, for example, 1.5 to 3), and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is less than a threshold T45 (a value range of the threshold T45 may be, for example, 1 to 3);

a quotient of dividing the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame by the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than a threshold T46 (a value range of the threshold T46 may be, for example, 1.5 to 3), and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than a threshold T47 (a value range of the threshold T47 may be, for example, 1 to 3);

a difference of subtracting the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame from the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame is less than a threshold T48 (a value range of the threshold T48 may be, for example, -1 to 3), and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is less than a threshold T49 (a value range of the threshold T49 may be, for example, 1 to 3);

a difference of subtracting the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame from the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame is greater than a threshold T50 (a value range of the threshold T50 may be, for example, -1 to 3), and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than a threshold T51 (a value range of the threshold T51 may be, for example, 1 to 3);

a quotient of dividing the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame by the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is less than a threshold T52 (a value range of the threshold T52 may be, for example, 1 to 3), and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is less than a threshold T53 (the threshold T53 may be, for example, 10, 20, 30, or another value);

a quotient of dividing the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame by the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than a threshold T54 (a value range of the threshold T54 may be, for example, 1 to 3), and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than a threshold T55 (the threshold T55 may be, for example, 10, 20, 30, or another value);

a difference of subtracting the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame from the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame is less than a threshold T56 (a value range of the threshold T56 may be, for example, -40 to 40), and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is less than a threshold T57 (the threshold T57 may be, for example, 10, 20, 30, or another value);

a difference of subtracting the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame from the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame is greater than a threshold T58 (a value range of the threshold T58 may be, for example, -40 to 40), and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than a threshold T59 (the threshold T59 may be, for example, 10, 20, 30, or another value);

a quotient of dividing the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame by the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is less than a threshold T60 (a value range of the threshold T60 may be, for example, 1 to 3), and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is less than a threshold T61 (the threshold T61 may be, for example, 10, 20, 30, or another value);

a quotient of dividing the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame by the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than a threshold T62 (a value range of the threshold T62 may be, for example, 1 to 3), and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than a threshold T63 (the threshold T63 may be, for example, 10, 20, 30, or another value);

a difference of subtracting the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame from the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame is less than a threshold T64 (a value range of the threshold T64 may be, for example, -40 to 40), and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is less than a threshold T65 (the threshold T65 may be, for example, 10, 20, 30, or another value);

a difference of subtracting the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame from the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame is greater than a threshold T66 (a value range of the threshold T66 may be, for example, -40 to 40), and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than a threshold T67 (the threshold T67 may be, for example, 10, 20, 30, or another value);

the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than or equal to a threshold T68 (the threshold T68 may be, for example, less than or equal to 0.5, 1, 2, 3, or another value), and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T69 (the threshold T69 may be, for example, less than or equal to 1, 2, 3, 5, or another value);

the difference of subtracting the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame from the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame is less than or equal to a threshold T70 (the threshold T70 may be, for example, less than or equal to 10, 20, 51, 100, or another value), and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T71 (the threshold T71 may be, for example, less than or equal to 1, 2, 3, 5, or another value);

the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than or equal to a threshold T72 (the threshold T72 may be, for example, greater than or equal to 0.5, 1.1, 2, 3, or another value), and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T73 (the threshold T73 may be, for example, less than or equal to 1, 2, 3, 5, or another value);

the difference of subtracting the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame from the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame is less than or equal to a threshold T74 (the threshold T74 may be, for example, greater than or equal to 11, 20, 50, 101, or another value), and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is less than or equal to a threshold T75 (the threshold T75 may be, for example, less than or equal to 1, 2, 3, 5, or another value);

the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than or equal to a threshold T76 (the threshold T76 may be, for example, less than or equal to 0.5, 1, 2, 3, or another value), and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T77 (the threshold T77 may be, for example, greater than or equal to 10, 20, 35, or another value);

the difference of subtracting the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame from the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame is less than or equal to a threshold T78 (the threshold T78 may be, for example, less than or equal to 10, 20, 51, 100, or another value), and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T79 (the threshold T79 may be, for example, greater than or equal to 10, 20, 35, or another value);

the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than or equal to a threshold T80 (the threshold T80 may be, for example, greater than or equal to 0.5, 1.1, 2, 3, or another value), and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T81 (the threshold T81 may be, for example, greater than or equal to 10, 20, 35, or another value); or

the difference of subtracting the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame from the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame is less than or equal to a threshold T82 (the threshold T82 may be, for example, greater than or equal to 11, 20, 50, 101, or another value), and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is less than or equal to a threshold T83 (the threshold T83 may be, for example, greater than or equal to 10, 20, 35, or another value).



[0050] It may be understood that the first parameter condition is not limited to the foregoing examples, and multiple other possible implementation manners may be extended based on the foregoing examples.

[0051] For example, in some possible implementation manners, the second parameter condition includes at least one of the following conditions:

the coding rate of the current audio frame is greater than or equal to the threshold T1;

the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T2;

the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T3;

the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than the threshold T4;

the difference of subtracting the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame from the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame is less than the threshold T5;

the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than the threshold T6;

the difference of subtracting the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame from the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame is less than the threshold T7;

the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame does not fall within the interval R1;

the absolute value of the difference between the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than the threshold T8;

the ratio of the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame to the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame does not fall within the interval R2;

the absolute value of the difference between the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than the threshold T9;

the ratio of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame to the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame does not fall within the interval R3;

the absolute value of the difference between the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than the threshold T10; or

the parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame is less than the threshold T11.



[0052] For another example, in some possible implementation manners, the second parameter condition includes one of the following conditions:

the coding rate of the current audio frame is greater than or equal to the threshold T1, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than the threshold T12;

the coding rate of the current audio frame is greater than or equal to the threshold T1, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than the threshold T13;

the coding rate of the current audio frame is greater than or equal to the threshold T1, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T14;

the coding rate of the current audio frame is greater than or equal to the threshold T1, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T15;

the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame does not fall within the interval R1, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than the threshold T16;

the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame does not fall within the interval R1, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than the threshold T17;

the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame does not fall within the interval R1, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T18;

the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame does not fall within the interval R1, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T19;

the absolute value of the difference between the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than the threshold T8, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than the threshold T20;

the absolute value of the difference between the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than the threshold T8, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than the threshold T21;

the absolute value of the difference between the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than the threshold T8, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T22;

the absolute value of the difference between the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than the threshold T8, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T23;

the ratio of the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame to the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame does not fall within the interval R2, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than the threshold T24;

the ratio of the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame to the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame does not fall within the interval R2, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than the threshold T25;

the ratio of the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame to the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame does not fall within the interval R2, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T26;

the ratio of the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame to the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame does not fall within the interval R2, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T27;

the absolute value of the difference between the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than the threshold T9, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than the threshold T28;

the absolute value of the difference between the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than the threshold T9, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than the threshold T29;

the absolute value of the difference between the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than the threshold T9, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T30;

the absolute value of the difference between the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than the threshold T9, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T31;

the ratio of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame to the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame falls within the interval R3, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than the threshold T32;

the ratio of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame to the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame falls within the interval R3, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than the threshold T33;

the ratio of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame to the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame falls within the interval R3, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T34;

the ratio of the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame to the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame falls within the interval R3, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T35;

the absolute value of the difference between the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than the threshold T10, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than the threshold T36;

the absolute value of the difference between the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than the threshold T10, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than the threshold T37;

the absolute value of the difference between the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than the threshold T10, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T38;

the absolute value of the difference between the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than the threshold T10, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T39;

the parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame is less than or equal to the threshold T11, and the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than the threshold T40;

the parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame is less than or equal to the threshold T11, and the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than the threshold T41;

the parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame is less than or equal to the threshold T11, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T42;

the parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame is less than or equal to the threshold T11, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T43;

the quotient of dividing the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame by the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is less than the threshold T44, and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than the threshold T45;

the quotient of dividing the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame by the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than the threshold T46, and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is less than the threshold T47;

the difference of subtracting the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame from the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame is less than the threshold T48, and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than the threshold T49;

the difference of subtracting the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame from the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame is greater than the threshold T50, and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is less than the threshold T51;

the quotient of dividing the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame by the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is less than the threshold T52, and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than the threshold T53;

the quotient of dividing the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame by the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than the threshold T54, and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is less than the threshold T55;

the difference of subtracting the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame from the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame is less than the threshold T56, and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is greater than the threshold T57;

the difference of subtracting the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame from the envelope deviation of the spectral coefficients that are located within the subband r and that is of the current audio frame is greater than the threshold T58, and the envelope deviation of the spectral coefficients that are located within the subband s and that is of the current audio frame is less than the threshold T59;

the quotient of dividing the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame by the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is less than the threshold T60, and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than the threshold T61;

the quotient of dividing the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame by the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than the threshold T62, and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is less than the threshold T63;

the difference of subtracting the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame from the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame is less than the threshold T64, and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is greater than the threshold T65;

the difference of subtracting the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame from the envelope of the spectral coefficients that are located within the subband e and that is of the current audio frame is greater than the threshold T66, and the envelope of the spectral coefficients that are located within the subband f and that is of the current audio frame is less than the threshold T67;

the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than or equal to the threshold T68, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T69;

the difference of subtracting the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame from the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame is less than or equal to the threshold T70, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T71;

the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than or equal to the threshold T72, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T73;

the difference of subtracting the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame from the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame is less than or equal to the threshold T74, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than the threshold T75;

the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than or equal to the threshold T76, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T77;

the difference of subtracting the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame from the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame is less than or equal to the threshold T78, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T79;

the quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is less than or equal to the threshold T80, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T81; or

the difference of subtracting the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame from the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame is less than or equal to the threshold T82, and the envelope deviation of the spectral coefficients that are located within the subband w and that is of the current audio frame is greater than the threshold T83.



[0053] It may be understood that the second parameter condition is not limited to the foregoing examples, and multiple other possible implementation manners may be extended based on the foregoing examples.

[0054] It may be understood that the examples of the first parameter condition and the second parameter condition are not all possible implementation manners. In an actual application, the foregoing examples may be extended, to enrich the possible implementation manners of the first parameter condition and the second parameter condition.

[0055] For better understanding of the embodiments of the present invention, the following gives an exemplary description with reference to some specific application scenarios.

[0056] Referring to FIG. 2, FIG. 2 is a schematic flowchart of another audio coding method according to another embodiment of the present invention. In an example shown in FIG. 2, a coding algorithm used to code spectral coefficients of a current audio frame is determined mainly based on an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame.

[0057] As shown in FIG. 2, the another audio coding method provided in the another embodiment of the present invention may include the following content:
201: Perform time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame.

[0058] The audio frame mentioned in the embodiments of the present invention may be a speech frame or a music frame.

[0059] It is assumed that a bandwidth of the time-domain signal of the current audio frame is 16 kHz.

[0060] Time-frequency transformation processing is performed on the time-domain signal of the current audio frame by using a fast Fourier transform (English: fast fourier transform, FFT for short) algorithm, a modified discrete cosine transform (English: modified discrete cosine transform, MDCT for short) algorithm, or another time-frequency transformation algorithm, to obtain the spectral coefficients of the current audio frame.

[0061] 202: Acquire an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame.

[0062] 203: Determine whether a quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T4.

[0063] If yes, step 204 is performed; if not, step 205 is performed.

[0064] The threshold T4 may be greater than or equal to 0.5, and the threshold T4, for example, is 0.5, 1, 1.5, 2, 3, or another value.

[0065] For example, a frequency bin range of the subband i may be 3.2 kHz to 6.4 kHz, 3.2 kHz to 4.8 kHz, 4.8 kHz to 6.4 kHz, or 0.4 kHz to 6.4 kHz.

[0066] For example, a frequency bin range of the subband j may be 6.4 kHz to 9.6 kHz, 6.4 kHz to 8 kHz, 8 kHz to 9.6 kHz, or 4.8 kHz to 9.6 kHz.

[0067] 204: Code spectral coefficients of the current audio frame based on a TCX algorithm.

[0068] 205: Code spectral coefficients of the current audio frame based on an HQ algorithm.

[0069] As can be seen, in solutions of this embodiment, after an energy average of spectral coefficients that is located within a subband i and that is of a current audio frame and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame are acquired, a TCX algorithm or an HQ algorithm is selected based on the acquired energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame and the acquired energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame, to code spectral coefficients of the current audio frame. A relationship between the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame and the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is associated with a coding algorithm used to code spectral coefficients of the current audio frame, which helps improve adaptability and matchability between the coding algorithm and a reference coding parameter of the current audio frame, and further helps improve coding quality or coding efficiency of the current audio frame.

[0070] Referring to FIG. 3, FIG. 3 is a schematic flowchart of another audio coding method according to another example useful for understanding the present invention. In an example shown in FIG. 3, a coding algorithm used to code spectral coefficients of a current audio frame is determined mainly based on an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame, an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame, and a peak-to-average ratio of spectral coefficients that is located within a subband z and that is of the current audio frame.

[0071] As shown in FIG. 3, the another audio coding method provided in the another example useful for understanding the present invention may include the following content:
301: Perform time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame.

[0072] The audio frame mentioned in the example useful for understanding the present invention may be a speech frame or a music frame.

[0073] It is assumed that a bandwidth of the time-domain signal of the current audio frame is 16 kHz.

[0074] 302: Acquire an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame.

[0075] 303: Determine whether a quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T68.

[0076] If not, step 304 is performed; if yes, step 306 is performed.

[0077] The threshold T68 is greater than or equal to a threshold T4. For example, the threshold T68 may be greater than or equal to 0.6, and the threshold T68, for example, is 0.8, 0.6, 1, 1.5, 2, 3, 5, or another value.

[0078] For example, a frequency bin range of the subband i may be 3.2 kHz to 6.4 kHz, 3.2 kHz to 4.8 kHz, 4.8 kHz to 6.4 kHz, or 0.4 kHz to 6.4 kHz.

[0079] For example, a frequency bin range of the subband j may be 6.4 kHz to 9.6 kHz, 6.4 kHz to 8 kHz, 8 kHz to 9.6 kHz, or 4.8 kHz to 9.6 kHz.

[0080] 304: Acquire a peak-to-average ratio of spectral coefficients that is located within a subband z and that is of the current audio frame.

[0081] 305: Determine whether the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame is greater than a threshold T69.

[0082] If yes, step 307 is performed; if not, step 306 is performed.

[0083] The threshold T69 may be greater than or equal to 1, and the threshold T69, for example, is 1, 1.1, 1.5, 2, 3.5, 6, 4.6, or another value.

[0084] For example, a value range of a highest frequency bin of the subband z may be 12 kHz to 16 kHz, and a value range of a lowest frequency bin of the subband z may be 8 kHz to 14 kHz. Specifically, for example, a frequency bin range of the subband z may be 8 kHz to 12 kHz, 9 kHz to 11 kHz, or 8 kHz to 9.6 kHz.

[0085] 306: Code spectral coefficients of the current audio frame based on a TCX algorithm.

[0086] 307: Code spectral coefficients of the current audio frame based on an HQ algorithm.

[0087] As can been seen, in solutions of this example useful for understanding the present invention, a TCX algorithm or an HQ algorithm is selected mainly based on an energy average of spectral coefficients that is located within a subband i and that is of a current audio frame, an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame, and a peak-to-average ratio of spectral coefficients that is located within a subband z and that is of the current audio frame, to code spectral coefficients of the current audio frame. A relationship between the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame and the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame, and the peak-to-average ratio of the spectral coefficients that are located within the subband z and that is of the current audio frame are associated with a coding algorithm used to code spectral coefficients of the current audio frame, which helps improve adaptability and matchability between the coding algorithm and a reference coding parameter of the current audio frame, and further helps improve coding quality or coding efficiency of the current audio frame.

[0088] Referring to FIG. 4, FIG. 4 is a schematic flowchart of another audio coding method according to another embodiment of the present invention. In an example shown in FIG. 4, a coding algorithm used to code spectral coefficients of a current audio frame is determined mainly based on a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of the current audio frame and a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame.

[0089] As shown in FIG. 4, the another audio coding method provided in the another embodiment of the present invention may include the following content:
401: Perform time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame.

[0090] The audio frame mentioned in the embodiments of the present invention may be a speech frame or a music frame.

[0091] It is assumed that a bandwidth of the time-domain signal of the current audio frame is 16 kHz.

[0092] 402: Acquire a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of the current audio frame and a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame.

[0093] 403: Determine whether a ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame falls within an interval R1.

[0094] If yes, step 404 is performed; if not, step 405 is performed.

[0095] The interval R1 may be, for example, [0.5, 2], [0.8, 1.25], [0.4, 2.5], or another range.

[0096] For example, a frequency bin range of the subband x may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, or 1.6 kHz to 3.2 kHz, and a frequency bin range of the subband y may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, or 4.8 kHz to 6.4 kHz.

[0097] 404: Code spectral coefficients of the current audio frame based on a TCX algorithm.

[0098] 405: Code spectral coefficients of the current audio frame based on an HQ algorithm.

[0099] As can be seen, in solutions of this embodiment, a TCX algorithm or an HQ algorithm is selected mainly based on a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of a current audio frame and a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame, to code spectral coefficients of the current audio frame. The peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame are associated with a coding algorithm used to code spectral coefficients of the current audio frame, which helps improve adaptability and matchability between the coding algorithm and a reference coding parameter of the current audio frame, and further helps improve coding quality or coding efficiency of the current audio frame.

[0100] Referring to FIG. 5, FIG. 5 is a schematic flowchart of another audio coding method according to another example useful for understanding the present invention. In an example shown in FIG. 5, a coding algorithm used to code spectral coefficients of a current audio frame is determined mainly based on a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of the current audio frame and a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame.

[0101] As shown in FIG. 5, the another audio coding method provided in the another example useful for understanding the present invention may include the following content:
501: Perform time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame.

[0102] The audio frame mentioned in the embodiments of the present invention may be a speech frame or a music frame.

[0103] It is assumed that a bandwidth of the time-domain signal of the current audio frame is 16 kHz.

[0104] 502: Acquire a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of the current audio frame and a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame.

[0105] 503: Determine whether a quotient of dividing the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame by the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than or equal to a threshold T46.

[0106] If yes, step 504 is performed; if not, step 505 is performed.

[0107] The threshold T46 may be greater than or equal to 0.5, and the threshold T46, for example, is 0.5, 1, 1.5, 2, 3, or another value.

[0108] For example, a frequency bin range of the subband x may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, or 1.6 kHz to 3.2 kHz, and a frequency bin range of the subband y may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, or 4.8 kHz to 6.4 kHz.

[0109] 504: Determine whether the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is greater than or equal to a threshold T47.

[0110] If yes, step 506 is performed; if not, step 507 is performed.

[0111] 505: Determine whether the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame is less than the threshold T47.

[0112] If yes, step 506 is performed; if not, step 507 is performed.

[0113] 506: Code spectral coefficients of the current audio frame based on a TCX algorithm.

[0114] 507: Code spectral coefficients of the current audio frame based on an HQ algorithm.

[0115] As can be seen, in solutions of this example useful for understanding the present invention, a TCX algorithm or an HQ algorithm is selected mainly based on a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of a current audio frame and a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame, to code spectral coefficients of the current audio frame. The peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame and the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame are associated with a coding algorithm used to code spectral coefficients of the current audio frame, which helps improve adaptability and matchability between the coding algorithm and a reference coding parameter of the current audio frame, and further helps improve coding quality or coding efficiency of the current audio frame.

[0116] Referring to FIG. 6, FIG. 6 is a schematic flowchart of another audio coding method according to another example useful for understanding the present invention. In an example shown in FIG. 6, a coding algorithm used to code spectral coefficients of a current audio frame is determined mainly based on a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of the current audio frame, a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame, an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame, and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame.

[0117] As shown in FIG. 6, the another audio coding method provided in the another example useful for understanding the present invention may include the following content:

[0118] 601: Perform time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame.

[0119] The audio frame mentioned in the embodiments of the present invention may be a speech frame or a music frame.

[0120] It is assumed that a bandwidth of the time-domain signal of the current audio frame is 16 kHz.

[0121] 602: Acquire a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of the current audio frame and a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame.

[0122] 603: Determine whether a ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame falls within an interval R1.

[0123] If not, step 604 is performed; if yes, step 606 is performed.

[0124] The interval R1 may be, for example, [0.5, 2], [0.8, 1.25], [0.4, 2.5], or another range.

[0125] For example, a frequency bin range of the subband x may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, or 1.6 kHz to 3.2 kHz, and a frequency bin range of the subband y may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, or 4.8 kHz to 6.4 kHz.

[0126] 604: Acquire an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame.

[0127] 605: Determine whether a quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T16.

[0128] If yes, step 606 is performed; if not, step 607 is performed.

[0129] A frequency bin range of the subband i may be, for example, 0 kHz to 1.6 kHz or 1 kHz to 2.6 kHz, and a frequency bin range of the subband j may be, for example, 6.4 kHz to 8 kHz, 4.8 kHz to 6.4 kHz, or 7.4 kHz to 9 kHz.

[0130] The threshold T16 is greater than a threshold T4. For example, the threshold T16 may be greater than or equal to 2, and the threshold T16, for example, is 2, 2.5, 3, 3.5, 5, 5.1, or another value.

[0131] 606: Code spectral coefficients of the current audio frame based on a TCX algorithm.

[0132] 607: Code spectral coefficients of the current audio frame based on an HQ algorithm.

[0133] As can be seen, in solutions of this example useful for understanding the present invention, a TCX algorithm or an HQ algorithm is selected mainly based on a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of a current audio frame, a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame, an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame, and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame, to code spectral coefficients of the current audio frame. The peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame, the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame, the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame, and the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame are associated with a coding algorithm used to code spectral coefficients of the current audio frame, which helps improve adaptability and matchability between the coding algorithm and a reference coding parameter of the current audio frame, and further helps improve coding quality or coding efficiency of the current audio frame.

[0134] Referring to FIG. 7, FIG. 7 is a schematic flowchart of another audio coding method according to another example useful for understanding the present invention. In an example shown in FIG. 7, a coding algorithm used to code spectral coefficients of a current audio frame is determined mainly by using a coding rate of the current audio frame, an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame, and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame.

[0135] As shown in FIG. 7, the another audio coding method provided in the another example useful for understanding the present invention may include the following content:
701: Perform time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame.

[0136] The audio frame mentioned may be a speech frame or a music frame.

[0137] It is assumed that a bandwidth of the time-domain signal of the current audio frame is 16 kHz.

[0138] 702: Determine whether a coding rate of the current audio frame is greater than or equal to a threshold T1.

[0139] If yes, step 703 is performed; if not, step 705 is performed.

[0140] The threshold T1, for example, is greater than or equal to 24.4 kbps. For example, the threshold T1 is equal to 24.4 kbps, 32 kbps, 64 kbps, or another rate.

[0141] 703: Acquire an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame.

[0142] 704: Determine whether a quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T12.

[0143] If yes, step 705 is performed; if not, step 706 is performed.

[0144] A frequency bin range of the subband i may be, for example, 0 kHz to 1.6 kHz or 1 kHz to 2.6 kHz, and a frequency bin range of the subband j may be, for example, 6.4 kHz to 8 kHz, 4.8 kHz to 6.4 kHz, or 7.4 kHz to 9 kHz.

[0145] The threshold T12 may be greater than a threshold T4. For example, the threshold T12 may be greater than or equal to 2, and the threshold T12, for example, is 2, 2.5, 3, 3.5, 5, 5.2, or another value.

[0146] 705: Code spectral coefficients of the current audio frame based on a TCX algorithm.

[0147] 706: Code spectral coefficients of the current audio frame based on an HQ algorithm.

[0148] As can be seen, in solutions of this example useful for understanding the present invention, a TCX algorithm or an HQ algorithm is selected mainly based on a coding rate of a current audio frame, an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame, and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame, to code spectral coefficients of the current audio frame. The coding rate of the current audio frame, the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame, and the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame are associated with a coding algorithm used to code spectral coefficients of the current audio frame, which helps improve adaptability and matchability between the coding algorithm and a reference coding parameter of the current audio frame, and further helps improve coding quality or coding efficiency of the current audio frame.

[0149] Referring to FIG. 8, FIG. 8 is a schematic flowchart of another audio coding method according to another example useful for understanding the present invention. In an example shown in FIG. 8, a coding algorithm used to code spectral coefficients of a current audio frame is determined mainly based on an amplitude average of spectral coefficients that is located within a subband m and that is of the current audio frame and an amplitude average of spectral coefficients that is located within a subband n and that is of the current audio frame.

[0150] As shown in FIG. 8, the another audio coding method provided in the another example useful for understanding the present invention may include the following content:
801: Perform time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame.

[0151] The audio frame mentioned may be a speech frame or a music frame.

[0152] It is assumed that a bandwidth of the time-domain signal of the current audio frame is 16 kHz.

[0153] 802: Acquire an amplitude average of spectral coefficients that is located within a subband m and that is of the current audio frame and an amplitude average of spectral coefficients that is located within a subband n and that is of the current audio frame.

[0154] 803: Determine whether a quotient of dividing the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame by the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame is greater than or equal to a threshold T6.

[0155] If yes, step 804 is performed; if not, step 805 is performed.

[0156] The threshold T6 may be greater than or equal to 0.3, and the threshold T6, for example, is 0.5, 1, 1.5, 2, 3.2, or another value.

[0157] For example, a frequency bin range of the subband m may be 3.2 kHz to 6.4 kHz, 3.2 kHz to 4.8 kHz, 4.8 kHz to 6.4 kHz, or 0.4 kHz to 6.4 kHz.

[0158] For example, a frequency bin range of the subband n may be 6.4 kHz to 9.6 kHz, 6.4 kHz to 8 kHz, 8 kHz to 9.6 kHz, or 4.8 kHz to 9.6 kHz.

[0159] 804: Code spectral coefficients of the current audio frame based on a TCX algorithm.

[0160] 805: Code spectral coefficients of the current audio frame based on an HQ algorithm.

[0161] As can be seen, in solutions of this example useful for understanding the present invention, a TCX algorithm or an HQ algorithm is selected mainly based on an amplitude average of spectral coefficients that is located within a subband m and that is of a current audio frame and an amplitude average of spectral coefficients that is located within a subband n and that is of the current audio frame, to code spectral coefficients of the current audio frame. A relationship between the amplitude average of the spectral coefficients that are located within the subband m and that is of the current audio frame and the amplitude average of the spectral coefficients that are located within the subband n and that is of the current audio frame, and a peak-to-average ratio of spectral coefficients that is located within a subband z and that is of the current audio frame are associated with a coding algorithm used to code spectral coefficients of the current audio frame, which helps improve adaptability and matchability between the coding algorithm and a reference coding parameter of the current audio frame, and further helps improve coding quality or coding efficiency of the current audio frame.

[0162] It may be understood that, exemplary implementation manners in FIG. 2 to FIG. 8 are merely some implementation manners. In an actual application, multiple other possible implementation manners may be extended based on related exemplary descriptions in the example useful for understanding the present invention corresponding to FIG. 1.

[0163] In some scenarios, the following may be considered during selection of a subband.

[0164] When a similarity between property parameters of spectral coefficients located within two subbands is calculated, two matched subbands may be selected, for example, the two subbands are 0 kHz to 1.6 kHz and 6.4 kHz to 8 kHz. In some scenarios, because a property of spectral coefficients in 0 to 1 kHz differs greatly from a property of spectral coefficients in 1 to 1.6 kHz, the spectrum of 0 kHz to 1.6 kHz may not be selected when the similarity between the property parameters of the spectral coefficients is calculated. For example, spectral coefficients within 1 kHz to 2.6 kHz may be selected to replace spectral coefficients within 0 to 1.6 kHz, to calculate a property parameter of low-frequency spectral coefficients. In this case, if low frequency spectral coefficients within 1 kHz to 2.6 kHz are copied to high frequency, corresponding spectral coefficients are high-frequency spectral coefficients within 7.4 kHz to 9 kHz. When a property parameter of high-frequency spectral coefficients is calculated, the spectral coefficients within 7.4 kHz to 9 kHz is more suitable for calculation of a spectral property. However, in some scenarios, resolution of spectral coefficients within 0 kHz to 6.4 kHz may be very high, and the spectral coefficients within 0 kHz to 6.4 kHz are suitable for calculation of a property parameter. If resolution of spectral coefficients within 6.4 kHz to 16 kHz is relatively low, the spectral coefficients within 6.4 kHz to 16 kHz may be unsuitable for calculation of a property parameter of spectral coefficients. Therefore, when the property parameter of the high-frequency spectral coefficients is calculated, the spectral coefficients within 4.8 kHz to 6.4 kHz may be selected to calculate a property parameter, and the property parameter is used as a high-frequency property parameter.

[0165] The coding spectral coefficients of the current audio frame based on the transform coded excitation algorithm may specifically include: dividing the spectral coefficients into N subbands; calculating and quantizing an envelope of each subband; performing bit allocation for each subband according to a quantized envelope value and a quantity of available bits; quantizing spectral coefficients of each subband according to a quantity of bits allocated to the subband; and writing the quantized spectral coefficients and an index value of a spectral envelope into a bitstream.

[0166] The following further provides a related apparatus configured to implement the foregoing solution.

[0167] Referring to FIG. 9, an example useful for understanding the present invention further provides an audio coder 900. The audio coder 900 may include a time-frequency transformation unit 910, an acquiring unit 920, and a coding unit 930.

[0168] The time-frequency transformation unit 910 is configured to perform time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame.

[0169] The acquiring unit 920 is configured to acquire a reference coding parameter of the current audio frame.

[0170] The coding unit 930 is configured to: if the reference coding parameter that is acquired by the acquiring unit 920 and that is of the current audio frame satisfies a first parameter condition, code spectral coefficients of the current audio frame based on a transform coded excitation algorithm, or if the reference coding parameter that is acquired by the acquiring unit and that is of the current audio frame satisfies a second parameter condition, code spectral coefficients of the current audio frame based on a high quality transform coding algorithm.

[0171] According to a requirement of an application scenario, the reference coding parameter that is acquired by the acquiring unit 920 and that is of the current audio frame may be varied.

[0172] For example, the reference coding parameter may include at least one of the following parameters: a coding rate of the current audio frame; a peak-to-average ratio of spectral coefficients that is located within a subband z and that is of the current audio frame; an envelope deviation of spectral coefficients that is located within a subband w and that is of the current audio frame; an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame; an amplitude average of spectral coefficients that is located within a subband m and that is of the current audio frame and an amplitude average of spectral coefficients that is located within a subband n and that is of the current audio frame; a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of the current audio frame and a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame; an envelope deviation of spectral coefficients that is located within a subband r and that is of the current audio frame and an envelope deviation of spectral coefficients that is located within a subband s and that is of the current audio frame; an envelope of spectral coefficients that is located within a subband e and that is of the current audio frame and an envelope of spectral coefficients that is located within a subband f and that is of the current audio frame; or a parameter value of spectral correlation between spectral coefficients that is located within a subband p and that is of the current audio frame and spectral coefficients that is located within a subband q and that is of the current audio frame.

[0173] A larger parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame indicates stronger spectral correlation between the spectral coefficients located within the subband p and the spectral coefficients located within the subband q. The parameter value of the spectral correlation may be, for example, a normalized cross correlation parameter value.

[0174] Frequency bin ranges of the subbands may be determined according to actual needs.

[0175] Optionally, in some possible implementation manners, a highest frequency bin of the subband z may be greater than a critical frequency bin F1, and a highest frequency bin of the subband w may be greater than the critical frequency bin F1. A value range of the critical frequency bin F1 may be, for example, 6.4 kHz to 12 kHz. For example, a value of the critical frequency bin F1 may be 6.4 kHz, 8 kHz, 9 kHz, 10 kHz, or 12 kHz. Certainly, the critical frequency bin F1 may be another value.

[0176] Optionally, in some possible implementation manners, a highest frequency bin of the subband j may be greater than a critical frequency bin F2, and a highest frequency bin of the subband n is greater than the critical frequency bin F2. For example, a value range of the critical frequency bin F2 may be 4.8 kHz to 8 kHz. Specifically, for example, a value of the critical frequency bin F2 may be 6.4 kHz, 4.8 kHz, 6 kHz, 8 kHz, 5 kHz, or 7 kHz. Certainly, the critical frequency bin F2 may be another value.

[0177] Optionally, in some possible implementation manners, a highest frequency bin of the subband i may be less than the highest frequency bin of the subband j, a highest frequency bin of the subband m may be less than the highest frequency bin of the subband n, a highest frequency bin of the subband x may be less than or equal to a lowest frequency bin of the subband y, a highest frequency bin of the subband p may be less than or equal to a lowest frequency bin of the subband q, a highest frequency bin of the subband r may be less than or equal to a lowest frequency bin of the subband s, and a highest frequency bin of the subband e may be less than or equal to a lowest frequency bin of the subband f.

[0178] Optionally, in some possible implementation manners, at least one of the following conditions may be satisfied:
a lowest frequency bin of the subband w is greater than or equal to the critical frequency bin F1, a lowest frequency bin of the subband z is greater than or equal to the critical frequency bin F1, the highest frequency bin of the subband i is less than or equal to a lowest frequency bin of the subband j, the highest frequency bin of the subband m is less than or equal to a lowest frequency bin of the subband n, a lowest frequency bin of the subband j is greater than or equal to the critical frequency bin F2, a lowest frequency bin of the subband n is greater than or equal to the critical frequency bin F2, the highest frequency bin of the subband i is less than or equal to the critical frequency bin F2, the highest frequency bin of the subband m is less than or equal to the critical frequency bin F2, a lowest frequency bin of the subband j is greater than or equal to the critical frequency bin F2, or a lowest frequency bin of the subband n is greater than or equal to the critical frequency bin F2.

[0179] Optionally, in some possible implementation manners, at least one of the following conditions may be satisfied: the highest frequency bin of the subband e is less than or equal to the critical frequency bin F2, the highest frequency bin of the subband x is less than or equal to the critical frequency bin F2, the highest frequency bin of the subband p is less than or equal to the critical frequency bin F2, or the highest frequency bin of the subband r is less than or equal to the critical frequency bin F2.

[0180] Optionally, in some possible implementation manners, the highest frequency bin of the subband f may be less than or equal to the critical frequency bin F2, and certainly, the lowest frequency bin of the subband f may be greater than or equal to the critical frequency bin F2. The highest frequency bin of the subband q may be less than or equal to the critical frequency bin F2, and certainly, the lowest frequency bin of the subband q may be greater than or equal to the critical frequency bin F2. The highest frequency bin of the subband s may be less than or equal to the critical frequency bin F2, and certainly, the lowest frequency bin of the subband s may be greater than or equal to the critical frequency bin F2.

[0181] For example, a value range of the highest frequency bin of the subband z may be 12 kHz to 16 kHz. A value range of the lowest frequency bin of the subband z may be 8 kHz to 14 kHz. A value range of a bandwidth of the subband z may be 1.6 kHz to 8 kHz. Specifically, for example, a frequency bin range of the subband z may be 8 kHz to 12 kHz, 9 kHz to 11 kHz, 8 kHz to 9.6 kHz, or 12 kHz to 14 kHz. Certainly, the frequency bin range of the subband z is not limited to the foregoing examples.

[0182] For example, a frequency bin range of the subband w may be determined according to actual needs. For example, a value range of the highest frequency bin of the subband w may be 12 kHz to 16 kHz, and a value range of the lowest frequency bin of the subband w may be 8 kHz to 14 kHz. Specifically, for example, the frequency bin range of the subband w is 8 kHz to 12 kHz, 9 kHz to 11 kHz, 8 kHz to 9.6 kHz, 12 kHz to 14 kHz, or 12.2 kHz to 14.5 kHz. Certainly, the frequency bin range of the subband w is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband w may be the same as or similar to the frequency bin range of the subband z.

[0183] For example, a frequency bin range of the subband i may be 3.2 kHz to 6.4 kHz, 3.2 kHz to 4.8 kHz, 4.8 kHz to 6.4 kHz, 0.4 kHz to 6.4 kHz, or 0.4 kHz to 3.6 kHz. Certainly, the frequency bin range of the subband i is not limited to the foregoing examples.

[0184] For example, a frequency bin range of the subband j may be 6.4 kHz to 9.6 kHz, 6.4 kHz to 8 kHz, 8 kHz to 9.6 kHz, 4.8 kHz to 9.6 kHz, or 4.8 kHz to 8 kHz. Certainly, the frequency bin range of the subband j is not limited to the foregoing examples.

[0185] For example, a frequency bin range of the subband m may be 3.2 kHz to 6.4 kHz, 3.2 kHz to 4.8 kHz, 4.8 kHz to 6.4 kHz, 0.4 kHz to 6.4 kHz, or 0.4 kHz to 3.6 kHz. Certainly, the frequency bin range of the subband m is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband m may be the same as or similar to the frequency bin range of the subband i.

[0186] For example, a frequency bin range of the subband n may be 6.4 kHz to 9.6 kHz, 6.4 kHz to 8 kHz, 8 kHz to 9.6 kHz, 4.8 kHz to 9.6 kHz, or 4.8 kHz to 8 kHz. Certainly, the frequency bin range of the subband n is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband n may be the same as or similar to the frequency bin range of the subband j.

[0187] For example, a frequency bin range of the subband x may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, 1.6 kHz to 3.2 kHz, 2 kHz to 3.2 kHz, or 2.5 kHz to 3.4 kHz. Certainly, the frequency bin range of the subband x is not limited to the foregoing examples.

[0188] For example, a frequency bin range of the subband y may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, 4.8 kHz to 6.4 kHz, 4.4 kHz to 6.4 kHz, or 4.5 kHz to 6.2 kHz. Certainly, the frequency bin range of the subband y is not limited to the foregoing examples.

[0189] For example, a frequency bin range of the subband p may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, 1.6 kHz to 3.2 kHz, 2.1 kHz to 3.2 kHz, or 2.5 kHz to 3.5 kHz. Certainly, the frequency bin range of the subband p is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband p may be the same as or similar to the frequency bin range of the subband x.

[0190] For example, a frequency bin range of the subband q may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, 4.8 kHz to 6.4 kHz, 4.2 kHz to 6.4 kHz, or 4.7 kHz to 6.2 kHz. Certainly, the frequency bin range of the subband q is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband q may be the same as or similar to the frequency bin range of the subband y.

[0191] For example, a frequency bin range of the subband r may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, 1.6 kHz to 3.2 kHz, 2.05 kHz to 3.27 kHz, or 2.59 kHz to 3.51 kHz. Certainly, the frequency bin range of the subband r is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband r may be the same as or similar to the frequency bin range of the subband x.

[0192] For example, a frequency bin range of the subband s may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, 4.8 kHz to 6.4 kHz, 5.4 kHz to 7.1 kHz, or 4.55 kHz to 6.29 kHz. Certainly, the frequency bin range of the subband s is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband s may be the same as or similar to the frequency bin range of the subband y.

[0193] For example, a frequency bin range of the subband e may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, 1.6 kHz to 3.2 kHz, 0.8 kHz to 3 kHz, or 1.9 kHz to 3.8 kHz. Certainly, the frequency bin range of the subband e is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband e may be the same as or similar to the frequency bin range of the subband x.

[0194] For example, a frequency bin range of the subband f may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, 4.8 kHz to 6.4 kHz, 5.3 kHz to 7.15 kHz, or 4.58 kHz to 6.52 kHz. Certainly, the frequency bin range of the subband f is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband f may be the same as or similar to the frequency bin range of the subband y.

[0195] The first parameter condition and the second parameter condition may be varied.

[0196] For example, in some possible implementation manners, the first parameter condition in this embodiment may be, for example, the first parameter condition in the method embodiment, and the second parameter condition in this embodiment may be, for example, the second parameter condition in the method embodiment. For related descriptions, refer to the records in the method embodiment.

[0197] It may be understood that, functions of each functional module of the audio coder 900 in this embodiment may be specifically implemented according to the methods of the foregoing method embodiments. For a specific implementation process, refer to related description of the foregoing method embodiments, and details are not described herein.

[0198] The audio coder 900 may be any apparatus that needs to collect, store, or transmit an audio signal, for example, a mobile phone, a tablet computer, a personal computer, or a notebook computer.

[0199] As can be seen, in solutions of this example useful for understanding the present invention, after acquiring a reference coding parameter of a current audio frame, the audio coder 900 selects a TCX algorithm or an HQ algorithm based on the acquired reference coding parameter of the current audio frame, to code spectral coefficients of the current audio frame. The reference coding parameter of the current audio frame is associated with a coding algorithm used to code spectral coefficients of the current audio frame, which helps improve adaptability and matchability between the coding algorithm and the reference coding parameter of the current audio frame, and further helps improve coding quality or coding efficiency of the current audio frame.

[0200] Referring to FIG. 10, FIG. 10 is a structural block diagram of an audio coder 1000 according to another example useful for understanding the present invention.

[0201] The audio coder 1000 may include at least one processor 1001, a memory 1005, and at least one communications bus 1002. The communications bus 1002 is configured to implement connection and communication between the components.

[0202] Optionally, the audio coder 1000 may further include at least one network interface 1004, a user interface 1003, and the like. Optionally, the user interface 1003 includes a display (for example, a touch screen, a liquid crystal display, a holographic imaging device (English: Holographic), or a projector (English: Projector)), a click device (for example, a mouse, a trackball (English: trackball), a touch panel, or a touch screen), a camera, and/or a pickup device.

[0203] The memory 1005 may include a read only memory and a random access memory, and provide an instruction and data for the processor 1001. Apart of the memory 1005 may further include a non-volatile random access memory.

[0204] In some implementation manners, the memory 1005 stores the following elements, executable modules or data structures, or a subset thereof, or an extension set thereof: the time-frequency transformation unit 910, the acquiring unit 920, and the coding unit 930.

[0205] In this example useful for understanding the present invention of the present invention, the processor 1001 executes the code or instruction in the memory 1005, to: perform time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame; acquire a reference coding parameter of the current audio frame; and if the acquired reference coding parameter of the current audio frame satisfies a first parameter condition, code spectral coefficients of the current audio frame based on a transform coded excitation algorithm, or if the acquired reference coding parameter of the current audio frame satisfies a second parameter condition, code spectral coefficients of the current audio frame based on a high quality transform coding algorithm.

[0206] According to a requirement of an application scenario, the reference coding parameter that is acquired by the processor 1001 and that is of the current audio frame may be varied.

[0207] For example, the reference coding parameter may include at least one of the following parameters: a coding rate of the current audio frame; a peak-to-average ratio of spectral coefficients that is located within a subband z and that is of the current audio frame; an envelope deviation of spectral coefficients that is located within a subband w and that is of the current audio frame; an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame; an amplitude average of spectral coefficients that is located within a subband m and that is of the current audio frame and an amplitude average of spectral coefficients that is located within a subband n and that is of the current audio frame; a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of the current audio frame and a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame; an envelope deviation of spectral coefficients that is located within a subband r and that is of the current audio frame and an envelope deviation of spectral coefficients that is located within a subband s and that is of the current audio frame; an envelope of spectral coefficients that is located within a subband e and that is of the current audio frame and an envelope of spectral coefficients that is located within a subband f and that is of the current audio frame; or a parameter value of spectral correlation between spectral coefficients that is located within a subband p and that is of the current audio frame and spectral coefficients that is located within a subband q and that is of the current audio frame.

[0208] A larger parameter value of spectral correlation between the spectral coefficients that are located within the subband p and that is of the current audio frame and the spectral coefficients that are located within the subband q and that is of the current audio frame indicates stronger spectral correlation between the spectral coefficients located within the subband p and the spectral coefficients located within the subband q. The parameter value of the spectral correlation may be, for example, a normalized cross correlation parameter value.

[0209] Frequency bin ranges of the subbands may be determined according to actual needs.

[0210] Optionally, in some possible implementation manners, a highest frequency bin of the subband z may be greater than a critical frequency bin F1, and a highest frequency bin of the subband w may be greater than the critical frequency bin F1. A value range of the critical frequency bin F1 may be, for example, 6.4 kHz to 12 kHz. For example, a value of the critical frequency bin F1 may be 6.4 kHz, 8 kHz, 9 kHz, 10 kHz, or 12 kHz. Certainly, the critical frequency bin F1 may be another value.

[0211] Optionally, in some possible implementation manners, a highest frequency bin of the subband j may be greater than a critical frequency bin F2, and a highest frequency bin of the subband n is greater than the critical frequency bin F2. For example, a value range of the critical frequency bin F2 may be 4.8 kHz to 8 kHz. Specifically, for example, the value of the critical frequency bin F2 may be 6.4 kHz, 4.8 kHz, 6 kHz, 8 kHz, 5 kHz, or 7 kHz. Certainly, the critical frequency bin F2 may be another value.

[0212] Optionally, in some possible implementation manners, a highest frequency bin of the subband i may be less than the highest frequency bin of the subband j, a highest frequency bin of the subband m may be less than the highest frequency bin of the subband n, a highest frequency bin of the subband x may be less than or equal to a lowest frequency bin of the subband y, a highest frequency bin of the subband p may be less than or equal to a lowest frequency bin of the subband q, a highest frequency bin of the subband r may be less than or equal to a lowest frequency bin of the subband s, and a highest frequency bin of the subband e may be less than or equal to a lowest frequency bin of the subband f.

[0213] Optionally, in some possible implementation manners, at least one of the following conditions may be satisfied:
a lowest frequency bin of the subband w is greater than or equal to the critical frequency bin F1, a lowest frequency bin of the subband z is greater than or equal to the critical frequency bin F1, the highest frequency bin of the subband i is less than or equal to a lowest frequency bin of the subband j, the highest frequency bin of the subband m is less than or equal to a lowest frequency bin of the subband n, a lowest frequency bin of the subband j is greater than or equal to the critical frequency bin F2, a lowest frequency bin of the subband n is greater than or equal to the critical frequency bin F2, the highest frequency bin of the subband i is less than or equal to the critical frequency bin F2, the highest frequency bin of the subband m is less than or equal to the critical frequency bin F2, a lowest frequency bin of the subband j is greater than or equal to the critical frequency bin F2, or a lowest frequency bin of the subband n is greater than or equal to the critical frequency bin F2.

[0214] Optionally, in some possible implementation manners, at least one of the following conditions may be satisfied:
the highest frequency bin of the subband e is less than or equal to the critical frequency bin F2, the highest frequency bin of the subband x is less than or equal to the critical frequency bin F2, the highest frequency bin of the subband p is less than or equal to the critical frequency bin F2, or the highest frequency bin of the subband r is less than or equal to the critical frequency bin F2.

[0215] Optionally, in some possible implementation manners, the highest frequency bin of the subband f may be less than or equal to the critical frequency bin F2, and certainly, the lowest frequency bin of the subband f may be greater than or equal to the critical frequency bin F2. The highest frequency bin of the subband q may be less than or equal to the critical frequency bin F2, and certainly, the lowest frequency bin of the subband q may be greater than or equal to the critical frequency bin F2. The highest frequency bin of the subband s may be less than or equal to the critical frequency bin F2, and certainly, the lowest frequency bin of the subband s may be greater than or equal to the critical frequency bin F2.

[0216] For example, a value range of the highest frequency bin of the subband z may be 12 kHz to 16 kHz. A value range of the lowest frequency bin of the subband z may be 8 kHz to 14 kHz. A value range of a bandwidth of the subband z may be 1.6 kHz to 8 kHz. Specifically, for example, a frequency bin range of the subband z may be 8 kHz to 12 kHz, 9 kHz to 11 kHz, 8 kHz to 9.6 kHz, or 12 kHz to 14 kHz. Certainly, the frequency bin range of the subband z is not limited to the foregoing examples.

[0217] For example, a frequency bin range of the subband w may be determined according to actual needs. For example, a value range of the highest frequency bin of the subband w may be 12 kHz to 16 kHz, and a value range of the lowest frequency bin of the subband w may be 8 kHz to 14 kHz. Specifically, for example, the frequency bin range of the subband w is 8 kHz to 12 kHz, 9 kHz to 11 kHz, 8 kHz to 9.6 kHz, 12 kHz to 14 kHz, or 12.2 kHz to 14.5 kHz. Certainly, the frequency bin range of the subband w is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband w may be the same as or similar to the frequency bin range of the subband z.

[0218] For example, a frequency bin range of the subband i may be 3.2 kHz to 6.4 kHz, 3.2 kHz to 4.8 kHz, 4.8 kHz to 6.4 kHz, 0.4 kHz to 6.4 kHz, or 0.4 kHz to 3.6 kHz. Certainly, the frequency bin range of the subband i is not limited to the foregoing examples.

[0219] For example, a frequency bin range of the subband j may be 6.4 kHz to 9.6 kHz, 6.4 kHz to 8 kHz, 8 kHz to 9.6 kHz, 4.8 kHz to 9.6 kHz, or 4.8 kHz to 8 kHz. Certainly, the frequency bin range of the subband j is not limited to the foregoing examples.

[0220] For example, a frequency bin range of the subband m may be 3.2 kHz to 6.4 kHz, 3.2 kHz to 4.8 kHz, 4.8 kHz to 6.4 kHz, 0.4 kHz to 6.4 kHz, or 0.4 kHz to 3.6 kHz. Certainly, the frequency bin range of the subband m is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband m may be the same as or similar to the frequency bin range of the subband i.

[0221] For example, a frequency bin range of the subband n may be 6.4 kHz to 9.6 kHz, 6.4 kHz to 8 kHz, 8 kHz to 9.6 kHz, 4.8 kHz to 9.6 kHz, or 4.8 kHz to 8 kHz. Certainly, the frequency bin range of the subband n is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband n may be the same as or similar to the frequency bin range of the subband j.

[0222] For example, a frequency bin range of the subband x may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, 1.6 kHz to 3.2 kHz, 2 kHz to 3.2 kHz, or 2.5 kHz to 3.4 kHz. Certainly, the frequency bin range of the subband x is not limited to the foregoing examples.

[0223] For example, a frequency bin range of the subband y may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, 4.8 kHz to 6.4 kHz, 4.4 kHz to 6.4 kHz, or 4.5 kHz to 6.2 kHz. Certainly, the frequency bin range of the subband y is not limited to the foregoing examples.

[0224] For example, a frequency bin range of the subband p may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, 1.6 kHz to 3.2 kHz, 2.1 kHz to 3.2 kHz, or 2.5 kHz to 3.5 kHz. Certainly, the frequency bin range of the subband p is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband p may be the same as or similar to the frequency bin range of the subband x.

[0225] For example, a frequency bin range of the subband q may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, 4.8 kHz to 6.4 kHz, 4.2 kHz to 6.4 kHz, or 4.7 kHz to 6.2 kHz. Certainly, the frequency bin range of the subband q is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband q may be the same as or similar to the frequency bin range of the subband y.

[0226] For example, a frequency bin range of the subband r may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, 1.6 kHz to 3.2 kHz, 2.05 kHz to 3.27 kHz, or 2.59 kHz to 3.51 kHz. Certainly, the frequency bin range of the subband r is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband r may be the same as or similar to the frequency bin range of the subband x.

[0227] For example, a frequency bin range of the subband s may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, 4.8 kHz to 6.4 kHz, 5.4 kHz to 7.1 kHz, or 4.55 kHz to 6.29 kHz. Certainly, the frequency bin range of the subband s is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband s may be the same as or similar to the frequency bin range of the subband y.

[0228] For example, a frequency bin range of the subband e may be 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, 1.6 kHz to 3.2 kHz, 0.8 kHz to 3 kHz, or 1.9 kHz to 3.8 kHz. Certainly, the frequency bin range of the subband e is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband e may be the same as or similar to the frequency bin range of the subband x.

[0229] For example, a frequency bin range of the subband f may be 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, 4.8 kHz to 6.4 kHz, 5.3 kHz to 7.15 kHz, or 4.58 kHz to 6.52 kHz. Certainly, the frequency bin range of the subband f is not limited to the foregoing examples. In some possible implementation manners, the frequency bin range of the subband f may be the same as or similar to the frequency bin range of the subband y.

[0230] The first parameter condition and the second parameter condition may be varied.

[0231] For example, in some possible implementation manners, the first parameter condition in this embodiment may be, for example, the first parameter condition in the method embodiment, and the second parameter condition in this embodiment may be, for example, the second parameter condition in the method embodiment. For related descriptions, refer to the records in the method embodiment.

[0232] It may be understood that, functions of each functional module of the audio coder 1000 in this embodiment may be specifically implemented according to the methods of the foregoing method embodiments. For a specific implementation process, refer to related description of the foregoing method embodiments, and details are not described herein.

[0233] The audio coder 1000 may be any apparatus that needs to collect, store, or transmit an audio signal, for example, a mobile phone, a tablet computer, a personal computer, or a notebook computer.

[0234] As can be seen, in solutions of this example useful for understanding the present invention, after acquiring a reference coding parameter of a current audio frame, the audio coder 1000 selects a TCX algorithm or an HQ algorithm based on the acquired reference coding parameter of the current audio frame, to code spectral coefficients of the current audio frame. The reference coding parameter of the current audio frame is associated with a coding algorithm used to code spectral coefficients of the current audio frame, which helps improve adaptability and matchability between the coding algorithm and the reference coding parameter of the current audio frame, and further helps improve coding quality or coding efficiency of the current audio frame.

[0235] Further, multiple optional reference coding parameters are used, which helps satisfy algorithm selection requirements in multiple scenarios.

[0236] An example useful for understanding the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, a part or all of the steps in the audio coding method recorded in the method embodiment are performed.

[0237] It should be noted that, for brief description, the foregoing method embodiments are represented as a series of actions. However, persons skilled in the art should appreciate that the present invention is not limited to the described order of the actions, because according to the present invention, some steps may be performed in other orders or simultaneously. It should be further appreciated by a person skilled in the art that the embodiments described in this specification all belong to exemplary embodiments, and the involved actions and modules are not necessarily required by the present invention.

[0238] In the foregoing embodiments, the description of each embodiment has respective focuses. For a part that is not described in detail in an embodiment, reference may be made to related descriptions in other embodiments.

[0239] In the several embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the described apparatus embodiment is merely exemplary. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.

[0240] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. A part or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

[0241] In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.

[0242] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the present invention essentially, or the part contributing to the prior art, or all or a part of the technical solutions may be implemented in the form of a software product. The software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or a part of the steps of the methods described in the embodiments of the present invention. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc.

[0243] The foregoing embodiments are merely intended for describing the technical solutions of the present invention other than limiting the present invention.


Claims

1. An audio coding method, comprising:

performing (201) time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame;

acquiring (202) an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame; and

determining (203) whether a quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T4;

if the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to the threshold T4, coding (204) spectral coefficients of the current audio frame based on a transform coded excitation algorithm; and

if the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than the threshold T4, coding (205) spectral coefficients of the current audio frame based on a high quality transform coding algorithm.


 
2. The method according to claim 1, wherein a frequency bin range of the subband i is 3.2 kHz to 6.4 kHz, 3.2 kHz to 4.8 kHz, 4.8 kHz to 6.4 kHz, or 0.4 kHz to 6.4 kHz, or a frequency bin range of the subband j is 6.4 kHz to 9.6 kHz, 6.4 kHz to 8 kHz, 8 kHz to 9.6 kHz, or 4.8 kHz to 9.6 kHz.
 
3. An audio coding method, comprising:

performing (401) time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame;

acquiring (402) a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of the current audio frame and a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame;

determining (403) whether a ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame falls within an interval R1;

if the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame falls within an interval R1, coding (404) spectral coefficients of the current audio frame based on a transform coded excitation algorithm; and

if the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame does not fall within the interval R1, coding (405) spectral coefficients of the current audio frame based on a high quality transform coding algorithm.


 
4. The method according to claim 3, wherein a frequency bin range of the subband x is 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, or 1.6 kHz to 3.2 kHz, and a frequency bin range of the subband y is 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, or 4.8 kHz to 6.4 kHz.
 
5. An audio coder, comprising:

a unit configured to perform time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame;

a unit configured to acquire an energy average of spectral coefficients that is located within a subband i and that is of the current audio frame and an energy average of spectral coefficients that is located within a subband j and that is of the current audio frame;

a unit configured to determine whether a quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to a threshold T4;

a unit configured to code spectral coefficients of the current audio frame based on a transform coded excitation algorithm if the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is greater than or equal to the threshold T4; and

a unit configured to code spectral coefficients of the current audio frame based on a high quality transform coding algorithm if the quotient of dividing the energy average of the spectral coefficients that are located within the subband i and that is of the current audio frame by the energy average of the spectral coefficients that are located within the subband j and that is of the current audio frame is less than the threshold T4.


 
6. The audio coder according to claim 5, wherein a frequency bin range of the subband i is 3.2 kHz to 6.4 kHz, 3.2 kHz to 4.8 kHz, 4.8 kHz to 6.4 kHz, or 0.4 kHz to 6.4 kHz, or a frequency bin range of the subband j is 6.4 kHz to 9.6 kHz, 6.4 kHz to 8 kHz, 8 kHz to 9.6 kHz, or 4.8 kHz to 9.6 kHz.
 
7. An audio coder, comprising:

a unit configured to perform time-frequency transformation processing on a time-domain signal of a current audio frame, to obtain spectral coefficients of the current audio frame;

a unit configured to acquire a peak-to-average ratio of spectral coefficients that is located within a subband x and that is of the current audio frame and a peak-to-average ratio of spectral coefficients that is located within a subband y and that is of the current audio frame;

a unit configured to determine whether a ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame falls within an interval R1;

a unit configured to code spectral coefficients of the current audio frame based on a transform coded excitation algorithm if the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame falls within an interval R1; and

a unit configured to code spectral coefficients of the current audio frame based on a high quality transform coding algorithm if the ratio of the peak-to-average ratio of the spectral coefficients that are located within the subband x and that is of the current audio frame to the peak-to-average ratio of the spectral coefficients that are located within the subband y and that is of the current audio frame does not fall within the interval R1.


 
8. The audio coder according to claim 7, wherein a frequency bin range of the subband x is 0 kHz to 1.6 kHz, 1 kHz to 2.6 kHz, or 1.6 kHz to 3.2 kHz, and a frequency bin range of the subband y is 6.4 kHz to 8 kHz, 7.4 kHz to 9 kHz, or 4.8 kHz to 6.4 kHz.
 


Ansprüche

1. Audiocodierverfahren, umfassend:

Durchführen (201) von Zeit-Frequenz-Transformationsverarbeitung an einem Zeitdomänensignal eines aktuellen Audiorahmens, um Spektralkoeffizienten des aktuellen Audiorahmens zu erhalten;

Erfassen (202) eines Energiedurchschnitts von Spektralkoeffizienten, der in einem Teilband i vorliegt und der für den aktuellen Audiorahmen gilt, und eines Energiedurchschnitts von Spektralkoeffizienten, der in einem Teilband j vorliegt und der für den aktuellen Audiorahmen gilt; und

Ermitteln (203), ob ein Quotient der Division des Energiedurchschnitts der Spektralkoeffizienten, die im Teilband i vorliegen und für den aktuellen Audiorahmen gelten, durch den Energiedurchschnitt der Spektralkoeffizienten, die im Teilband j vorliegen und für den aktuellen Audiorahmen gelten, größer als ein oder gleich einem Schwellenwert T4 ist;

falls der Quotient der Division des Energiedurchschnitts der Spektralkoeffizienten, die im Teilband i vorliegen und für den aktuellen Audiorahmen gelten, durch den Energiedurchschnitt der Spektralkoeffizienten, die im Teilband j vorliegen und für den aktuellen Audiorahmen gelten, größer als der oder gleich dem Schwellenwert T4 ist:

Codieren (204) von Spektralkoeffizienten des aktuellen Audiorahmens basierend auf einem transformationscodierten Anregungsalgorithmus; und

falls der Quotient der Division des Energiedurchschnitts der Spektralkoeffizienten, die im Teilband i vorliegen und für den aktuellen Audiorahmen gelten, durch den Energiedurchschnitt der Spektralkoeffizienten, die im Teilband j vorliegen und für den aktuellen Audiorahmen gelten, kleiner als der Schwellenwert T4 ist: Codieren (205) von Spektralkoeffizienten des aktuellen Audiorahmens basierend auf einem hochwertigen Transformationscodieralgorithmus.


 
2. Verfahren nach Anspruch 1, wobei ein Frequenzlinienbereich des Teilbands i 3,2 kHz bis 6,4 kHz, 3,2 kHz bis 4,8 kHz, 4,8 kHz bis 6,4 kHz oder 0,4 kHz bis 6,4 kHz ist oder ein Frequenzlinienbereich des Teilbands j 6,4 kHz bis 9,6 kHz, 6,4 kHz bis 8 kHz, 8 kHz bis 9,6 kHz oder 4,8 kHz bis 9,6 kHz ist.
 
3. Audiocodierverfahren, umfassend:

Durchführen (401) von Zeit-Frequenz-Transformationsverarbeitung an einem Zeitdomänensignal eines aktuellen Audiorahmens, um Spektralkoeffizienten des aktuellen Audiorahmens zu erhalten;

Erfassen (402) eines Peak-zu-Durchschnitt-Verhältnisses von Spektralkoeffizienten, das in einem Teilband x vorliegt und das für den aktuellen Audiorahmen gilt, und eines Peak-zu-Durchschnitt-Verhältnisses von Spektralkoeffizienten, das in einem Teilband y vorliegt und für den aktuellen Audiorahmen gilt;

Ermitteln (403), ob ein Verhältnis des Peak-zu-Durchschnitt-Verhältnisses der Spektralkoeffizienten, die in dem Teilband x vorliegen und für den aktuellen Audiorahmen gelten, zu dem Peak-zu-Durchschnitt-Verhältnis der Spektralkoeffizienten, die im Teilband y vorliegen und für den aktuellen Audiorahmen gelten, in ein Intervall R1 fällt;

falls das Verhältnis des Peak-zu-Durchschnitt-Verhältnisses der Spektralkoeffizienten, die im Teilband x vorliegen und für den aktuellen Audiorahmen gelten, zu dem Peak-zu-Durchschnitt-Verhältnis der Spektralkoeffizienten, die im Teilband y vorliegen und für den aktuellen Audiorahmen gelten, in ein Intervall R1 fällt: Codieren (404) von Spektralkoeffizienten des aktuellen Audiorahmens basierend auf einem transformationscodierten Anregungsalgorithmus; und

falls das Verhältnis des Peak-zu-Durchschnitt-Verhältnisses der Spektralkoeffizienten, die im Teilband x vorliegen und für den aktuellen Audiorahmen gelten, zu dem Peak-zu-Durchschnitt-Verhältnis der Spektralkoeffizienten, die im Teilband y vorliegen und für den aktuellen Audiorahmen gelten, nicht in das Intervall R1 fällt: Codieren (405) von Spektralkoeffizienten des aktuellen Audiorahmens basierend auf einem hochwertigen Transformationscodieralgorithmus.


 
4. Verfahren nach Anspruch 3, wobei ein Frequenzlinienbereich des Teilbands x 0 kHz bis 1,6 kHz, 1 kHz bis 2,6 kHz oder 1,6 kHz bis 3,2 kHz ist und ein Frequenzlinienbereich des Teilbands y 6,4 kHz bis 8 kHz, 7,4 kHz bis 9 kHz oder 4,8 kHz bis 6,4 kHz ist.
 
5. Audiocodierer, umfassend:

eine Einheit, ausgelegt zum Durchführen von Zeit-Frequenz-Transformationsverarbeitung an einem Zeitdomänensignal eines aktuellen Audiorahmens, um Spektralkoeffizienten des aktuellen Audiorahmens zu erhalten;

eine Einheit, ausgelegt zum Erfassen eines Energiedurchschnitts von Spektralkoeffizienten, der in einem Teilband i vorliegt und der für den aktuellen Audiorahmen gilt, und eines Energiedurchschnitts von Spektralkoeffizienten, der in einem Teilband j vorliegt und der für den aktuellen Audiorahmen gilt;

eine Einheit, ausgelegt zum Ermitteln, ob ein Quotient der Division des Energiedurchschnitts der Spektralkoeffizienten, die im Teilband i vorliegen und für den aktuellen Audiorahmen gelten, durch den Energiedurchschnitt der Spektralkoeffizienten, die im Teilband j vorliegen und für den aktuellen Audiorahmen gelten, größer als ein oder gleich einem Schwellenwert T4 ist;

eine Einheit, ausgelegt zum Codieren von Spektralkoeffizienten des aktuellen Audiorahmens basierend auf einem transformationscodierten Anregungsalgorithmus, falls der Quotient der Division des Energiedurchschnitts der Spektralkoeffizienten, die im Teilband i vorliegen und für den aktuellen Audiorahmen gelten, durch den Energiedurchschnitt der Spektralkoeffizienten, die im Teilband j vorliegen und für den aktuellen Audiorahmen gelten, durch den Energiedurchschnitt der Spektralkoeffizienten, die im Teilband j vorliegen und für den aktuellen Audiorahmen gelten, größer als der oder gleich dem Schwellenwert T4 ist; und

eine Einheit, ausgelegt zum Codieren von Spektralkoeffizienten des aktuellen Audiorahmens basierend auf einem hochwertigen Transformationscodieralgorithmus, falls der Quotient der Division des Energiedurchschnitts der Spektralkoeffizienten, die im Teilband i vorliegen und für den aktuellen Audiorahmen gelten, durch den Energiedurchschnitt der Spektralkoeffizienten, die im Teilband j vorliegen und für den aktuellen Audiorahmen gelten, kleiner ist als der Schwellenwert T4.


 
6. Audiocodierer nach Anspruch 5, wobei ein Frequenzlinienbereich des Teilbands i 3,2 kHz bis 6,4 kHz, 3,2 kHz bis 4,8 kHz, 4,8 kHz bis 6,4 kHz oder 0,4 kHz bis 6,4 kHz ist oder ein Frequenzlinienbereich des Teilbands j 6,4 kHz bis 9,6 kHz, 6,4 kHz bis 8 kHz, 8 kHz bis 9,6 kHz oder 4,8 kHz bis 9,6 kHz ist.
 
7. Audiocodierer, umfassend:

eine Einheit, ausgelegt zum Durchführen von Zeit-Frequenz-Transformationsverarbeitung an einem Zeitdomänensignal eines aktuellen Audiorahmens, um Spektralkoeffizienten des aktuellen Audiorahmens zu erhalten;

eine Einheit, ausgelegt zum Erfassen eines Peak-zu-Durchschnitt-Verhältnisses von Spektralkoeffizienten, das in einem Teilband x vorliegt und das für den aktuellen Audiorahmen gilt, und eines Peak-zu-Durchschnitt-Verhältnisses von Spektralkoeffizienten, das in einem Teilband y vorliegt und für den aktuellen Audiorahmen gilt;

eine Einheit, ausgelegt zum Ermitteln, ob ein Verhältnis des Peak-zu-Durchschnitt-Verhältnisses der Spektralkoeffizienten, die in dem Teilband x vorliegen und für den aktuellen Audiorahmen gelten, zu dem Peak-zu-Durchschnitt-Verhältnis der Spektralkoeffizienten, die im Teilband y vorliegen und für den aktuellen Audiorahmen gelten, in ein Intervall R1 fällt;

eine Einheit, ausgelegt zum Codieren von Spektralkoeffizienten des aktuellen Audiorahmens basierend auf einem transformationscodierten Anregungsalgorithmus, falls das Verhältnis des Peak-zu-Durchschnitt-Verhältnisses der Spektralkoeffizienten, die im Teilband x vorliegen und für den aktuellen Audiorahmen gelten, zu dem Peak-zu-Durchschnitt-Verhältnis der Spektralkoeffizienten, die im Teilband y vorliegen und für den aktuellen Audiorahmen gelten, in ein Intervall R1 fällt; und

eine Einheit, ausgelegt zum Codieren von Spektralkoeffizienten des aktuellen Audiorahmens basierend auf einem hochwertigen Transformationscodieralgorithmus, falls das Verhältnis des Peak-zu-Durchschnitt-Verhältnisses der Spektralkoeffizienten, die im Teilband x vorliegen und für den aktuellen Audiorahmen gelten, zu dem Peak-zu-Durchschnitt-Verhältnis der Spektralkoeffizienten, die im Teilband y vorliegen und für den aktuellen Audiorahmen gelten, nicht in das Intervall R1 fällt.


 
8. Audiocodierer nach Anspruch 7, wobei ein Frequenzlinienbereich des Teilbands x 0 kHz bis 1,6 kHz, 1 kHz bis 2,6 kHz oder 1,6 kHz bis 3,2 kHz ist und ein Frequenzlinienbereich des Teilbands y 6,4 kHz bis 8 kHz, 7,4 kHz bis 9 kHz oder 4,8 kHz bis 6,4 kHz ist.
 


Revendications

1. Procédé de codage audio, consistant à :

réaliser (201) un traitement de transformation temps-fréquence sur un signal en domaine temporel d'une trame audio actuelle, afin d'obtenir des coefficients spectraux de la trame audio actuelle ;

acquérir (202) une moyenne d'énergie de coefficients spectraux qui sont situés dans une sous-bande i et qui sont de la trame audio actuelle et une moyenne d'énergie de coefficients spectraux qui sont situés dans une sous-bande j et qui sont de la trame audio actuelle ; et

déterminer (203) si un quotient de la division de la moyenne d'énergie des coefficients spectraux qui sont situés dans la sous-bande i et qui sont de la trame audio actuelle par la moyenne d'énergie des coefficients spectraux qui sont situés dans la sous-bande j et qui sont de la trame audio actuelle est supérieur ou égal à un seuil T4 ;

si le quotient de la division de la moyenne d'énergie des coefficients spectraux qui sont situés dans la sous-bande i et qui sont de la trame audio actuelle par la moyenne d'énergie des coefficients spectraux qui sont situés dans la sous-bande j et qui sont de la trame audio actuelle est supérieur ou égal au seuil T4, coder (204) des coefficients spectraux de la trame audio actuelle sur la base d'un algorithme d'excitation codé par transformée ; et

si le quotient de la division de la moyenne d'énergie des coefficients spectraux qui sont situés dans la sous-bande i et qui sont de la trame audio actuelle par la moyenne d'énergie des coefficients spectraux qui sont situés dans la sous-bande j et qui sont de la trame audio actuelle est inférieur au seuil T4, coder (205) des coefficients spectraux de la trame audio actuelle sur la base d'un algorithme de codage par transformée de haute qualité.


 
2. Procédé selon la revendication 1, dans lequel une gamme de segments de fréquences de la sous-bande i est de 3,2 kHz à 6,4 kHz, de 3,2 kHz à 4,8 kHz, de 4,8 kHz à 6,4 kHz ou de 0,4 kHz à 6,4 kHz, ou une gamme de segments de fréquences de la sous-bande j est de 6,4 kHz à 9,6 kHz, de 6,4 kHz à 8 kHz, de 8 kHz à 9,6 kHz ou de 4,8 kHz à 9,6 kHz.
 
3. Procédé de codage audio, consistant à :

réaliser (401) un traitement de transformation temps-fréquence sur un signal en domaine temporel d'une trame audio actuelle, afin d'obtenir des coefficients spectraux de la trame audio actuelle ;

acquérir (402) un rapport valeur de crête-valeur moyenne de coefficients spectraux qui sont situés dans une sous-bande x et qui sont de la trame audio actuelle et un rapport valeur de crête-valeur moyenne de coefficients spectraux qui sont situés dans une sous-bande y et qui sont de la trame audio actuelle ;

déterminer (403) si un rapport entre le rapport valeur de crête-valeur moyenne des coefficients spectraux qui sont situés dans la sous-bande x et qui sont de la trame audio actuelle et le rapport valeur de crête-valeur moyenne des coefficients spectraux qui sont situés dans la sous-bande y et qui sont de la trame audio actuelle tombe dans un intervalle R1 ;

si le rapport entre le rapport valeur de crête-valeur moyenne des coefficients spectraux qui sont situés dans la sous-bande x et qui sont de la trame audio actuelle et le rapport valeur de crête-valeur moyenne des coefficients spectraux qui sont situés dans la sous-bande y et qui sont de la trame audio actuelle tombe dans un intervalle R1, coder (404) des coefficients spectraux de la trame audio actuelle sur la base d'un algorithme d'excitation codé par transformée ; et

si le rapport entre le rapport valeur de crête-valeur moyenne des coefficients spectraux qui sont situés dans la sous-bande x et qui sont de la trame audio actuelle et le rapport valeur de crête-valeur moyenne des coefficients spectraux qui sont situés dans la sous-bande y et qui sont de la trame audio actuelle ne tombe pas dans l'intervalle R1, coder (405) des coefficients spectraux de la trame audio actuelle sur la base d'un algorithme de codage par transformée de haute qualité.


 
4. Procédé selon la revendication 3, dans lequel une gamme de segments de fréquences de la sous-bande x est de 0 kHz à 1,6 kHz, de 1 kHz à 2,6 kHz ou de 1,6 kHz à 3,2 kHz, et une gamme de segments de fréquences de la sous-bande y est de 6,4 kHz à 8 kHz, de 7,4 kHz à 9 kHz ou de 4,8 kHz à 6,4 kHz.
 
5. Codeur audio, comprenant :

une unité configurée pour réaliser un traitement de transformation temps-fréquence sur un signal en domaine temporel d'une trame audio actuelle, afin d'obtenir des coefficients spectraux de la trame audio actuelle ;

une unité configurée pour acquérir une moyenne d'énergie de coefficients spectraux qui sont situés dans une sous-bande i et qui sont de la trame audio actuelle et une moyenne d'énergie de coefficients spectraux qui sont situés dans une sous-bande j et qui sont de la trame audio actuelle ;

une unité configurée pour déterminer si un quotient de la division de la moyenne d'énergie des coefficients spectraux qui sont situés dans la sous-bande i et qui sont de la trame audio actuelle par la moyenne d'énergie des coefficients spectraux qui sont situés dans la sous-bande j et qui sont de la trame audio actuelle est supérieur ou égal à un seuil T4 ;

une unité configurée pour coder des coefficients spectraux de la trame audio actuelle sur la base d'un algorithme d'excitation codé par transformée si le quotient de la division de la moyenne d'énergie des coefficients spectraux qui sont situés dans la sous-bande i et qui sont de la trame audio actuelle par la moyenne d'énergie des coefficients spectraux qui sont situés dans la sous-bande j et qui sont de la trame audio actuelle est supérieur ou égal au seuil T4 ; et

une unité configurée pour coder des coefficients spectraux de la trame audio actuelle sur la base d'un algorithme de codage par transformée de haute qualité si le quotient de la division de la moyenne d'énergie des coefficients spectraux qui sont situés dans la sous-bande i et qui sont de la trame audio actuelle par la moyenne d'énergie des coefficients spectraux qui sont situés dans la sous-bande j et qui sont de la trame audio actuelle est inférieur au seuil T4.


 
6. Codeur audio selon la revendication 5, dans lequel une gamme de segments de fréquences de la sous-bande i est de 3,2 kHz à 6,4 kHz, de 3,2 kHz à 4,8 kHz, de 4,8 kHz à 6,4 kHz ou de 0,4 kHz à 6,4 kHz, ou une gamme de segments de fréquences de la sous-bande j est de 6,4 kHz à 9,6 kHz, de 6,4 kHz à 8 kHz, de 8 kHz à 9,6 kHz ou de 4,8 kHz à 9,6 kHz
 
7. Codeur audio, comprenant :

une unité configurée pour réaliser un traitement de transformation temps-fréquence sur un signal en domaine temporel d'une trame audio actuelle, afin d'obtenir des coefficients spectraux de la trame audio actuelle ;

une unité configurée pour acquérir un rapport valeur de crête-valeur moyenne de coefficients spectraux qui sont situés dans une sous-bande x et qui sont de la trame audio actuelle et un rapport valeur de crête-valeur moyenne de coefficients spectraux qui sont situés dans une sous-bande y et qui sont de la trame audio actuelle ;

une unité configurée pour déterminer si un rapport entre le rapport valeur de crête-valeur moyenne des coefficients spectraux qui sont situés dans la sous-bande x et qui sont de la trame audio actuelle et le rapport valeur de crête-valeur moyenne des coefficients spectraux qui sont situés dans la sous-bande y et qui sont de la trame audio actuelle tombe dans un intervalle ;

une unité configurée pour coder des coefficients spectraux de la trame audio actuelle sur la base d'un algorithme d'excitation codé par transformée si le rapport entre le rapport valeur de crête-valeur moyenne des coefficients spectraux qui sont situés dans la sous-bande x et qui sont de la trame audio actuelle et le rapport valeur de crête-valeur moyenne des coefficients spectraux qui sont situés dans la sous-bande y et qui sont de la trame audio actuelle tombe dans un intervalle ; et

une unité configurée pour coder des coefficients spectraux de la trame audio actuelle sur la base d'un algorithme de codage par transformée de haute qualité si le rapport entre le rapport valeur de crête-valeur moyenne des coefficients spectraux qui sont situés dans la sous-bande x et qui sont de la trame audio actuelle et le rapport valeur de crête-valeur moyenne des coefficients spectraux qui sont situés dans la sous-bande y et qui sont de la trame audio actuelle ne tombe pas dans l'intervalle R1.


 
8. Codeur audio selon la revendication 7, dans lequel une gamme de segments de fréquences de la sous-bande x est de 0 kHz à 1,6 kHz, de 1 kHz à 2,6 kHz ou de 1,6 kHz à 3,2 kHz, et une gamme de segments de fréquences de la sous-bande y est de 6,4 kHz à 8 kHz, de 7,4 kHz à 9 kHz ou de 4,8 kHz à 6,4 kHz.
 




Drawing





























Cited references

REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Non-patent literature cited in the description