Abstract:
Present disclosure provide an audio signal encoding method and encoder, which relate to the communications field and can perform proper bit allocation for spectral coefficients of an audio signal. The method includes: splitting spectral coefficients of a current frame into subbands, acquiring quantized energy envelopes of the subbands;adjusting quantized energy envelopes values of some subbands; perform bit allocation according to adjusted quantized energy envelopes of the some subbands; quantizing a spectral coefficient of a subband to which at least one bit is allocated after the bit allocation.
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:
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:
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 band 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:
The present invention provides 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:
An audio coding method and apparatus, where the method includes, for each audio frame in audio, when a signal characteristic of the audio frame and a signal characteristic of a previous audio frame meet a preset modification condition, determining a first modification weight according to linear spectral frequency (LSF) differences of the audio frame and LSF differences of the previous audio frame, modifying a linear predictive parameter of the audio frame according to the determined first modification weight, and coding the audio frame according to a modified linear predictive parameter of the audio frame. According to the present disclosure, audio having a wider bandwidth can be coded while a bit rate remains unchanged or a bit rate slightly changes and a spectrum between audio frames is steadier.
Abstract:
Present disclosure provides a signal processing method and device. Spectral coefficients of a current frame of a frequency-domain audio signal are divided into N sub-bands. N is a positive integer greater than 1. According to an energy attribute and a spectral attribute of a first subset of the N sub-bands, whether to modify original envelope values of sub-bands in the first subset is determined. A frequency range of each of the M sub-bands in the first subset is lower than a frequency range of each of the K sub-bands. Based on a determination that the original envelope values of the M sub-bands need to be modified, the original envelope values of the M sub-bands are modified individually to obtain modified envelope values of the M sub-bands. Encoding bits are allocated to each of the N sub-bands according to the modified envelope values of the M sub-bands and original envelope values of the K sub-bands.
Abstract:
The present disclosure provide a signal processing method and apparatus. The method includes: determining a total quantity of to-be-allocated bits corresponding to a current frame; implementing primary bit allocation on to-be-processed sub-bands; performing a primary information unit quantity determining operation for each sub-band that has undergone the primary bit allocation; selecting sub-bands for secondary bit allocation from the to-be-processed sub-bands according to at least one of a sub-band characteristic of each sub-band of the to-be-processed sub-bands or the total quantity of surplus bits; implementing secondary bit allocation on the sub-bands for secondary bit allocation; and performing a secondary information unit quantity determining operation for each sub-band of the sub-bands for secondary bit allocation.
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 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 invention 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.