Patent ID: 11915709
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 16:
17. A non-transitory computer program product comprising instructions that are stored on a computer-readable medium and that, when executed by a processor, cause an apparatus to:
obtain 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, and wherein the second signal class is either speech or music and the first signal class is either the speech or the music;
obtain an IPD parameter extraction manner for the current frame based on the at least one of the current parameter or the previous parameter, where 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;
extract the IPD parameter of the current frame based on the obtained IPD parameter extraction manner; and
encode the IPD parameter of the current frame;
wherein when executed by the processor, the instructions cause the apparatus to obtain, 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;
wherein the first threshold is 0.75.