Abstract:
An audio coding method and apparatus are disclosed, where the method includes: dividing an input audio signal into a low-band signal and a high-band signal; identifying types of the low-band signal and the high-band signal; adaptively allocating a total input rate of the audio signal to the low-band signal and the high-band signal according to different coding modes corresponding to the low-band signal and the high-band signal; and coding the low-band signal through a coding mode corresponding to the low-band signal according to the low-band rate, and coding the high-band signal through a coding mode corresponding to the high-band signal according to the high-band rate. In embodiments of the present application, when the low-band signal and the high-band signal are coded, coding rates are adaptively adjusted according to different types of the signals, thereby improving overall audio coding performance.
Abstract:
Embodiments of the present invention provide a signal classification method and device, and encoding and decoding methods and devices. The encoding method includes: dividing a current frame into a low-frequency band signal and a high-frequency band signal; attenuating the high-frequency band signal or a to-be-encoded characteristic parameter of the high-frequency band signal according to an energy attenuation value of the low-frequency band signal, where the energy attenuation value indicates energy attenuation of the low-frequency band signal caused by encoding of the low-frequency band signal; and encoding the attenuated high-frequency band signal or the attenuated to-be-encoded characteristic parameter of the high-frequency band signal. The technical solutions according to the embodiments of the present invention can improve the effect of combining the low-frequency band signal and the high-frequency band signal at the decoder.
Abstract:
According to the invention, a device for post-processing at least one channel signal of a plurality of channel signals of a multi-channel signal is described, the at least one channel signal being generated from a decoded downmix signal by a low-bit-rate audio coding/decoding system, the device comprising: a receiver for receiving the at least one channel signal generated from the decoded downmix signal, a time envelope of the decoded downmix signal, an interchannel time difference between the channel signal and the downmix signal, and a classification indication indicating a transient type of the downmix signal; and a post-processor for post-processing the at least one channel signal based on the time envelope of the decoded downmix signal weighted by a respective weighting factor and in dependence on the classification indication and the interchannel time difference.
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 type 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 type information of the high frequency signal of the current frame.
Abstract:
Embodiments of the present invention provide a method and an apparatus for generating a sideband residual signal. The method includes: comparing energy of a first signal input by a first sound channel with energy of a second signal input by a second sound channel; if the energy of the first signal is greater than the energy of the second signal, generating a sideband residual signal by allocating a monophonic quantization error to the first signal; and if the energy of the first signal is smaller than the energy of the second signal, generating a sideband residual signal by allocating a monophonic quantization error to the second signal. By using the method and apparatus provided in the embodiments of the present invention, it can be avoided that a monophonic quantization error has a greater impact on a signal whose energy is smaller.
Abstract:
A multi-channel signal encoding method includes determining a downmixed signal of a first channel signal and a second channel signal, determining an initial reverberation gain parameter of the first channel signal and the second channel signal, determining a target reverberation gain parameter of the first channel signal and the second channel signal based on a correlation between the first channel signal and the downmixed signal, a correlation between the second channel signal and the downmixed signal, and the initial reverberation gain parameter, quantizing the first channel signal and the second channel signal based on the downmixed signal and the target reverberation gain parameter, and writing a quantized first channel signal and a quantized second channel signal into a bitstream.
Abstract:
In a method to decode signals, a computing device decodes spectral coefficients of a current frame are grouped into a plurality of sub-bands. The computing device classifies a sub-band as a bit allocation unsaturated sub-band based on an average quantity of allocated bits per spectral coefficient of a sub-band of the plurality of sub-bands and a threshold. The computing device obtains a noise filling gain based on an envelope of the sub-band, and obtains a reconstructed spectral coefficient of the sub-band by performing noise filling based on the noise filling gain. The computing device then obtains a frequency domain audio signal based on spectral coefficients in the sub-band obtained by decoding and the reconstructed spectral coefficient.
Abstract:
In a stereo encoding method, a channel combination encoding solution of a current frame is first obtained, and then a quantized channel combination ratio factor of the current frame and an encoding index of the quantized channel combination ratio factor are obtained based on the obtained channel combination encoding solution, so that an obtained primary channel signal and secondary channel signal of the current frame meet a characteristic of the current frame.
Abstract:
A delay estimation method includes determining a cross-correlation coefficient of a multi-channel signal of a current frame, determining a delay track estimation value of the current frame based on buffered inter-channel time difference information of at least one past frame, determining an adaptive window function of the current frame, performing weighting on the cross-correlation coefficient based on the delay track estimation value of the current frame and the adaptive window function of the current frame, to obtain a weighted cross-correlation coefficient, and determining an inter-channel time difference of the current frame based on the weighted cross-correlation coefficient.
Abstract:
A multi-channel signal encoding method includes obtaining a multi-channel signal of a current frame; determining an initial multi-channel parameter of the current frame; determining a difference parameter based on the initial multi-channel parameter of the current frame and multi-channel parameters of previous K frames of the current frame, where the difference parameter represents a difference between the initial multi-channel parameter of the current frame and the multi-channel parameters of the previous K frames, and K is an integer greater than or equal to one; determining a multi-channel parameter of the current frame based on the difference parameter and a characteristic parameter of the current frame; and encoding the multi-channel signal based on the multi-channel parameter of the current frame.