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:
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:
An audio encoding method and a related apparatus are disclosed. The audio coding method includes: performing a time-frequency transformation on a current frame of a time-domain audio signal, to obtain spectral coefficients of the current audio frame; obtaining one or more reference coding parameters of the current frame; and determining whether the reference coding parameters satisfy a set of parameter conditions. If any one of the parameter conditions is satisfied, the spectral coefficients of the current frame are encoded by using a transform coded excitation (TCX) algorithm. If none of the parameter conditions is satisfied, the spectral coefficients of the current audio frame are encoded using a high quality transform coding (HQ) algorithm. The audio encoding method and the related apparatus help improve encoding quality or encoding efficiency in audio signal encoding.
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:
Present disclosure provide an encoding method and apparatus, which relate to the communications field and can perform proper quantization bit allocation for spectral coefficients of an audio signal, thereby improving quality of a signal obtained by a decoder by means of decoding. The method includes: after splitting spectral coefficients of a current data frame into subbands, acquiring quantized frequency envelope values of the subbands; modifying quantized frequency envelope values of subbands of a first quantity in the subbands; allocating quantization bits to the subbands according to modified quantized frequency envelope values of the subbands of the first quantity; quantizing a spectral coefficient of a subband to which a quantization bit is allocated in the subbands; and writing the quantized spectral coefficient of the subband to which a quantization bit is allocated into a bitstream.
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:
The present invention provide a bandwidth extension method and apparatus. The method includes: acquiring a bandwidth extension parameter, where the bandwidth extension parameter includes one or more of the following parameters: a linear predictive coefficient (LPC), a line spectral frequency (LSF) parameter, a pitch period, a decoding rate, an adaptive codebook contribution, and an algebraic codebook contribution; and performing, according to the bandwidth extension parameter, bandwidth extension on a decoded low-frequency signal, to obtain a high frequency band signal. The high frequency band signal recovered by using the bandwidth extension method and apparatus in the embodiments of the present invention is close to an original high frequency band signal, and the quality is satisfactory.
Abstract:
A method and an apparatus for detecting correctness of a pitch period. The method for detecting correctness of a pitch period includes determining, according to an initial pitch period of an input signal in a time domain, a pitch frequency bin of the input signal, where the initial pitch period is obtained by performing open-loop detection on the input signal; determining, based on an amplitude spectrum of the input signal in a frequency domain, a pitch period correctness decision parameter, associated with the pitch frequency bin, of the input signal; and determining correctness of the initial pitch period according to the pitch period correctness decision parameter. The method and apparatus for detecting correctness of a pitch period according to the embodiments of the present invention can improve, based on a relatively less complex algorithm, accuracy of detecting correctness of a pitch period.
Abstract:
The present disclosure relates to coding and decoding technologies, and discloses a preprocessing method, a preprocessing apparatus, and a coding device. The preprocessing method includes: obtaining characteristic information of a current frame signal; identifying whether the current frame signal requires no coding operation of removing LTC according to the characteristic information of the current frame signal and preset information; and if identifying that the current frame signal requires no coding operation of removing LTC, performing the coding operation of removing STC for the current frame signal; and if identifying that the current frame signal requires the coding operation of removing LTC, performing the coding operations of removing both LTC and STC for the current frame signal. Through the technical solution provided herein, the coding operation of removing LTC is performed for only part of the input frame signals.
Abstract:
In an embodiment, a method of receiving a digital audio signal, using a processor, includes generating a high band time domain signal; generating low band time domain signal; estimating an energy ratio between the high band and the low band from a last good frame; keeping the energy ratio for following frame-erased frames by applying an energy correction scaling gain to a high band signal segment by segment in the time domain; and combining the low band signal and the high band signal into a final output.