CPC G10L 19/008 (2013.01) | 20 Claims |
1. A method comprising:
obtaining at least one of a current parameter of a current frame of an audio signal or a previous parameter of a previous frame of the audio signal, wherein the audio signal comprises at least two channels, wherein the current parameter comprises at least one of a first parameter representing a left-right channel coherence of the current frame, a first subband inter-channel phase difference (IPD) variance of the current frame, a first signal class of the current frame, or an inter-channel time difference (ITD) of the current frame, wherein the previous parameter comprises at least one of a second parameter representing a left-right channel coherence of the previous frame, a second subband IPD variance of the previous frame, an ITD parameter of the previous frame, an IPD parameter extraction manner for the previous frame, or a second signal class of the previous frame, wherein the second signal class is either speech or music and the first signal class is either the speech or the music;
obtaining an IPD parameter extraction manner for the current frame based on the at least one of the current parameter or the previous parameter, wherein the IPD parameter extraction manner for the current frame is a first IPD parameter extraction manner or a second IPD parameter extraction manner, wherein the first IPD parameter extraction manner comprises one of a first manner for extracting a group IPD parameter of the current frame, a second manner for not extracting an IPD parameter of the current frame, or a third manner for setting the IPD parameter of the current frame to zero, and wherein the second IPD parameter extraction manner comprises one of a fourth manner for extracting subband set IPD parameters or a fifth manner for extracting subband IPD parameters;
extracting the IPD parameter of the current frame based on the IPD parameter extraction manner; and
encoding the IPD parameter of the current frame,
wherein obtaining the IPD parameter extraction manner for the current frame comprises obtaining, when a value of the first parameter is greater than a first threshold, the first IPD parameter extraction manner as the IPD parameter extraction manner for the current frame, and
wherein the first threshold is 0.75.
|