Audio signal encoding method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsEyal Shlomot, Jonathan Alastair Gibbs, Haiting Li
Life of this patent
Estimating the term…
Abstract
An encoding method includes determining an adaptive broadening factor based on a quantized line spectral frequency (LSF) vector of a first channel of a current frame of an audio signal and an LSF vector of a second channel of the current frame, and writing the quantized LSF vector and the adaptive broadening factor into a bitstream.
Claims20
An audio signal encoding method, comprising:
- obtaining a current frame of an audio signal, wherein the current frame comprises a first channel signal and a second channel signal;
- obtaining an inter-channel time difference (ITD) between the first channel signal and the second channel signal;
- performing time alignment on the first channel signal and the second channel signal based on the ITD to respectively obtain a time-aligned first channel signal and a time-aligned second channel signal;
- performing a time-domain downmixing on the time-aligned first channel signal and the time-aligned second channel signal to respectively obtain a third channel signal and a fourth channel signal;
- obtaining a first quantized line spectral frequency (LSF) vector of the third channel signal;
- obtaining a second LSF vector of the fourth channel signal;
- calculating a second adaptive broadening factor based on the first quantized LSF vector and the second LSF vector;
- obtaining a first adaptive broadening factor by quantizing the second adaptive broadening factor;
- and
- writing the first quantized LSF vector and the first adaptive broadening factor into a bitstream,
- wherein the first quantized LSF vector, the second LSF vector, and the second adaptive broadening factor satisfy a first equation comprising:
- β
- =
- ∑
- i
- =
- 1
- M
- w
- i
- [
- -
- LSF
- _
- S
- 2
-
- (
- i
- )
- +
- LSF
- S
-
- (
- i
- )
-
- LSF
- _
- S
-
- (
- i
- )
- -
- LSF
- S
-
- (
- i
- )
-
- LSF
- P
-
- (
- i
- )
- +
- LSF
- _
- S
-
- (
- i
- )
-
- LSF
- P
-
- (
- i
- )
- ]
- ∑
- i
- =
- 1
- M
- w
- i
- [
- -
- LSF
- _
- S
- 2
- (
- i
- )
- -
- LSF
- P
- 2
- (
- i
- )
- +
- 2
-
- LSF
- _
- S
- (
- i
- )
-
- LSF
- P
- (
- i
- )
- ]
- ,
- wherein β represents the second adaptive broadening factor, wherein LSFS represents the second LSF vector, wherein LSFP represents the first quantized LSF vector, wherein LSFS represents a mean vector associated with the second LSF vector, wherein i represents a vector index and is an integer, wherein 1≤i≤M, wherein M is a linear prediction order, and wherein w is a weighting coefficient.
An audio signal encoding apparatus, comprising:
- a processor;
- and
- a memory coupled to the processor and configured to store programming instructions for execution by the processor to cause the audio signal encoding apparatus to:
- obtain a current frame of an audio signal, wherein the current frame comprises a first channel signal and a second channel signal;
- obtain an inter-channel time difference (ITD) between the first channel signal and the second channel signal;
- perform time alignment on the first channel signal and the second channel signal based on the ITD to respectively obtain a time-aligned first channel signal and a time-aligned second channel signal;
- perform a time-domain downmixing on the time-aligned first channel signal and the time-aligned second channel signal to respectively obtain a third channel signal and a fourth channel signal;
- obtain a first quantized line spectral frequency (LSF) vector of the third channel signal;
- obtain a second LSF vector of the fourth channel signal;
- calculate a second adaptive broadening factor based on the first quantized LSF vector and the second LSF vector;
- obtain a first adaptive broadening factor by quantizing the second adaptive broadening factor;
- and
- write the first quantized LSF vector and the first adaptive broadening factor into a bitstream,
- wherein the first quantized LSF vector, the second LSF vector, and the second adaptive broadening factor satisfy a first equation comprising:
- β
- =
- ∑
- i
- =
- 1
- M
- w
- i
- [
- -
- LSF
- _
- S
- 2
-
- (
- i
- )
- +
- LSF
- S
-
- (
- i
- )
-
- LSF
- _
- S
-
- (
- i
- )
- -
- LSF
- S
-
- (
- i
- )
-
- LSF
- P
-
- (
- i
- )
- +
- LSF
- _
- S
-
- (
- i
- )
-
- LSF
- P
-
- (
- i
- )
- ]
- ∑
- i
- =
- 1
- M
- w
- i
- [
- -
- LSF
- _
- S
- 2
- (
- i
- )
- -
- LSF
- P
- 2
- (
- i
- )
- +
- 2
-
- LSF
- _
- S
- (
- i
- )
-
- LSF
- P
- (
- i
- )
- ]
- ,
- wherein β represents the second adaptive broadening factor, wherein LSFS represents the second LSF vector, wherein LSFP represents the first quantized LSF vector, wherein LSFS represents a mean vector associated with the second LSF vector, wherein i is a vector index and is an integer, wherein 1≤i≤M, wherein M is a linear prediction order, and wherein w is a weighting coefficient.
A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable medium and that, when executed by a processor, cause an audio signal encoding apparatus to:
- obtain a current frame of an audio signal, wherein the current frame comprises a first channel signal and a second channel signal;
- obtain an inter-channel time difference (ITD) between the first channel signal and the second channel signal;
- perform time alignment on the first channel signal and the second channel signal based on the ITD to respectively obtain a time-aligned first channel signal and a time-aligned second channel signal;
- perform a time-domain downmixing on the time-aligned first channel signal and the time-aligned second channel signal to respectively obtain a third channel signal and a fourth channel signal;
- obtain a first quantized line spectral frequency (LSF) vector of the third channel signal;
- obtain a second LSF vector of the fourth channel signal;
- calculate a second adaptive broadening factor based on the first quantized LSF vector and the second LSF vector;
- obtain a first adaptive broadening factor by quantizing the second adaptive broadening factor;
- and
- write the first quantized LSF vector and the first adaptive broadening factor into a bitstream;
- wherein the first quantized LSF vector, the second LSF vector, and the second adaptive broadening factor satisfy a first equation comprising:
- β
- =
- ∑
- i
- =
- 1
- M
- w
- i
- [
- -
- LSF
- _
- S
- 2
-
- (
- i
- )
- +
- LSF
- S
-
- (
- i
- )
-
- LSF
- _
- S
-
- (
- i
- )
- -
- LSF
- S
-
- (
- i
- )
-
- LSF
- P
-
- (
- i
- )
- +
- LSF
- _
- S
-
- (
- i
- )
-
- LSF
- P
-
- (
- i
- )
- ]
- ∑
- i
- =
- 1
- M
- w
- i
- [
- -
- LSF
- _
- S
- 2
- (
- i
- )
- -
- LSF
- P
- 2
- (
- i
- )
- +
- 2
-
- LSF
- _
- S
- (
- i
- )
-
- LSF
- P
- (
- i
- )
- ]
- ,
- wherein β represents the second adaptive broadening factor, wherein LSFS represents the second LSF vector, wherein LSFP represents the first quantized LSF vector, wherein LSFS represents a mean vector associated with the second LSF vector, wherein i is a vector index and is an integer, wherein 1≤i≤M, wherein M is a linear prediction order, and wherein w is a weighting coefficient.
Dependencies are inferred from the claim text.