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 method for encoding an audio signal includes obtaining an ITD value of a current frame of an audio signal; obtaining a characteristic parameter of the current frame, wherein the characteristic parameter comprises at least one of a signal-to-noise ratio of the current frame or a peak feature of cross-correlation coefficients of the current frame; determining, based on the characteristic parameter, whether to use the initial ITD value as the finalized ITD value of the current frame; and encoding the current frame based on the finalized ITD value of the current frame, wherein if the initial ITD value is determined as not used as the finalized ITD value of the current frame, the finalized ITD value of the current frame is the same as a finalized ITD value of a previous frame of the current frame.
Abstract:
A signal processing method and device includes obtaining spectral coefficients of a current frame of an audio signal, in which N sub-bands of the current frame comprises at least one of the spectral coefficients. A total energy of M successive sub-bands of the N sub-bands, a total energy of K successive sub-bands of the N sub-bands, and an energy of a first sub-band are obtained to determine whether to modify original envelope values of the M sub-bands. When the original envelope values of the M sub-bands are modified, encoding bits are allocated to each of the N sub-bands according to the modified envelope values of the M sub-bands.
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.
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:
An inter-channel phase difference (IPD) parameter extraction method includes obtaining a parameter for obtaining an information extraction manner for a current frame of a multi-channel signal; obtaining an IPD parameter extraction manner for the current frame based on the parameter for obtaining the information extraction manner, where the obtained IPD parameter extraction manner is one of at least two preset IPD parameter extraction manners; and obtaining an IPD parameter of the current frame based on the obtained IPD parameter extraction manner for the current frame.
Abstract:
A multi-channel signal encoding method includes determining a downmixed signal of a first channel signal and a second channel signal in a multi-channel signal, and reverberation gain parameters corresponding to different subbands of the first channel signal and the second channel signal, where the obtained reverberation gain parameters belong to at least two reverberation gain parameter groups. The method further includes selecting, from the at least two reverberation gain parameter groups, a target reverberation gain parameter group. The method further includes generating parameter indication information, where the parameter indication information indicates the target reverberation gain parameter group. The method further includes encoding reverberation gain parameters corresponding to the target reverberation gain parameter group, the parameter indication information, and the downmixed signal to obtain a bitstream.
Abstract:
A method for encoding an audio signal includes obtaining an ITD value of a current frame of an audio signal; obtaining a characteristic parameter of the current frame, wherein the characteristic parameter comprises at least one of a signal-to-noise ratio of the current frame or a peak feature of cross-correlation coefficients of the current frame; determining, based on the characteristic parameter, whether to use the initial ITD value as the finalized ITD value of the current frame; and encoding the current frame based on the finalized ITD value of the current frame, wherein if the initial ITD value is determined as not used as the finalized ITD value of the current frame, the finalized ITD value of the current frame is the same as a finalized ITD value of a previous frame of the current frame.
Abstract:
A signal processing method and device includes obtaining spectral coefficients of a current frame of an audio signal, in which N sub-bands of the current frame comprises at least one of the spectral coefficients. A total energy of M successive sub-bands of the N sub-bands, a total energy of K successive sub-bands of the N sub-bands, and an energy of a first sub-band are obtained to determine whether to modify original envelope values of the M sub-bands. When the original envelope values of the M sub-bands are modified, encoding bits are allocated to each of the N sub-bands according to the modified envelope values of the M sub-bands.