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

Claim 7:
8. A signal processing device for processing an audio signal or a speech signal, wherein the signal processing device comprises:
a memory configured to store instructions; and
at least a processor coupled to the memory and configured to execute the instructions to cause the at least a processor to be configured to:
select M sub-bands from N sub-bands, wherein the N sub-bands are based on a division of spectral coefficients of a current frame of a signal, wherein frequency bands of the M sub-bands are lower than frequency bands of K sub-bands in the N sub-bands, wherein N is a positive integer greater than 1, wherein both M and K are positive integers, and wherein a sum of M and K is N;
quantize envelope values of each of the M sub-bands to obtain quantized envelope values of the M sub-bands;
determine a first total energy of the M sub-bands according to the quantized envelope values of the M sub-bands;
quantize envelope values of each of the K sub-bands to obtain quantized envelope values of the K sub-bands;
determine a second total energy of the K sub-bands according to the quantized envelope values of the other K sub-bands;
determine a ratio of the first total energy to the second total energy as an energy characteristic of the M sub-bands;
determine to perform a modification operation on the quantized envelope values of the M sub-bands when the energy characteristic of the M sub-bands falls within a first range and a spectral characteristic of the M sub-bands falls within a second range, wherein the spectral characteristic of the M sub-bands indicates a degree of spectral fluctuation of the M sub-bands and is based on the quantized envelope values of the M sub-bands;
perform modification on the quantized envelope values of the M sub-bands to obtain modified envelope values of the M sub-bands; and
perform a first bit allocation on the N sub-bands according to the modified envelope values of the M sub-bands and according to the quantized envelope values of the K sub-bands.