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

Claim 2:
3. The terminal of claim 2, wherein the encoder is further configured to:
obtain an Nth-frame stereo parameter set according to the Nth-frame audio signals based on a first stereo parameter set generation manner, and encode the Nth-frame stereo parameter set when a speech signal is detected;
when no speech signal is detected and when the Nth-frame audio signals satisfies the preset speech frame encoding condition, obtain the Nth-frame stereo parameter set according to the Nth-frame audio signals based on the first stereo parameter set generation manner, and encode the Nth-frame stereo parameter set;
when no speech signal is detected and when the Nth-frame audio signals do not satisfy the preset speech frame encoding condition, obtain the Nth-frame stereo parameter set according to the Nth-frame audio signals based on a second stereo parameter set generation manner; and
encode a stereo parameter in the Nth-frame stereo parameter set when the Nth-frame stereo parameter set satisfies a preset stereo parameter encoding condition, wherein the first stereo parameter set generation manner and the second stereo parameter set generation manner satisfy one of the following conditions:
a quantity of types of stereo parameters comprised in a stereo parameter set stipulated in the first stereo parameter set generation manner is greater than or equal to a quantity of types of stereo parameters comprised in a stereo parameter set stipulated in the second stereo parameter set generation manner,
a quantity of stereo parameters comprised in the stereo parameter set stipulated in the first stereo parameter set generation manner is greater than or equal to a quantity of stereo parameters comprised in the stereo parameter set stipulated in the second stereo parameter set generation manner,
a time-domain resolution of a stereo parameter stipulated in the first stereo parameter set generation manner is higher than or equal to a time-domain resolution of a corresponding stereo parameter stipulated in the second stereo parameter set generation manner, or
a frequency-domain resolution of a stereo parameter stipulated in the first stereo parameter set generation manner is higher than or equal to a frequency-domain resolution of a corresponding stereo parameter stipulated in the second stereo parameter set generation manner.