Abstract:
Embodiments of the present application proposes a frequency envelope vector quantization method and apparatus, where the method includes: dividing N frequency envelopes in one frame into N1 vectors; quantizing a first vector in the N1 vectors by using a first codebook, to obtain a code word corresponding to the quantized first vector, where the first codebook is divided into 2B1 portions; determining, according to the code word corresponding to the quantized first vector; determining a second codebook according to the codebook of the ith portion; and quantizing a second vector in the N1 vectors based on the second codebook. In the embodiments of the present application, vector quantization can be performed on frequency envelope vectors by using a codebook with a smaller quantity of bits. Therefore, complexity of vector quantization can be reduced, and an effect of vector quantization can also be ensured.
Abstract:
A vector joint encoding/decoding method and a vector joint encoder/decoder are provided, more than two vectors are jointly encoded, and an encoding index of at least one vector is split and then combined between different vectors, so that encoding idle spaces of different vectors can be recombined, thereby facilitating saving of encoding bits, and because an encoding index of a vector is split and then shorter split indexes are recombined, thereby facilitating reduction of requirements for the bit width of operating parts in encoding/decoding calculation.
Abstract:
An audio encoding and decoding method and a related apparatus are provided. The audio encoding method may include: determining a coding mode of a current frame; when determining that the coding mode of the current frame is an anticorrelated signal coding mode, performing time-domain downmix processing on left and right channel signals in the current frame by using a time-domain downmix processing manner corresponding to the anticorrelated signal coding mode, to obtain a primary channel signal and a secondary channel signal, where the time-domain downmix processing manner corresponding to the anticorrelated signal coding mode is a time-domain downmix processing manner corresponding to an anticorrelated signal channel combination scheme, and the anticorrelated signal channel combination scheme is a channel combination scheme corresponding to a near out of phase signal; and encoding the obtained primary channel signal and secondary channel signal in the current frame.
Abstract:
Embodiments of the present invention provide a coding/decoding method, apparatus, and system. According to the coding method, de-emphasis processing is performed on a full band signal by using a de-emphasis parameter determined according to a characteristic factor of an input audio signal, and then the full band signal is coded and sent to a decoder, so that the decoder performs corresponding de-emphasis decoding processing on the full band signal according to the characteristic factor of the input audio signal and restores the input audio signal. This resolves a prior-art problem that an audio signal restored by a decoder is apt to have signal distortion, and implements adaptive de-emphasis processing on the full band signal according to the characteristic factor of the audio signal to enhance coding performance, so that the input audio signal restored by the decoder has relatively high fidelity and is closer to an original signal.
Abstract:
A method for recovering lost frame in a media bitstream is provided. When a frame loss event occurs, a decoder obtains a synthesized high frequency band signal of a current lost frame, and recovery information related to the current lost frame. The decoder determines a global gain gradient of the current lost frame, and further determines a global gain of the current lost frame according to the global gain gradient and a global gain of each frame in previous M frames of the current lost frame. A high frequency band signal of the current lost frame is obtained by adjusting the synthesized high frequency band signal of the current lost frame according to the global gain and a subframe gain of the current lost frame. The process enables natural and smooth transitions of the high frequency band signal between the frames, and attenuates noises in the high frequency band signal.
Abstract:
Embodiments of the present disclosure provide signal encoding and decoding methods and devices. The method includes: determining, a quantity k of subbands to be encoded, where i is a positive number, and k is a positive integer; selecting, according to quantized envelopes of all subbands, k subbands from all the subbands, or selecting k subbands from all subbands according to a psychoacoustic model; and performing a first-time encoding operation on spectral coefficients of the k subbands. In the embodiments of the present disclosure, the quantity k of subbands to be encoded is determined according to the quantity of available bits and the first saturation threshold, and encoding is performed on the k subbands that are selected from all the subbands, instead of on an entire frequency band, which can reduce spectrum holes of a signal obtained through decoding, and therefore, can improve auditory quality of an output signal.
Abstract:
An audio signal encoding method is provided. The method includes: dividing a frequency band of an audio signal into a plurality of sub-bands, and quantifying a sub-band normalization factor of each sub-band; determining signal bandwidth of bit allocation according to the quantified sub-band normalization factor, or according to the quantified sub-band normalization factor and bit rate information; allocating bits for a sub-band within the determined signal bandwidth; and coding a spectrum coefficient of the audio signal according to the bits allocated for each sub-band. According to embodiments of the present invention, during coding and decoding, signal bandwidth of bit allocation is determined according to the quantified sub-band normalization factor and bit rate information. In this manner, the determined signal bandwidth is effectively coded and decoded by centralizing the bits, and audio quality is improved.