摘要:
A stereo encoding method, a stereo encoding device, and an encoder are provided. The stereo encoding method includes: obtaining a left channel energy relation coefficient and a right channel energy relation coefficient; obtaining a left energy sum and a right energy sum respectively; performing cross correlation between sub-bands of a first monophonic signal at a wave trough and sub-bands of the left channel signal according to the left channel energy relation coefficient, and performing cross correlation between sub-bands of the first monophonic signal at the wave trough and sub-bands of the right channel signal according to the right channel energy relation coefficient; obtaining a scaling factor by using the left energy sum, the right energy sum, and cross correlation results; and encoding the stereo left and right channel signals according to the scaling factor.
摘要:
A stereo encoding method and apparatus are provided, so as to reduce distortion caused by delay adjustment. The stereo encoding method includes: extracting a current interchannel delay of a stereo signal and a previous delay adjacent to the current interchannel delay; performing adjustment frame judgment according to characteristics of the current stereo signal when the current delay and the previous delay are different; and performing delay adjustment on the stereo signal by using the current interchannel delay if it is judged that a frame where the current delay occurs is an adjustment frame.
摘要:
A method and an apparatus for switching speech or audio signals, wherein the method for switching speech or audio signals includes when switching of a speech or audio, weighting a first high frequency band signal of a current frame of speech or audio signal and a second high frequency band signal of the previous M frame of speech or audio signals to obtain a processed first high frequency band signal, where M is greater than or equal to 1, and synthesizing the processed first high frequency band signal and a first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal. In this way, speech or audio signals with different bandwidths can be smoothly switched, thus improving the quality of audio signals received by a user.
摘要:
A method and an apparatus for switching speech or audio signals, wherein the method for switching speech or audio signals includes when switching of a speech or audio, weighting a first high frequency band signal of a current frame of speech or audio signal and a second high frequency band signal of the previous M frame of speech or audio signals to obtain a processed first high frequency band signal, where M is greater than or equal to 1, and synthesizing the processed first high frequency band signal and a first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal. In this way, speech or audio signals with different bandwidths can be smoothly switched, thus improving the quality of audio signals received by a user.
摘要:
A signal delay detection method, a detection apparatus, and a coder are disclosed to improve accuracy of detecting the signal delay. The method includes: obtaining a first cumulative cross-correlation function according to cross-correlation functions between channel signals; determining a first delay between the channel signals corresponding to the first cumulative cross-correlation function; adjusting a second cumulative cross-correlation function according to a relationship between the first delay and a second delay that exist between the channel signals, where the second delay is obtained at time of adjusting the second cumulative cross-correlation function and an initial value of the second delay is determined according to an initial value of a second weighting coefficient of the second cumulative cross-correlation function; and determining the second delay corresponding to the adjusted second cumulative cross-correlation function as a delay detected between the channel signals.
摘要:
A stereo encoding method, a stereo encoding device, and an encoder are provided. The stereo encoding method includes: obtaining a left channel energy relation coefficient and a right channel energy relation coefficient; obtaining a left energy sum and a right energy sum respectively; performing cross correlation between sub-bands of a first monophonic signal at a wave trough and sub-bands of the left channel signal according to the left channel energy relation coefficient, and performing cross correlation between sub-bands of the first monophonic signal at the wave trough and sub-bands of the right channel signal according to the right channel energy relation coefficient; obtaining a scaling factor by using the left energy sum, the right energy sum, and cross correlation results; and encoding the stereo left and right channel signals according to the scaling factor.
摘要:
A stereo encoding method and apparatus are provided, so as to reduce distortion caused by delay adjustment. The stereo encoding method includes: extracting a current interchannel delay of a stereo signal and a previous delay adjacent to the current interchannel delay; performing adjustment frame judgment according to characteristics of the current stereo signal when the current delay and the previous delay are different; and performing delay adjustment on the stereo signal by using the current interchannel delay if it is judged that a frame where the current delay occurs is an adjustment frame.
摘要:
A method for estimating inter-channel delay and an apparatus for estimating inter-channel delay and an encoder are provided by the embodiments of the present invention. The method includes: obtaining signal sound field information from a cross-correlation function and a cumulative cross-correlation function of synthetic signals of left and right sound channels respectively; obtaining adjustment information of the cumulative cross-correlation function according to the sound field information that is respectively obtained; adjusting the cumulative cross-correlation function by using the adjustment information, so as to obtain the adjusted cumulative cross-correlation function; and determining a time corresponding to a maximum value in the adjusted cumulative cross-correlation function as an inter-channel delay. Therefore, the delay between the signals of the left and right sound channels can be estimated correctly, so as to improve the stability of the synthetic stereo sound field.
摘要:
A method for estimating inter-channel delay and an apparatus for estimating inter-channel delay and an encoder are provided by the embodiments of the present invention. The method includes: obtaining signal sound field information from a cross-correlation function and a cumulative cross-correlation function of synthetic signals of left and right sound channels respectively; obtaining adjustment information of the cumulative cross-correlation function according to the sound field information that is respectively obtained; adjusting the cumulative cross-correlation function by using the adjustment information, so as to obtain the adjusted cumulative cross-correlation function; and determining a time corresponding to a maximum value in the adjusted cumulative cross-correlation function as an inter-channel delay. Therefore, the delay between the signals of the left and right sound channels can be estimated correctly, so as to improve the stability of the synthetic stereo sound field.
摘要:
A method and an apparatus for switching speech or audio signals, wherein the method for switching speech or audio signals includes when switching of a speech or audio, weighting a first high frequency band signal of a current frame of speech or audio signal and a second high frequency band signal of the previous M frame of speech or audio signals to obtain a processed first high frequency band signal, where M is greater than or equal to 1, and synthesizing the processed first high frequency band signal and a first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal. In this way, speech or audio signals with different bandwidths can be smoothly switched, thus improving the quality of audio signals received by a user.