Signal processing method and device
First Claim
1. An audio signal encoding method, comprising:
- obtaining, by an audio signal encoder, spectral coefficients of a current frame of an audio signal, wherein each of the spectral coefficients belong to one of N sub-bands of the current frame, and N is a positive integer;
obtaining, by the audio signal encoder, a total energy of M sub-bands in the N sub-bands, wherein M is a positive integer and M≤
N;
determining, by the audio signal encoder, whether a ratio of an energy of a first sub-band to the total energy of the M sub-bands falls within a first range, wherein the energy of the first sub-band is the largest among energies of the M sub-bands;
at least based on a determination that the ratio of the energy of the first sub-band to the total energy of the M sub-bands falls within the first range, determining, by the audio signal encoder, whether to adjust quantized envelope values of the M sub-bands;
based on a determination that the quantized envelope values of the M sub-bands need to be adjusted, adjusting, by the audio signal encoder, the quantized envelope values of the M sub-bands to obtain adjusted envelope values of the M sub-bands;
allocating, by the audio signal encoder, encoding bits for the N sub-bands of the current frame at least based on the adjusted envelope values of the M sub-bands, wherein each of the N sub-bands is either having encoding bits allocated or not having any encoding bits allocated;
quantizing, by the audio signal encoder, spectral coefficients of each sub-band that has encoding bits allocated; and
writing, by the audio signal encoder, the quantized spectral coefficients of the sub-bands that have encoding bits allocated into a bitstream.
0 Assignments
0 Petitions
Accused Products
Abstract
Present disclosure pertains to an audio signal processing method and device. A current frame of a frequency-domain audio signal has N frequency sub-bands. According to an energy attribute and a spectral attribute of a first subset of M sub-bands, whether to adjust envelope values of the M sub-bands is determined. Based on a determination that the energy envelope values of the M sub-bands need to be adjusted, the energy envelope values of the M sub-bands are modified individually to obtain modified envelope values of the M sub-bands. Encoding bits are allocated to each of the N sub-bands according to the adjusted envelope values of the M sub-bands and energy envelope information of K sub-bands of a second subset. The first subset and the second subset have no overlap in frequency, and N=M+K.
13 Citations
22 Claims
-
1. An audio signal encoding method, comprising:
-
obtaining, by an audio signal encoder, spectral coefficients of a current frame of an audio signal, wherein each of the spectral coefficients belong to one of N sub-bands of the current frame, and N is a positive integer; obtaining, by the audio signal encoder, a total energy of M sub-bands in the N sub-bands, wherein M is a positive integer and M≤
N;determining, by the audio signal encoder, whether a ratio of an energy of a first sub-band to the total energy of the M sub-bands falls within a first range, wherein the energy of the first sub-band is the largest among energies of the M sub-bands; at least based on a determination that the ratio of the energy of the first sub-band to the total energy of the M sub-bands falls within the first range, determining, by the audio signal encoder, whether to adjust quantized envelope values of the M sub-bands; based on a determination that the quantized envelope values of the M sub-bands need to be adjusted, adjusting, by the audio signal encoder, the quantized envelope values of the M sub-bands to obtain adjusted envelope values of the M sub-bands; allocating, by the audio signal encoder, encoding bits for the N sub-bands of the current frame at least based on the adjusted envelope values of the M sub-bands, wherein each of the N sub-bands is either having encoding bits allocated or not having any encoding bits allocated; quantizing, by the audio signal encoder, spectral coefficients of each sub-band that has encoding bits allocated; and writing, by the audio signal encoder, the quantized spectral coefficients of the sub-bands that have encoding bits allocated into a bitstream. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. An audio signal encoding device comprising:
-
a memory for storing program instructions; and a processor operatively coupled to the memory, wherein, by executing the program instructions by the processor, the encoding device is configured to; obtain spectral coefficients of a current frame of an audio signal, wherein each of the spectral coefficients belong to one of N frequency sub-bands of the current frame, and N is a positive integer; obtain a total energy of M sub-bands in the N sub-bands, wherein M is a positive integer and M≤
N;determine whether a ratio of an energy of a first sub-band to the total energy of the M sub-bands falls within a first range, wherein the energy of the first sub-band is the largest among energies of the M sub-bands; at least based on a determination that the ratio of the energy of the first sub-band to the total energy of the M sub-bands falls within the first range, determine whether to adjust quantized envelope values of the M sub-bands; based on a determination that the quantized envelope values of the M sub-bands need to be adjusted, adjust the quantized envelope values of the M sub-bands to obtain adjusted envelope values of the M sub-bands; allocate encoding bits for the N sub-bands of the current frame at least based on the adjusted envelope values of the M sub-bands, wherein each of the N sub-bands is either having encoding bits allocated or not having any encoding bits allocated; quantize spectral coefficients of each sub-band that has encoding bits allocated; and write the quantized spectral coefficients of the sub-bands that have encoding bits allocated into a bitstream. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
-
Specification