Signal processing method and device
First Claim
1. An audio signal processing method, comprising:
- obtaining, by an audio signal encoder, spectral coefficients of a current frame of an audio signal, wherein each of N sub-bands of the current frame comprises at least one spectral coefficient, and N is a positive integer greater than 1;
obtaining, by the audio signal encoder, a total energy of M sub-bands of the N sub-bands, a total energy of K sub-bands of the N sub-bands, and an energy of a first sub-band, wherein the M sub-bands and the K sub-bands have no overlap, M and K are positive integers, and N=M+K, wherein the energy of the first sub-band is the largest among energies of the M sub-bands;
determining, by the audio signal encoder, whether to modify original envelope values of the M sub-bands based on a ratio of the total energy of the M sub-bands to the total energy of the K sub-bands and a ratio of the energy of the first sub-band to the total energy of the M sub-bands;
based on a determination that the original envelope values of the M sub-bands need to be modified, modifying, by the audio signal encoder, original envelope values of the M sub-bands individually to obtain modified envelope values of the M sub-bands, wherein the modified envelope values of the M sub-bands is one of determining factors for allocating encoding bits to the N sub-bands, and wherein each of the N sub-bands has either at least one encoding bit allocated or no encoding bit allocated;
quantizing, by the audio signal encoder, spectral coefficients of each sub-band that has at least one encoding bits allocated; and
writing, by the audio signal encoder, the quantized spectral coefficients into a bitstream.
0 Assignments
0 Petitions
Accused Products
Abstract
Present disclosure provides a signal processing method and device. Spectral coefficients of a current frame of a frequency-domain audio signal are divided into N sub-bands. N is a positive integer greater than 1. According to an energy attribute and a spectral attribute of a first subset of the N sub-bands, whether to modify original envelope values of sub-bands in the first subset is determined. A frequency range of each of the M sub-bands in the first subset is lower than a frequency range of each of the K sub-bands. Based on a determination that the original envelope values of the M sub-bands need to be modified, the original 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 modified envelope values of the M sub-bands and original envelope values of the K sub-bands.
-
Citations
20 Claims
-
1. An audio signal processing method, comprising:
-
obtaining, by an audio signal encoder, spectral coefficients of a current frame of an audio signal, wherein each of N sub-bands of the current frame comprises at least one spectral coefficient, and N is a positive integer greater than 1; obtaining, by the audio signal encoder, a total energy of M sub-bands of the N sub-bands, a total energy of K sub-bands of the N sub-bands, and an energy of a first sub-band, wherein the M sub-bands and the K sub-bands have no overlap, M and K are positive integers, and N=M+K, wherein the energy of the first sub-band is the largest among energies of the M sub-bands; determining, by the audio signal encoder, whether to modify original envelope values of the M sub-bands based on a ratio of the total energy of the M sub-bands to the total energy of the K sub-bands and a ratio of the energy of the first sub-band to the total energy of the M sub-bands; based on a determination that the original envelope values of the M sub-bands need to be modified, modifying, by the audio signal encoder, original envelope values of the M sub-bands individually to obtain modified envelope values of the M sub-bands, wherein the modified envelope values of the M sub-bands is one of determining factors for allocating encoding bits to the N sub-bands, and wherein each of the N sub-bands has either at least one encoding bit allocated or no encoding bit allocated; quantizing, by the audio signal encoder, spectral coefficients of each sub-band that has at least one encoding bits allocated; and writing, by the audio signal encoder, the quantized spectral coefficients into a bitstream. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. An audio signal processing device, comprising:
-
a memory for storing processor-executable instructions; and a processor operatively coupled to the memory, wherein the processor is configured to execute the processor-executable instructions to; obtain spectral coefficients of a current frame of an audio signal, wherein each of N sub-bands of the current frame comprises at least one spectral coefficient, and N is a positive integer greater than 1; obtain a total energy of M sub-bands of the N sub-bands, a total energy of K sub-bands of the N sub-bands, and an energy of a first sub-band, wherein the M sub-bands and the K sub-bands have no overlap, M and K are positive integers, and N=M+K, wherein the energy of the first sub-band is the largest among energies of the M sub-bands; determine whether to modify original envelope values of the M sub-bands based on a ratio of the total energy of the M sub-bands to the total energy of the K sub-bands and a ratio of energy of the first sub-band to the total energy of the M sub-bands; based on a determination that the original envelope values of the M sub-bands need to be modified, modify the original envelope values of the M sub-bands individually to obtain modified envelope values of the M sub-bands, wherein the modified envelope values of the M sub-bands is one of determining factors for allocating encoding bits to the N sub-bands, wherein each of the N sub-bands has either at least one encoding bit allocated or no encoding bit allocated; quantize spectral coefficients of each sub-band that has at least one encoding bits allocated; and write the quantized spectral coefficients into a bitstream. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification