The present invention relates to an apparatus for integrally encoding and decoding a speech signal and a audio signal, and more particularly, to a method and apparatus that may include an encoding module and a decoding module, operating in a different structure with respect to a speech signal and a audio signal, and effectively select an internal module according to a characteristic of an input signal to thereby effectively encode the speech signal and the audio signal.
Speech signals and audio signals have different characteristics. Therefore, speech codecs for speech signal and audio codecs for audio signals have been independently researched using unique characteristics of the speech signals and the audio signals. A current widely used speech codec, for example, an Adaptive Multi-Rate Wideband Plus (AMR-WB+) codec has a Code Excitation Linear Prediction (CELP) structure, and may extract and quantize a speech parameter based on a Linear Predictive Coder (LPC) according to a speech model of a speech. A widely used audio codec, for example, a High-Efficiency Advanced Coding version 2 (HE-AAC V2) codec may optimally quantize a frequency coefficient in a psychological acoustic aspect by considering acoustic characteristics of human beings in a frequency domain.
Accordingly, there is a need for a codec that may integrate a audio signal encoder and a speech signal encoder, and may also select an appropriate encoding scheme according to a signal characteristic and a bitrate to thereby more effectively perform encoding and decoding.
An aspect of the present invention provides an apparatus and method for integrally encoding and decoding a speech signal and a audio signal that may effectively select an internal module according to a characteristic of an input signal to thereby provide an excellent sound quality with respect to a speech signal and a audio signal at various bitrates.
Another aspect of the present invention also provides an apparatus and method for integrally encoding and decoding a speech signal and a audio signal that may expand a frequency band prior to a converting a sampling rate to thereby expand the frequency band to a wider band.
According to an aspect of the present invention, there is provided an encoding apparatus for integrally encoding a speech signal and a audio signal, the encoding apparatus including: an input signal analyzer to analyze a characteristic of an input signal; a stereo encoder to down mix the input signal to a mono signal when the input signal is a stereo signal, and to extract stereo sound image information from the input signal; a frequency band expander to expand a frequency band of the input signal; a sampling rate converter to convert a sampling rate with respect to an output signal of the frequency band expander; a speech signal encoder to encode the input signal using a speech encoding module when the input signal is a speech characteristics signal; a audio signal encoder to encode the input signal using a audio encoding module when the input signal is a audio characteristic signal; and a bitstream generator to generate a bitstream using an output signal of the speech signal encoder and an output signal of the audio signal encoder.
In this instance, the input signal analyzer may analyze the input signal using at least one of a Zero Crossing Rate (ZCR) of the input signal, a correlation, and energy of a frame unit.
Also, the stereo sound image information may include at least one of a correlation between a left channel and a right channel, and a level difference between the left channel and the right channel.
Also, the frequency band expander may expand the input signal to a high frequency band signal prior to converting of the sampling rate.
Also, the sampling rate converter may convert the sampling rate of the input signal to a sampling rate required by the speech signal encoder or the audio signal encoder.
Also, the sampling rate converter may include: a first down sampler to down sample the input signal by ½; and a second down sampler to down sample an output signal of the first down sampler by ½.
Also, when the input signal is changed between the speech characteristic signal and the audio characteristic signal, the bitstream generator may store, in the bitstream, information associated with compensating for a change of a frame unit. Also, information associated with compensating for the change of the frame unit may include at least one of a time/frequency conversion scheme and a time/frequency conversion size.
According to another aspect of the present invention, there is provided a decoding apparatus for integrally decoding a speech signal and a audio signal, the decoding apparatus including: a bitstream analyzer to analyze an input bitstream signal; a speech signal decoder to decode the bitstream signal using a speech decoding module when the bitstream signal is associated with a speech characteristic signal; a audio signal decoder to decode the bitstream signal using a audio decoding module when the bitstream signal is associated with a audio characteristic signal; a signal compensation unit to compensate for the input bitstream signal when the conversion is performed between the speech characteristic signal and the audio characteristic signal; a sampling rate converter to convert a sampling rate of the bitstream signal; a frequency band expander to generate a high frequency band signal using a decoded low frequency band signal; and a stereo decoder to generate a stereo signal using a stereo expansion parameter.
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The embodiments are described below in order to explain the present invention by referring to the figures.
Referring to
The input signal analyzer 110 may analyze a characteristic of an input signal. Specifically, the input signal analyzer 110 may analyze the characteristic of the input signal to separate the input signal into a speech characteristic signal or a audio characteristic signal. In this instance, the input signal analyzer 110 may analyze the input signal using at least one of a Zero Crossing Rate (ZCR) of the input signal, a correlation, and energy of a frame unit.
The stereo encoder 120 may down mix the input signal to a mono signal, and extract stereo sound image information from the input signal. The stereo sound image information may include at least one of a correlation between a left channel and a right channel, and a level difference between the left channel and the right channel.
The frequency band expander 130 may expand a frequency band of the input signal. The frequency band expander 130 may expand the input signal to a high frequency band signal prior to converting the sampling rate. Hereinafter, an operation of the frequency band expander 130 will be further described in detail with reference to
Referring to the table 300, when a mono down-mixed signal is a audio characteristic signal, the frequency band expander 130 may extract information to generate a high frequency band signal according to a bitrate. For example, when a sampling rate of an input audio signal is 48 kHz, a start frequency band of a speech characteristic signal may be fixed to 6 kHz and the same value as a stop frequency band of the audio characteristic signal may be used for a stop frequency band of the speech characteristic signal. Here, the start frequency band of the speech characteristic signal may have various values according to a setting of an encoding module that is used in a speech characteristic signal encoding module. Also, the stop frequency band used in the frequency band expander may be set to various values according to a sampling rate of an input signal or a set bitrate. The frequency band expander 130 may use information such as a tonality, an energy value of a block unit, and the like. Also, information associated with a frequency band expansion varies depending on whether the characteristic signal is for speech or audio. When a conversion is performed between the speech characteristic signal and the audio characteristic signal, information associated with the frequency band expansion may be stored in a bitstream.
Referring again to
Hereinafter, the sampling rate converter 140 may be further described in detail with reference to
Referring to
The first down sampler 210 may down sample the input signal by ½. For example, when the audio encoding module is an Advanced Audio Coding (AAC)-based encoding module, the first down sampler 210 may perform ½ down sampling.
The second down sampler 220 may down sample an output signal of the first down sampler 210 by ½. For example, when the speech encoding module is an Adaptive Multi-Rate Wideband Plus (AMR-WB+)-based encoding module, the second down sampler 220 may perform ½ down sampling for the output signal of the first down sampler 210.
Accordingly, when the audio signal encoder 160 uses the AAC-based encoding module, the sampling rate converter 140 may generate a ½ down-sampled signal. When the speech signal encoder 150 uses the AMR-WB+-based encoding module, the sampling rate converter 140 may perform ¼ down sampling. Accordingly, the sampling rate converter 140 may be provided before the speech signal encoder 150 and the audio signal encoder 160. Through this, when a sampling rate processed by the speech signal encoding module is different from a sampling rate processed by the audio signal encoding module, the sampling rate may be initially processed by the sampling rate converter 140 and subsequently be input into the speech signal encoding module or the audio signal encoding module.
Also, the sampling rate converter 140 may convert the sampling rate of the input signal to a sampling rate required by the speech signal encoder 150 or the audio signal encoder 160.
Referring again to
When the input signal is a audio characteristic signal, the audio signal encoder 160 may encode the input signal using a audio encoding module. When the input signal is the audio characteristic signal, the audio characteristic signal encoding module may perform encoding for the core band where the frequency band expansion is not performed.
The audio signal encoder 160 may use a time/frequency-based audio encoding module.
The bitstream generator 170 may generate a bitstream using an output signal of the speech signal encoder 150 and an output signal of the audio signal encoder 160. When the input signal is changed between the speech characteristic signal and the audio characteristic signal, the bitstream generator 170 may store, in the bitstream, information associated with compensating for a change of a frame unit. Information associated with compensating for the change of the frame unit may include at least one of a time/frequency conversion scheme and a time/frequency conversion size. Also, a decoder may perform a conversion between a frame of the speech characteristic signal and a frame of the audio characteristic signal using information associated with compensating for the change of the frame unit.
Hereinafter, an operation of the encoding apparatus 100 for integrally encoding the speech signal and the audio signal according to a target bitrate will be described in detail with reference to
Referring to the table 400, when an input signal is a mono signal, all the stereo encoding modules may be set to be off. When a bitrate is set at 12 kbps or 16 kbps, a audio characteristic signal encoding module may be set to be off. The reason of setting the audio characteristic signal encoding module to be off is because encoding a audio characteristic signal using a CELP-based audio encoding module shows an enhanced sound quality in comparison to encoding the audio characteristic signal using a audio encoding module. Accordingly, when the bitrate is set at 12 kbps or 16 kbps, the input mono signal may be encoded using only a speech signal encoding module and a frequency band expansion module after setting the audio encoding module, the stereo encoding module, and an input signal analysis module to be off.
When the bitrate is set at 20 kbps, 24 kbps, or 32 kbps, the speech signal encoding module and a audio signal encoding module may be alternatively adopted depending on whether the input signal is a speech characteristic signal or a audio characteristic signal. Specifically, when the input signal is the speech characteristic signal as an analysis result of the input signal analysis module, the input signal may be encoded using the speech encoding module. When the input signal is the audio characteristic signal, the input signal may be encoded using the audio encoding module.
When the bitrate is set at 64 kbps, a sufficient amount of bits may be available and thus a performance of the audio encoding module based on the time/frequency conversion may be enhanced. Accordingly, when the bitrate is set at 64 kbps, the input signal may be encoded using both the audio encoding module and the frequency band expansion module after setting the speech encoding module and the input signal analysis module to be off.
When the input signal is a stereo signal, a stereo encoding module may be operated. When encoding the input signal at the bitrate of 12 kbps, 16 kbps, or 20 kbps, the input signal may be encoded using the stereo encoding module, the frequency band expansion module, and the speech encoding module after setting the audio encoding module and the input signal analysis module to be off. The stereo encoding module may generally use a bitrate less than 4 kbps. Therefore, when encoding the stereo input signal at 20 kbps, there is a need to encode a mono signal that is down mixed to 16 kbps. In this band, the speech encoding module shows a further enhanced performance than the audio encoding module. Therefore, encoding may be performed for all the input signals using the speech encoding module after setting the input signal analysis module to be off.
When encoding the input stereo signal at the bitrate of 24 kbps or 32 kbps, the speech characteristic signal may be encoded using the speech encoding module and the audio characteristic signal may be encoded using the audio encoding module depending on the analysis result of the input signal analysis module.
When encoding the stereo signal at the bitrate of 64 kbps, large amounts of bits may be available and thus the input signal may be encoded using only the audio characteristic signal encoding module.
For example, when constructing the encoding apparatus 100 using an AMR-WB+-based speech encoder and a High-Efficiency Advanced Coding version 2 (HE-AAC V2)-based audio encoder, the performance of a stereo module and a frequency band expansion module using AMR-WB+ may not be excellent and thus processing of the stereo signal and the frequency band expansion may be performed using a Parametric Stereo (PS) module and a Spectral Band Replication (SBR) module using HE-AAC V2.
Since the performance of CELP-based AMR-WB+ is excellent with respect to a mono signal of 12 kbps or 16 kbps, encoding of the core band may be performed utilizing an Algebraic Code Excited Linear Prediction (ACELP)/Transform Coded Excitation (TCX) module using AMR-WB+. The SBR module using HE-ACC V2 may be utilized for the frequency band expansion.
When the input signal is the speech characteristic signal as an analysis result of the input signal at 20 kbps, 24 kbps, or 32 kbps, the core band may be encoded utilizing an ACEP module and a TCX module using AMR-WB+. When the input signal is the audio characteristic signal, the core band may be encoded utilizing the AAC mode using HE-AAC V2 and the frequency band expansion may be performed utilizing the SBR using HE-AAC V2.
When the bitrate is set at 64 kbps, the core band may be encoded utilizing only the AAC module using HE-AAC V2.
Stereo encoding may be performed for a stereo input utilizing the PS module using HE-AAC V2. Also, the core band may be encoded by selectively utilizing the ACELP module and the TCX module using ARM-WB+ and the ACC module using HE-AAC V2 according to a mode.
As described above, an excellent sound quality may be provided with respect to a speech signal and a audio signal at various bitrates by effectively selecting an internal module based on a characteristic of an input signal. Also, a frequency band may be further expanded to a wider band by expanding the frequency band prior to converting a sampling rate.
Referring to
The bitstream analyzer 510 may analyze an input bitstream signal.
When the bitstream signal is associated with a speech characteristic signal, the speech signal decoder 520 may decode the bitstream signal using a speech decoding module.
When the bitstream signal is associated with a audio characteristic signal, the audio signal decoder 530 may decode the bitstream signal using a audio decoding module.
When a conversion is performed between the speech characteristic signal and the audio characteristic signal, the signal compensation unit 540 may compensate for the input bitstream signal. Specifically, when the conversion is performed between the speech characteristic signal and the audio characteristic signal, the signal compensation unit 540 may smoothly process the conversion using conversion information based on each characteristic.
The sampling rate converter 550 may convert a sampling rate of the bitstream signal. Therefore, the sampling rate converter 550 may convert, to an original sampling rate, a sampling rate that is used in a core band to thereby generate a signal to use in a frequency band expansion module or a stereo encoding module. Specifically, the sampling rate converter 550 may generate the signal to use in the frequency band expansion module or the stereo encoding module by re-converting the sampling rate that is used in the core band, to a previous sampling rate.
The frequency band expander 560 may generate a high frequency band signal using a decoded low frequency band signal.
The stereo decoder 570 may generate a stereo signal using a stereo expansion parameter.
Although a few embodiments of the present invention have been shown and described, the present invention is not limited to the described embodiments. Instead, it would be appreciated by those skilled in the art that changes may be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
10-2008-0068369 | Jul 2008 | KR | national |
10-2008-0134297 | Dec 2008 | KR | national |
10-2009-0061608 | Jul 2009 | KR | national |
This application is a continuation of U.S. patent application Ser. No. 16/925,946 filed Jul. 10, 2020, which is a continuation of U.S. patent application Ser. No. 16/557,238 filed Aug. 30, 2019, which is a continuation of U.S. patent application Ser. No. 15/810,732 filed Nov. 13, 2017, which is a continuation of U.S. patent application Ser. No. 14/534,781 filed Nov. 6, 2014, now U.S. Pat. No. 9,818,411, which is a continuation of U.S. patent application Ser. No. 13/003,979 filed Jan. 13, 2011, now U.S. Pat. No. 8,903,720, which claims the benefit under 35 U.S.C. Section 371, of PCT International Application No. PCT/KR2009/003855, filed Jul. 14, 2009, which claimed priority to Korean Application No. 10-2008-0068369, filed Jul. 14, 2008, Korean Application No. 10-2008-0134297, filed Dec. 26, 2008, and Korean Application No. 10-2009-0061608, filed Jul. 7, 2009, in the Korean Patent Office, the disclosures of which are hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 16925946 | Jul 2020 | US |
Child | 18212364 | US | |
Parent | 16557238 | Aug 2019 | US |
Child | 16925946 | US | |
Parent | 15810732 | Nov 2017 | US |
Child | 16557238 | US | |
Parent | 14534781 | Nov 2014 | US |
Child | 15810732 | US | |
Parent | 13003979 | Jan 2011 | US |
Child | 14534781 | US |