Abstract:
A method and device for decoding a signal. The method for decoding a signal includes: obtaining spectral coefficients of sub-bands from a received bitstream by means of decoding; classifying sub-bands in which the spectral coefficients are located into a sub-band with saturated bit allocation and a sub-band with unsaturated bit allocation; performing noise filling on a spectral coefficient that has not been obtained by means of decoding and is in the sub-band with unsaturated bit allocation, so as to restore the spectral coefficient that has not been obtained by means of decoding; and obtaining a frequency domain signal according to the spectral coefficients obtained by means of decoding and the restored spectral coefficient. Therefore, a sub-band with unsaturated bit allocation in a frequency domain signal may be obtained by classification, thereby improving signal decoding quality.
Abstract:
An encoding method, a decoding method, an encoding apparatus, a decoding apparatus, a transmitter, a receiver, and a communications system. The encoding method includes: dividing a to-be-encoded time-domain signal into a low band signal and a high band signal; performing encoding on the low band signal to obtain a low frequency encoding parameter; performing encoding on the high band signal to obtain a high frequency encoding parameter, and obtaining a synthesized high band signal; performing short-time post-filtering processing on the synthesized high band signal to obtain a short-time filtering signal; and calculating a high frequency gain based on the high band signal and the short-time filtering signal. A technical solution according to the embodiments of the present invention can improve an encoding and/or decoding effect.
Abstract:
A method and an apparatus for allocating bits in an audio signal. The method includes dividing a frequency band of an audio signal into a plurality of subbands, quantizing a subband normalization factor of each subband; and an energy attribute of an audio signal of the corresponding group; allocating coding bits to at least one group, where a sum of coding bits allocated to the at least one group is the number of coding bits of the audio signal; and allocating the coding bits allocated to the at least one group to each subband in each group of the at least one group. In a case of a low or medium bit rate, the embodiments of the present invention can, by means of grouping, ensure relatively stable allocation of previous and subsequent frames and reduce impact of global allocation on partial discontinuity.
Abstract:
A bandwidth expansion method and apparatus are disclosed, where the method includes: estimating a bandwidth of at least one decoded frame of a whole-band signal, so as to obtain an estimated bandwidth, where the estimated bandwidth corresponds to a whole-band signal that a decoded lower-band signal needs to be extended into; performing first predictive decoding on a part of the lower-band signal in a band above an effective bandwidth of the lower-band signal and below the estimated bandwidth, so as to obtain the part of the lower-band signal above the effective bandwidth of the lower-band signal and below the estimated bandwidth; and performing second predictive decoding on a part of the lower-band signal in a band above the estimated bandwidth, so as to obtain the part of the lower-band signal above the estimated bandwidth.
Abstract:
The present invention discloses a pitch detection method and apparatus, which belong to the field of speech and audio. The pitch detection method includes: performing pitch detection on a speech signal in a time domain to obtain an initial pitch period; converting the speech signal to a frequency domain to obtain a frequency spectrum of the speech signal, where the frequency spectrum includes a magnitude spectrum of the frequency spectrum; extracting a feature parameter according to the initial pitch period and the frequency spectrum of the speech signal; and performing fine pitch period detection according to the initial pitch period and the feature parameter to obtain a fine pitch period.
Abstract:
A method and a device for encoding a high frequency signal, and a method and a device for decoding a high frequency signal are provided, which relate to encoding and decoding technology. The method for encoding a high frequency signal includes: determining a signal class of a high frequency signal of a current frame; smoothing and scaling time envelopes of the high frequency signal of the current frame and obtaining time envelopes of the high frequency signal of the current frame that require to be encoded, if the high frequency signal of the current frame is a non-transient signal and a high frequency signal of the previous frame is a transient signal; and quantizing and encoding the time envelopes of the high frequency signal of the current frame that require to be encoded, and frequency information and signal class information of the high frequency signal of the current frame.
Abstract:
A bandwidth expansion method and apparatus are disclosed, where the method includes: estimating a bandwidth of at least one decoded frame of a whole-band signal, so as to obtain an estimated bandwidth, where the estimated bandwidth corresponds to a whole-band signal that a decoded lower-band signal needs to be extended into; performing first predictive decoding on a part of the lower-band signal in a band above an effective bandwidth of the lower-band signal and below the estimated bandwidth, so as to obtain the part of the lower-band signal above the effective bandwidth of the lower-band signal and below the estimated bandwidth; and performing second predictive decoding on a part of the lower-band signal in a band above the estimated bandwidth, so as to obtain the part of the lower-band signal above the estimated bandwidth.
Abstract:
The present disclosure relates to a method, apparatus, and system for encoding and decoding signals. The encoding method includes: converting a first-domain signal into a second-domain signal; performing Linear Prediction (LP) processing and Long-Term Prediction (LTP) processing for the second-domain signal; obtaining a long-term flag value according to a decision criterion; obtaining a second-domain predictive signal according to the LP processing result and the LTP processing result when the long-term flag value is a first value; obtaining a second-domain predictive signal according to the LP processing result when the long-term flag value is a second value; converting the second-domain predictive signal into a first-domain predictive signal, and calculating a first-domain predictive residual signal; and outputting a bit stream that includes the first-domain predictive residual signal.
Abstract:
A signal compression method and apparatus are provided. The signal compression method includes: multiplying an input signal by a window function; calculating original autocorrelation coefficients of a windowed input signal; calculating a white-noise correction factor or a lag-window according to the original autocorrelation coefficients, and calculating modified autocorrelation coefficients according to the original autocorrelation coefficients, the white-noise correction factor and the lag-window; calculating linear prediction coefficients according to the modified autocorrelation coefficients; and outputting a coded bit stream according to the linear prediction coefficients.
Abstract:
A signal compression method and apparatus are provided. The signal compression method includes: multiplying an input signal by a window function; calculating original autocorrelation coefficients of a windowed input signal; calculating a white-noise correction factor or a lag-window according to the original autocorrelation coefficients, and calculating modified autocorrelation coefficients according to the original autocorrelation coefficients, the white-noise correction factor and the lag-window; calculating linear prediction coefficients according to the modified autocorrelation coefficients; and outputting a coded bit stream according to the linear prediction coefficients.