Abstract:
A method includes obtaining a signal type of an audio signal and a low frequency band signal of the audio signal, where the audio signal includes the low frequency band signal and a high frequency band signal; obtaining a frequency envelope of the high frequency band signal according to the signal type; predicting an excitation signal of the high frequency band signal according to the low frequency band signal; and restoring the high frequency band signal according to the frequency envelope of the high frequency band signal and the excitation signal of the high frequency band signal. By using the technical solutions of the embodiments of the present invention, an error existing between a high frequency band signal obtained by prediction and an actual high frequency band signal can be effectively reduced, and an accuracy rate of the predicted high frequency band signal can be increased.
Abstract:
The present invention discloses a speech/audio signal processing method and apparatus. In an embodiment, the speech/audio signal processing method includes: when a speech/audio signal switches bandwidth, obtaining an initial high frequency signal corresponding to a current frame of speech/audio signal; obtaining a time-domain global gain parameter of the initial high frequency signal; performing weighting processing on an energy ratio and the time-domain global gain parameter, and using an obtained weighted value as a predicted global gain parameter, where the energy ratio is a ratio between energy of a historical frame of high frequency time-domain signal and energy of a current frame of initial high frequency signal; correcting the initial high frequency signal by using the predicted global gain parameter, to obtain a corrected high frequency time-domain signal; and synthesizing a current frame of narrow frequency time-domain signal and the corrected high frequency time-domain signal and outputting the synthesized signal.
Abstract:
Embodiments of the present application provide a method and an apparatus for recovering a lost frame in a received audio signal. The method for recovering a lost frame includes: determining an initial high-frequency band signal of a current lost frame; determining a gain of the current lost frame; determining gain adjustment information of the current lost frame; adjusting the gain of the current lost frame according to the gain adjustment information, to obtain an adjusted gain of the current lost frame; and adjusting the initial high-band signal according to the adjusted gain, to obtain a high-frequency band signal of the current lost frame. The method and the apparatus for recovering a lost frame provided in the embodiments of the present application can be used in an audio signal decoding process for low-loss recovery of a lost frame of the audio signal, resulting in improved performance of an audio signal decoder.
Abstract:
A method and an apparatus for allocating bits of an audio signal. The method includes dividing a frequency band of an audio signal into multiple sub-bands, and quantizing a sub-band normalization factor of each sub-band; classifying the multiple sub-bands into multiple groups, and acquiring a sum of intra-group sub-band normalization factors of each group; performing initial inter-group bit allocation to determine the initial number of bits of each group; performing secondary inter-group bit allocation to allocate coding bits of the audio signal to at least one group; and allocating the bits of the audio signal to sub-bands in the group. The present disclosure can, by means of grouping, ensure relatively stable allocation in a previous frame and a next frame and reduce an impact of global allocation on local discontinuity in a case of low and medium bit rates.
Abstract:
The present invention disclose a speech/audio bitstream decoding method including: acquiring a speech/audio decoding parameter of a current speech/audio frame, where the foregoing current speech/audio frame is a redundant decoded frame or a speech/audio frame previous to the foregoing current speech/audio frame is a redundant decoded frame; performing post processing on the acquired speech/audio decoding parameter according to speech/audio parameters of X speech/audio frames, where the foregoing X speech/audio frames include M speech/audio frames previous to the foregoing current speech/audio frame and/or N speech/audio frames next to the foregoing current speech/audio frame; and recovering a speech/audio signal by using the post-processed speech/audio decoding parameter of the foregoing current speech/audio frame. The technical solutions of the present invention help improve quality of an output speech/audio signal.
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 method and an apparatus for predicting a high band excitation signal are disclosed. The method includes: acquiring, according to a received low band bitstream, a set of spectral frequency parameters that are arranged in an order of frequencies, calculating a spectral frequency parameter difference between every two spectral frequency parameters that have a same position interval; acquiring a minimum spectral frequency parameter difference from the calculated spectral frequency parameter differences; determining, according to a frequency bin that corresponds to the minimum spectral frequency parameter difference, a start frequency bin for predicting a high band excitation signal from a low band; and predicting the high band excitation signal from the low band according to the start frequency bin. By implementing embodiments of the present invention, a high band excitation signal can be better predicted, thereby improving performance of the high band excitation signal.
Abstract:
A method for predicting a bandwidth extension frequency band signal includes demultiplexing a received bitstream to obtain a frequency domain signal; determining whether a highest frequency bin, to which a bit is allocated, of the frequency domain signal is less than a preset start frequency bin of a bandwidth extension frequency band; predicting an excitation signal of the bandwidth extension frequency band according to the determination; and predicting the bandwidth extension frequency band signal according to the predicted excitation signal of the bandwidth extension frequency band and a frequency envelope of the bandwidth extension frequency band.
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 embodiment of the present invention provides a method for generating a downmixed signal, including: performing a time-frequency transform on a received left sound channel signal and a received right sound channel signal to obtain a frequency domain signal, and dividing the frequency domain signal into several frequency bands; calculating a sound channel energy ratio and a sound channel phase difference of each frequency band; calculating a phase difference between the downmixed signal and a first sound channel signal in each frequency band according to the sound channel energy ratio and the sound channel phase difference; and calculating a frequency domain downmixed signal according to the left sound channel signal, the right sound channel signal, and the phase difference between the downmixed signal and the first sound channel signal in each frequency band. This method effectively improves quality of stereo encoding and decoding.