Audio coding method and related apparatus
First Claim
1. An audio signal encoding method, comprising:
- obtaining, by an audio signal encoder, an audio signal, wherein the audio signal comprises a plurality of subbands;
obtaining, by the audio signal encoder, spectral coefficients of a current frame of the audio signal;
obtaining, by the audio signal encoder, one or more reference coding parameters of the current frame based on the spectral coefficients;
determining, by the audio signal encoder, whether the reference coding parameters satisfy a preset parameter condition; and
based on a determination that the reference coding parameters satisfy the preset parameter condition, encoding, by the audio signal encoder, the spectral coefficients using a transform coded excitation (TCX) algorithm;
wherein the current frame comprises a subband i, a subband j, a subband x and a subband y;
wherein the reference coding parameters comprise;
a subband average energy of spectral coefficients in the subband i, and a subband average energy of spectral coefficients in the subband j;
wherein the highest frequency bin of the subband i is lower than the lowest frequency bin of the subband j, and the highest frequency bin of the subband j is higher than 8 kHz; and
a spectral peak of spectral coefficients in the subband x, a spectral average of the spectral coefficients in the subband x, a spectral peak of spectral coefficients in the subband y, and a spectral average of the spectral coefficients in the subband y;
wherein the highest frequency bin of the subband x is lower than the lowest frequency bin of the subband y;
and wherein the preset parameter condition comprises;
the subband average energy of the spectral coefficients in the subband j is greater than a product of the subband average energy of the spectral coefficients in the subband i multiplied by a constant T4; and
a first product of the spectral peak of the spectral coefficients in the subband x multiplied by the spectral average of the spectral coefficients in the subband y is greater than a second product of the spectral peak of the spectral coefficients in the subband y multiplied by the spectral average of the spectral coefficients in the subband x and multiplied by a lowest value of an interval R1, and the first product is less than the second product multiplied by a highest value of the interval R1.
0 Assignments
0 Petitions
Accused Products
Abstract
An audio encoding method and a related apparatus are disclosed. The audio coding method includes: obtaining an audio signal; obtaining spectral coefficients of a current frame of the audio signal; obtaining a set of reference coding parameters of the current frame; determining whether the set of reference coding parameters satisfy a preset parameter condition; when it is determined that the reference coding parameters satisfy the preset parameter condition, encoding the spectral coefficients of the current frame using a transform coded excitation (TCX) algorithm. The audio encoding method and the related apparatus help improve encoding quality or encoding efficiency in audio signal encoding.
-
Citations
18 Claims
-
1. An audio signal encoding method, comprising:
-
obtaining, by an audio signal encoder, an audio signal, wherein the audio signal comprises a plurality of subbands; obtaining, by the audio signal encoder, spectral coefficients of a current frame of the audio signal; obtaining, by the audio signal encoder, one or more reference coding parameters of the current frame based on the spectral coefficients; determining, by the audio signal encoder, whether the reference coding parameters satisfy a preset parameter condition; and based on a determination that the reference coding parameters satisfy the preset parameter condition, encoding, by the audio signal encoder, the spectral coefficients using a transform coded excitation (TCX) algorithm; wherein the current frame comprises a subband i, a subband j, a subband x and a subband y; wherein the reference coding parameters comprise; a subband average energy of spectral coefficients in the subband i, and a subband average energy of spectral coefficients in the subband j;
wherein the highest frequency bin of the subband i is lower than the lowest frequency bin of the subband j, and the highest frequency bin of the subband j is higher than 8 kHz; anda spectral peak of spectral coefficients in the subband x, a spectral average of the spectral coefficients in the subband x, a spectral peak of spectral coefficients in the subband y, and a spectral average of the spectral coefficients in the subband y;
wherein the highest frequency bin of the subband x is lower than the lowest frequency bin of the subband y;and wherein the preset parameter condition comprises; the subband average energy of the spectral coefficients in the subband j is greater than a product of the subband average energy of the spectral coefficients in the subband i multiplied by a constant T4; and a first product of the spectral peak of the spectral coefficients in the subband x multiplied by the spectral average of the spectral coefficients in the subband y is greater than a second product of the spectral peak of the spectral coefficients in the subband y multiplied by the spectral average of the spectral coefficients in the subband x and multiplied by a lowest value of an interval R1, and the first product is less than the second product multiplied by a highest value of the interval R1. - View Dependent Claims (2, 3)
-
-
4. An audio signal encoding method, comprising:
-
obtaining, by an audio signal encoder, an audio signal, wherein the audio signal comprises a plurality of subbands; obtaining, by the audio signal encoder, spectral coefficients of a current frame of the audio signal; obtaining, by the audio signal encoder, one or more reference coding parameters of the current frame based on the spectral coefficients; determining, by the audio signal encoder, whether the reference coding parameters satisfy a preset parameter condition; and based on a determination that the reference coding parameters satisfy the preset parameter condition, encoding, by the audio signal encoder, the spectral coefficients using a transform coded excitation (TCX) algorithm; wherein the current frame comprises a subband i, a subband j, and a subband y; wherein the highest frequency bin of the subband i is lower than the lowest frequency bin of the subband j, the highest frequency bin of the subband j is higher than a critical frequency bin F2, and F2 is in a range of 4.8 kHz to 8 kHz; wherein the reference coding parameters comprise; a subband average energy of spectral coefficients in the subband i, and a subband average energy of spectral coefficients in the subband j; and a spectral peak of spectral coefficients in the subband y, and a spectral average of the spectral coefficients in the subband y; wherein the preset parameter condition comprises; the subband average energy of the spectral coefficients in the subband j is greater than a product of the subband average energy of the spectral coefficients in the subband i multiplied by a constant T4; and the spectral peak of the spectral coefficients in the subband y is less than a product of the spectral average of the spectral coefficients in the subband y multiplied by a constant T45. - View Dependent Claims (5, 6)
-
-
7. An audio signal encoding method, comprising:
-
obtaining, by an audio signal encoder, an audio signal, wherein the audio signal comprises a plurality of subbands; obtaining, by the audio signal encoder, spectral coefficients of a current frame of the audio signal; obtaining, by the audio signal encoder, one or more reference coding parameters of the current frame based on the spectral coefficients; determining, by the audio signal encoder, whether the reference coding parameters satisfy a preset parameter condition; and based on a determination that the reference coding parameters satisfy the preset parameter condition, encoding, by the audio signal encoder, the spectral coefficients using a transform coded excitation (TCX) algorithm; wherein the current frame comprises a subband x and a subband y, wherein the reference coding parameters comprise; a spectral peak of spectral coefficients in the subband x, a spectral average of the spectral coefficients in the subband x, a spectral peak of spectral coefficients in the subband y, and a spectral average of the spectral coefficients in the subband y; and wherein the preset parameter condition comprises; a product of the spectral peak of the spectral coefficients in the subband x multiplied by the spectral average of the spectral coefficients in the subband y is less than a product of the spectral peak of the spectral coefficients in the subband y multiplied by the spectral average of the spectral coefficients in the subband x multiplied by a constant T44; and the spectral peak of the spectral coefficients in the subband y is greater than a product of the spectral average of the spectral coefficients in the subband y multiplied by a constant T47.
-
-
8. An audio signal encoding method, comprising:
-
obtaining, by an audio signal encoder, an audio signal, wherein the audio signal comprises a plurality of subbands; obtaining, by the audio signal encoder, spectral coefficients of a current frame of the audio signal; obtaining, by the audio signal encoder, one or more reference coding parameters of the current frame based on the spectral coefficients; determining, by the audio signal encoder, whether the reference coding parameters satisfy a preset parameter condition; and based on a determination that the reference coding parameters satisfy the preset parameter condition, encoding, by the audio signal encoder, the spectral coefficients using a transform coded excitation (TCX) algorithm; wherein the current frame comprises a subband x and a subband y; wherein the reference coding parameters comprise; a spectral peak of spectral coefficients in the subband x, a spectral average of the spectral coefficients in the subband x, a spectral peak of spectral coefficients in the subband y, and a spectral average of the spectral coefficients in the subband y; and wherein the preset parameter condition comprises; a product of the spectral peak of the spectral coefficients in the subband x multiplied by the spectral average of the spectral coefficients in the subband y is greater than a product of the spectral peak of the spectral coefficients in the subband y multiplied by the spectral average of the spectral coefficients in the subband x multiplied by a constant T46; and the spectral peak of the spectral coefficients in the subband y is less than a product of the spectral average of the spectral coefficients in the subband y multiplied by a constant T45. - View Dependent Claims (9)
-
-
10. An audio signal encoder, comprising:
-
a processor and a memory storing program instructions for execution by the processor; wherein the processor is configured to execute the program instructions to; obtain an audio signal, wherein the audio signal comprises a plurality of subbands; obtain spectral coefficients of a current frame of the audio signal; obtain one or more reference coding parameters of the current frame based on the spectral coefficients; determine whether the reference coding parameters satisfy a preset parameter condition; and based on a determination that the reference coding parameters satisfy the preset parameter condition, encode the spectral coefficients using a transform coded excitation (TCX) algorithm; wherein the current frame comprises a subband i, a subband j, a subband x and a subband y; wherein the reference coding parameters comprise; a subband average energy of spectral coefficients in the subband i, and a subband average energy of spectral coefficients in the subband j;
wherein the highest frequency bin of the subband i is lower than the lowest frequency bin of the subband j, and the highest frequency bin of the subband j is higher than 8 kHz; anda spectral peak of spectral coefficients in the subband x, a spectral average of the spectral coefficients in the subband x, a spectral peak of spectral coefficients in the subband y, and a spectral average of the spectral coefficients in the subband y;
wherein the highest frequency bin of the subband x is lower than the lowest frequency bin of the subband y;and wherein the preset parameter condition comprise; the subband average energy of the spectral coefficients in the subband j is greater than a product of the subband average energy of the spectral coefficients in the subband i multiplied by a constant T4; and a first product of the spectral peak of the spectral coefficients in the subband x multiplied by the spectral average of the spectral coefficients in the subband y is greater than a second product of the spectral peak of the spectral coefficients in the subband y multiplied by the spectral average of the spectral coefficients in the subband x and multiplied by a lowest value of an interval R1, and the first product is less than the second product multiplied by a highest value of the interval R1. - View Dependent Claims (11, 12)
-
-
13. An audio signal encoder, comprising:
-
a processor and a memory storing program instructions for execution by the processor; wherein the processor is configured to execute the program instructions to; obtain an audio signal, wherein the audio signal comprises a plurality of subbands; obtain spectral coefficients of a current frame of the audio signal; obtain one or more reference coding parameters of the current frame based on the spectral coefficients; determine whether the reference coding parameters satisfy a preset parameter condition; and based on a determination that the reference coding parameters satisfy the preset parameter condition, encode the spectral coefficients using a transform coded excitation (TCX) algorithm; wherein the current frame comprises a subband i, a subband j and a subband y; wherein the highest frequency bin of the subband i is lower than the lowest frequency bin of the subband j, the highest frequency bin of the subband j is higher than a critical frequency bin F2, and F2 is in a range of 4.8 kHz to 8 kHz; wherein the reference coding parameters comprise; a subband average energy of spectral coefficients in the subband i, and a subband average energy of spectral coefficients in the subband j; and a spectral peak of spectral coefficients in the subband y, and a spectral average of the spectral coefficients in the subband y; wherein the preset parameter condition comprises; the subband average energy of the spectral coefficients in the subband j is greater than a product of the subband average energy of the spectral coefficients in the subband i multiplied by a constant T4; and the spectral peak of the spectral coefficients in the subband y is less than a product of the spectral average of the spectral coefficients in the subband y multiplied by a constant T45. - View Dependent Claims (14, 15)
-
-
16. An audio signal encoder, comprising:
-
a processor and a memory storing program instructions for execution by the processor; wherein the processor is configured to execute the program instructions to; obtain an audio signal, wherein the audio signal comprises a plurality of subbands; obtain spectral coefficients of a current frame of the audio signal; obtain one or more reference coding parameters of the current frame based on the spectral coefficients; determine whether the reference coding parameters satisfy a preset parameter condition; and based on a determination that the reference coding parameters satisfy the preset parameter condition, encode the spectral coefficients using a transform coded excitation (TCX) algorithm; wherein the frequency band of the current frame comprises a subband x and a subband y; wherein the reference coding parameters comprise; a spectral peak of spectral coefficients in the subband x, a spectral average of the spectral coefficients in the subband x, a spectral peak of spectral coefficients in the subband y, and a spectral average of the spectral coefficients in the subband y; and wherein the preset parameter condition comprises; a product of the spectral peak of the spectral coefficients in the subband x multiplied by the spectral average of the spectral coefficients in the subband y is less than a product of the spectral peak of the spectral coefficients in the subband y multiplied by the spectral average of the spectral coefficients in the subband x multiplied by a constant T44; and the spectral peak of the spectral coefficients in the subband y is greater than a product of the spectral average of the spectral coefficients in the subband y multiplied by a constant T47.
-
-
17. An audio signal encoder, comprising:
-
a processor and a memory storing program instructions for execution by the processor; wherein the processor is configured to execute the program instructions to; obtain an audio signal, wherein the audio signal comprises a plurality of subbands; obtain spectral coefficients of a current frame of the audio signal; obtain one or more reference coding parameters of the current frame based on the spectral coefficients; determine whether the reference coding parameters satisfy a preset parameter condition; and based on a determination that the reference coding parameters satisfy the preset parameter condition, encode the spectral coefficients using a transform coded excitation (TCX) algorithm; wherein the frequency band of the current frame comprises a subband x and a subband y; wherein the reference coding parameters comprise; a spectral peak of spectral coefficients in the subband x, a spectral average of the spectral coefficients in the subband x, a spectral peak of spectral coefficients in the subband y, and a spectral average of the spectral coefficients in the subband y; and wherein the preset parameter condition comprises; a product of the spectral peak of the spectral coefficients in the subband x multiplied by the spectral average of the spectral coefficients in the subband y is greater than a product of the spectral peak of the spectral coefficients in the subband y multiplied by the spectral average of the spectral coefficients in the subband x multiplied by a constant T46; and the spectral peak of the spectral coefficients in the subband y is less than a product of the spectral average of the spectral coefficients in the subband y multiplied by a constant T45. - View Dependent Claims (18)
-
Specification