Audio Coding Method and Related Apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsZexin Liu, Lei Miao
Life of this patent
Estimating the term…
Abstract
An audio encoding method and a related apparatus, where the audio coding method includes obtaining an audio signal, obtaining some subband parameters of a current frame of the audio signal, and encoding the current frame using a high quality transform coding (HQ) algorithm based on the obtained subband parameters. The audio encoding method and the related apparatus help improve encoding quality or encoding efficiency in audio signal encoding.
Claims21
An audio signal encoding method, comprising:
- obtaining, by an audio signal encoder, an audio signal, wherein the audio signal comprises a current frame, and wherein the current frame comprises a subband i, a subband j, a subband x, and a subband y;
- obtaining, by the audio signal encoder, an average energy of the subband i, an average energy of the subband j, a spectral peak of the subband x, a spectral average of the subband x, a spectral peak of the subband y, and a spectral average of the subband y;
- and
- encoding, by the audio signal encoder, the current frame using a high quality transform coding (HQ) algorithm when the average energy of the subband j is greater than a product of the average energy of the subband i multiplied by a first constant (T4), a product of the spectral peak of the subband x multiplied by the spectral average of the subband y is greater than a product of the spectral peak of the subband y multiplied by the spectral average of the subband x andmultiplied by a lowest value of a first interval (R1), and the product of the spectral peak of the subband x multiplied by the spectral average of the subband y is less than a product of the spectral peak of the subband y multiplied by the spectral average of the subband x and multiplied by a highest value of the R1.
An audio signal encoding method, comprising:
- obtaining, by an audio signal encoder, an audio signal, wherein the audio signal comprises a current frame, and wherein the current frame comprises a subband x and a subband y;
- obtaining, by the audio signal encoder, a spectral peak of the subband x, a spectral average of the subband x, a spectral peak of the subband y, and a spectral average of the subband y;
- encoding, by the audio signal encoder, the current frame using a high quality transform coding (HQ) algorithm when a product of the spectral peak of the subband x multiplied by the spectral average of the subband y is less than a product of the spectral peak of the subband y multiplied by the spectral average of the subband x multiplied by a first constant (T44), and the spectral peak of the subband y is greater than a product of the spectral average of the subband y multiplied by a second constant (T45);
- and
- encoding, by the audio signal encoder, the current frame using the HQ algorithm when the product of the spectral peak of the subband x multiplied by the spectral average of the subband y is greater than a product of the spectral peak of the subband y multiplied by the spectral average of the subband x multiplied by a third constant (T46), and the spectral peak of the subband y is less than a product of the spectral average of the subband y multiplied by the T45.
An audio signal encoder, comprising:
- a memory storing program instructions;
- and
- at least one processor coupled to the memory, wherein the program instructions cause the at least one processor to be configured to:
- obtain an audio signal, wherein the audio signal comprises a current frame, and wherein the current frame comprises a subband i, a subband j, a subband x, and a subband y;
- obtain an average energy of the subband i, an average energy of the subband j, a spectral peak of the subband x, a spectral average of the subband x, a spectral peak of the subband y, and a spectral average of the subband y;
- and
- encode the current frame using a high quality transform coding (HQ) algorithm when the average energy of the subband j is greater than a product of the average energy of the subband i multiplied by a first constant (T4), a product of the spectral peak of the subband x multiplied by the spectral average of the subband y is greater than a product of the spectral peak of the subband y multiplied by the spectral average of the subband x and multiplied by a lowest value of a first interval (R1), and the product of the spectral peak of the subband x multiplied by the spectral average of the subband y is less than a product of the spectral peak of the subband y multiplied by the spectral average of the subband x and multiplied by a highest value of the R1.
An audio signal encoder, comprising:
- a memory storing program instructions;
- and
- at least one processor coupled to the memory, wherein the program instructions cause the at least one processor to be configured to:
- obtain an audio signal, wherein the audio signal comprises a current frame, and wherein the current frame comprises a subband x and a subband y;
- obtain a spectral peak of the subband x, a spectral average of the subband x, a spectral peak of the subband y, and a spectral average of the subband y;
- encode the current frame using a high quality transform coding (HQ) algorithm when a product of the spectral peak of the subband x multiplied by the spectral average of the subband y is less than a product of the spectral peak of the subband y multiplied by the spectral average of the subband x multiplied by a first constant (T44), and the spectral peak of the subband y is greater than a product of the spectral average of the subband y multiplied by a second constant (T45);
- and
- encode the current frame using the HQ algorithm when the product of the spectral peak of the subband x multiplied by the spectral average of the subband y is greater than a product of the spectral peak of the subband y multiplied by the spectral average of the subband x multiplied by a third constant (T46), and the spectral peak of the subband y is less than a product of the spectral average of the subband y multiplied by the T47.
An audio signal encoder, comprising:
- a circuit configured to obtain an audio signal, wherein the audio signal comprises a current frame, and wherein the current frame comprises a subband i, a subband j, a subband x, and a subband y;
- a circuit configured to obtain an average energy of the subband i, an average energy of the subband j, a spectral peak of the subband x, a spectral average of the subband x, a spectral peak of the subband y, and a spectral average of the subband y;
- and
- a circuit configured to encode the current frame using a high quality transform coding (HQ) algorithm when the average energy of the subband j is greater than a product of the average energy of the subband i multiplied by a first constant (T4), a product of the spectral peak of the subband x multiplied by the spectral average of the subband y is greater than a product of the spectral peak of the subband y multiplied by the spectral average of the subband x and multiplied by a lowest value of a first interval (R1), and the product of the spectral peak of the subband x multiplied by the spectral average of the subband y is less than a product of the spectral peak of the subband y multiplied by the spectral average of the subband x and multiplied by a highest value of the R1.
An audio signal encoder, comprising:
- a circuit configured to obtain an audio signal, wherein the audio signal comprises a current frame, and wherein the current frame comprises a subband x and a subband y;
- and
- a circuit configured to obtain a spectral peak of the subband x, a spectral average of the subband x, a spectral peak of the subband y, and a spectral average of the subband y;
- and
- a circuit configured to:
- encode the current frame using a high quality transform coding (HQ) algorithm when a product of the spectral peak of the subband x multiplied by the spectral average of the subband y is less than a product of the spectral peak of the subband y multiplied by the spectral average of the subband x multiplied by a first constant (T44), and the spectral peak of the subband y is greater than a product of the spectral average of the subband y multiplied by a second constant (T45);
- and
- encode the current frame using the HQ algorithm when the product of the spectral peak of the subband x multiplied by the spectral average of the subband y is greater than a product of the spectral peak of the subband y multiplied by the spectral average of the subband x multiplied by a third constant (T46), and the spectral peak of the subband y is less than a product of the spectral average of the subband y multiplied by the T47.
Dependencies are inferred from the claim text.