The present invention relates to audio signal processing, and particularly to audio signal encoding and decoding processing for audio signal bandwidth extension.
In communications, to utilize the network resources more efficiently, audio codecs are adopted to compress audio signals at low bitrates with an acceptable range of subjective quality. Accordingly, there is a need to increase the compression efficiency to overcome the bitrate constraints when encoding an audio signal.
Bandwidth extension (BWE) is a widely used technique in encoding an audio signal to efficiently compress wideband (WB) or super-wideband (SWB) audio signals at a low bitrate. In encoding, BWE parametrically represents a high frequency band signal utilizing the decoded low frequency band signal. That is, BWE searches for and identifies a portion similar to a subband of the high frequency band signal from the low frequency band signal of the audio signal, and encodes parameters which identify the similar portion and transmit the parameters, while BWE enables high frequency band signal to be resynthesized utilizing the low frequency band signal at a signal-receiving side. It is possible to reduce the amount of parameter information to be transmitted, by utilizing a similar portion of the low frequency band signal, instead of directly encoding the high frequency band signal, thus increasing the compression efficiency.
One of the audio/speech codecs which utilize BWE functionality is G.718-SWB, whose target applications are VoIP devices, video-conference equipments, teleconference equipments and mobile phones.
The configuration of G.718-SWB [1] is illustrated in
At an encoding apparatus side illustrated in
The generic mode is used when the input frame signal is not considered to be tonal. In the generic mode, the MDCT coefficients (spectrum) of the WB signal encoded by a G.718 core encoding section are utilized lo encode the SWB MDCT coefficients (spectrum). The SWB frequency band (7 to 14 kHz) is split into several subbands, and the most correlated portion is searched for every subband from the encoded and normalized WB MDCT coefficients. Then, a gain of the most correlated portion is calculated in terms of scale such that the amplitude level of SWB subband is reproduced to obtain parametric representation of the high frequency component of SWB signal.
The sinusoidal mode encoding is used in frames that are classified as tonal. In the sinusoidal mode, the SWB signal is generated by adding a finite set of sinusoidal components to the SWB spectrum.
At a decoding apparatus side illustrated in
NPL 1: ITU-T Recommendation G.71B Amendment 2, New Annex B on super wideband scalable extension for ITU-T G.718 and corrections to main body fixed-point C-code and description text, March 2010.
As it can be seen in G.718-SWB configuration, the input signal SWB bandwidth extension is performed by either sinusoidal mode or generic mode.
For generic encoding mechanism, for example, high frequency components are generated (obtained) by searching for the most correlated portion from the WB spectrum. This type of approach usually suffers from performance problems especially for signals with harmonics. This approach doesn't maintain the harmonic relationship between the low frequency band harmonic components (tonal components) and the replicated high frequency band tonal components at all, which becomes the cause of ambiguous spectra that degrade the auditory quality.
Therefore, in order to suppress the perceived noise (or artifacts), which is generated due to ambiguous spectra or due to disturbance in the replicated high frequency band signal spectrum (high frequency spectrum), it is desirable to maintain the harmonic relationship between the low frequency band signal spectrum (low frequency spectrum) and the high frequency spectrum.
In order to solve this problem, G.718-SWB configuration is equipped with the sinusoidal mode. The sinusoidal mode encodes important tonal components using a sinusoidal wave, and thus it can maintain the harmonic structure well. However, the resultant sound quality is not good enough only by simply encoding the SWB component with artificial tonal signals.
An object of the present invention is to improve the performance of encoding a signal with harmonics, which causes the performance problems in the above-described generic mode, and to provide an efficient method for maintaining the harmonic structure of the tonal component between the low frequency spectrum and the replicated high frequency spectrum, while maintaining the fine structure of the spectra. Firstly, a relationship between the low frequency spectrum tonal component and the high frequency spectrum tonal component is obtained by estimating a harmonic frequency value from the WB spectrum. Then, the low frequency spectrum encoded at the encoding apparatus side is decoded, and, according to index information, a portion which is the most correlated with a subband of the high frequency spectrum is copied into the high frequency band with being adjusted in. energy levels, thereby replicating the high frequency spectrum. The frequency of the tonal component in the replicated high frequency spectrum is identified or adjusted based on an estimated harmonic frequency value.
The harmonic relationship between, the low frequency spectrum tonal components and the replicated high frequency spectrum tonal components can be maintained only when the estimation of a harmonic frequency is accurate. Therefore, in order to improve the accuracy of the estimation, the correction of spectral peaks constituting the tonal components is performed before estimating the harmonic frequency.
According to the present invention, it is possible to accurately replicate the tonal component in the high frequency spectrum, reconstructed by bandwidth extension for an input signal with harmonic structure, and to efficiently obtain good sound quality at low bitrate.
The main principle of the present invention is described in this section using
The configuration of a codec according to the present invention is illustrated in
At an encoding apparatus side illustrated in
Finally, the multiplexing section (307) integrates the core, encoding parameters, the index information and the scale factor information into a bitstream.
In a decoding apparatus illustrated in
A core decoding section reconstructs synthesized low frequency signals using the core encoding parameters (402). The synthesized low frequency signal is up-sampled (403), and used for bandwidth extension (410).
This bandwidth extension is performed as follows. That is, the synthesized low frequency signal is energy-normalized (404), and a low frequency signal identified according to the index information that identifies a. portion which is the most correlated with each subband of the high frequency signal of the input signal derived at the encoding apparatus side is copied into the high frequency band (405), and the energy level is adjusted according to the scale factor information to achieve the same level of the energy level of the high frequency signal of the input signal (406).
Further, a harmonic frequency is estimated from the synthesized low frequency spectrum (407). The estimated harmonic frequency is used to adjust the frequency of the tonal component in the high frequency signal spectrum (408).
The reconstructed high frequency signal is transformed from a frequency domain to a time domain (409), and is added to the up-sampled synthesized low frequency signal to generate an output signal in the time domain.
The detail processing of a harmonic frequency estimation scheme will be described as follows:
searched.
The spectrum illustrated in
Based on the synthesized low frequency signal spectrum, spectral peaks and spectral peak frequencies are calculated. However, a spectral peak with a small amplitude and extremely short spacing of a spectral peak frequency with respect to an adjacent spectral peak is discarded, which avoids estimation errors in calculating a harmonic frequency value.
where
EstHarmonic is the calculated harmonic frequency;
Spacingpeak is the frequency spacing between the detected peak positions:
N is the number of the detected peak positions;
Pospeak is the position of the detected peak;
The harmonic frequency estimation is also performed according to a method described as follows:
There is a case where the harmonic component in the synthesized low frequency signal spectrum is not well encoded, at a very low bitrate. In this case, there is a possibility that some of the spectral peaks identified may not correspond to the harmonic components of the input signals at all. Therefore, in the calculation of the harmonic frequency, the spacing between spectral peak frequencies which are largely different from the average value should be excluded from the calculation target.
Also, there is a. case where not all the harmonic components can be encoded (meaning that some of the harmonic components are missing in the synthesized low frequency signal spectrum) due to the relatively low amplitude of the spectral peak, the bitrate constraints for encoding, or the like. In these cases, the spacing between the spectral peak frequencies extracted at the missing harmonic portion is considered to be twice or a few times the spacing between the spectral peak frequencies extracted at the portion which retains good harmonic structure. In this case, the average value of the extracted values of the spacing between the spectral peak ftequenci.es where the values are included in the predetermined range including the maximum spacing between the spectral peak frequencies is defined as an estimated harmonic frequency value. Thus, it becomes possible to properly replicate the high frequency spectrum. The specific procedure comprises the following steps:
1) The minimum and maximum values of the spacing between the spectral peak frequencies are identified;
[2]
Spacingpeak(n)=Pospeak(n+1)−Pospeak(n), n∈[1,N−1]
Spacingmin=({Spacingpeak(n)});
Spacingmax=max({Spacingpeak(n)}); (Equation 2)
where;
Spacingpeak is the frequency spacing between the detected peak positions;
Spacingmin is the minimum frequency spacing between the detected peak, positions;
Spacingmax is the maximum frequency spacing between the detected peak positions;
N is the number of the detected peak positions;
Pospeak is the position of the detected peak;
2) Every spacing between spectral peak frequencies is identified in the range of:
[3]
[k*Spacingmin, Spacingmax],k ∈[1,2]
3) The average value of the identified spacing values between the spectral peak frequencies in the above range is defined as the estimated harmonic frequency value,
Next, one example of harmonic frequency adjustment schemes will be described below.
1) The last encoded spectral peak and its spectral peak frequency are identified in the synthesized low frequency signal (LF) spectrum.
2) The spectral peak and the spectral, peak frequency are identified within the high frequency spectrum replicated by bandwidth extension.
3) Using the highest spectral peak frequency as a reference, among spectral peaks of the synthesized tow frequency signal spectrum, the spectral peak frequencies are adjusted so that the values of the spacing between, the spectral peak frequencies are equal to the estimated value of the spacing between the harmonic frequencies. This processing is illustrated in
Harmonic frequency adjustment schemes as described below are also possible.
Thereafter, the spectral peak extracted in the replicated high frequency spectrum is shifted to frequency which is the closest to the spectral peak frequency, among the possible spectral peak frequencies calculated as described above.
There is also a case where the estimated harmonic value EstHarmonic does not correspond to ars integer frequency bin. In this case, the spectral peak frequency is selected to be a frequency bin which is the closest to the frequency derived based on EstHarmonic.
There also may be a method of estimating a harmonic frequency in which the previous frame spectrum is utilized to estimate the harmonic frequency, and a method of adjusting the frequencis of tonal components in which the previous frame spectrum is takers into consideration so that the transition between frames is smooth when adjusting the tonal component. It is also possible to adjust the amplitude such that, even when the frequencies of the tonal components are shifted, the energy level of the original spectrum is maintained. All such minor variations are within the scope of the present invention.
The above descriptions ate ail given as examples, and the ideas of the present invention are not limited by the given examples. Those skilled in the art. will be able to modify and adapt the present invention without deviating from the spirit of the invention.
[Effect]
The bandwidth extension method according to the present invention replicates the high frequency spectrum utilizing the synthesized low frequency signal spectrum which is the most correlated with the high frequency spectrum, and shifts the spectral peaks to the estimated harmonic frequencies. Thus, it becomes possible to maintain both the fine structure of the spectrum and the harmonic structure between the low frequency band spectral peaks and the replicated high frequency band spectral peaks.
Embodiment 2 of the present invention is illustrated in
The encoding apparatus according to Embodiment 2 is substantially the same as that of Embodiment 1, except harmonic frequency estimation sections (708 and 709) and a harmonic frequency comparison section (710).
The harmonic frequency is estimated separately from synthesized low frequency spectrum (708) and high frequency spectrum (709) of the input signal, and flag information is transmitted based on the comparison result between the estimated values of those (710). As one of the examples, the flag information can be derived as in the following equation:
[4]
if
EstHarmonic_LF∈[EstHarmonic_HF−Threshold,EstHarmonic_HF+Threshold]
Flag−1
Otherwise
Flag=0 (Equation 3)
where
Flag is the flag signal to Indicate whether the harmonic adjustment should be applied;
That is, the harmonic frequency estimated from the synthesized low frequency signal spectrum (synthesized low frequency spectrum) EstHarmonic_HF is compared with the harmonic frequency estimated from the high frequency spectrum of the input signal EstHarmonic_HF. When the difference between the two values is small enough, it is considered that the estimation from the synthesized low frequency spectrum is accurate enough, and a flag (Flag−1) meaning that it may be used for harmonic frequency adjustment is set. On the other hand, when the difference between the two values is not small, it is considered that the estimated value from the synthesized low frequency spectrum is not accurate, and a flag (Flag=0) meaning that it should not be used for harmonic frequency adjustment is set.
At decoding apparatus side illustrated in
[Effect]
For several input signals, there is a ease where the harmonic frequency estimated from the synthesized low frequency spectrum is different from the harmonic frequency of the high frequency spectrum of the input signal. Especially at low bitrate, the harmonic structure of the low frequency spectrum is not well maintained. By sending the flag information, it becomes possible to avoid the adjustment of the tonal component using a wrongly estimated value of the harmonic frequency.
Embodiment 3 of the present invention is illustrated in
The encoding apparatus according io Embodiment 3 is substantially the same as that of Embodiment 2, except differential device (910).
The harmonic frequency is estimated separately from the synthesized low frequency spectrum (908) and high frequency spectrum (909) of the input signal. The difference between the two estimated harmonic frequencies (Diff) is calculated (910), and transmitted to the decoding apparatus side.
At decoding apparatus side illustrated in
Instead of the difference value, the harmonic frequency estimated from the high frequency spectrum of the input signal may aiso be directly transmitted to the decoding section. Then, the received harmonic frequency value of the high frequency spectrum of the input signal is used to perform the harmonic frequency adjustment. Thus, it becomes unnecessary to estimate the harmonic frequency from the synthesized low frequency spectrum at the decoding apparatus side.
[Effect]
There is a case where, for several signals, the harmonic frequency estimated from the synthesized low frequency spectrum is different from the harmonic frequency of the high frequency spectrum of the input signal. Therefore, by sending the difference value, or the harmonic frequency value derived from the high frequency spectrum of the input signal, it becomes possible to adjust the tonal, component of the high frequency spectrum replicated through bandwidth extension by the decoding apparatus at the receiving side more accurately.
Embodiment 4 of the present invention is illustrated in
The encoding apparatus according to Embodiment 4 is the same as any other conventional encoding apparatuses, or is the same as the encoding apparatus in Embodiment 1, 2 or 3.
At decoding apparatus side illustrated in
Especially when the available bitrate is low, there is a case where some of the harmonic components of the low frequency spectrum are hardly encoded, or are not encoded at all. In this case, the estimated harmonic frequency value can be used to inject the missing harmonic components.
This will be illustrated in the
Another approach for injecting the missing harmonic component will be described as follows:
[5]
Spacingpeak(n)=Pospeak(n+1)−Pospeak(n), n∈[1,N−1]
Spacingmin=min({Spacingpeak(n)});
Spacingmax=max({Spacingpeak(n)}); (Equation 4)
where;
Spacingpeak is the frequency spacing between the detected peak positions;
Spacingmin is the minimum frequency spacing between the detected peak positions;
Spacingmax is the maximum frequency spacing between the detected peak positions;
N is the number of the detected peak positions;
Pospeak is the position of the detected peak;
[6]
r1=[Spacingmin, k*Spacingmin)
r2=[k*Spacingmin,Spacingmax],1<k≤2
where
EstHarmonic
N1 is the number of the detected peak positions belonging to r1
N2 is the number of the detected peak positions belonging to r2
For example, assume that the selected LF spectrum is split into three regions r1, r2, and r3.
Based on the region information, the harmonics are identified and injected.
Due to the signal characteristics for harmonics, the spectral gap between harmonics is EstHarmonic
Similarly, EstHarmonic
Further, as for its amplitude, it is possible to use the average value of the amplitudes of all the harmonic components which are not missing or the average value of the amplitudes of the harmonic components preceding and following the missing harmonic component. Alternatively, as for the amplitude, a spectral peak with the minimum amplitude in the WB spectrum may be used. The harmonic component generated using the frequency and amplitude Is injected into the LF spectrum for restoring the missing harmonic component.
[Effect]
There is a case where the synthesized low frequency spectrum is not maintained for several signals. Especially at low bitrate, there is a possibility that several harmonic components may be missing. By injecting the missing harmonic components in the LF spectrum, it becomes possible not only to extend the LF, but also improve the harmonic characteristics of the reconstructed harmonics. This can suppress the auditory influence cue to missing harmonics to further improve the sound quality.
The disclosure of Japanese Patent. Application No. 2013-12,2985 filed on Jun. 11, 2013, including the specification, drawings and abstract, is incorporated herein by reference in its entirety.
The encoding apparatus, decoding apparatus and encoding and decoding methods according to the present invention are applicable to a wireless communication terminal apparatus, base station apparatus in a mobile communication system, tele-conference terminal apparatus, video conference terminal apparatus, and voice over internet protocol (VOIP) terminal apparatus.
Number | Date | Country | Kind |
---|---|---|---|
2013-122985 | Jun 2013 | JP | national |
This is a continuation application of pending U.S. patent application Ser. No. 15/286,030, filed Oct. 5, 2016, which is a continuation application of U.S. patent application Ser. No. 14/894,062, filed Nov. 25, 2015, now U.S. Pat. No. 9,489,959 issued Nov. 8, 2016, which is a U.S. National Stage of International Application No. PCT/JP2014/003103 filed Jun. 10, 2014, which claims the benefit of Japanese Application No. 2013-122985, filed Jun. 11, 2013, the contents of all of which are expressly incorporation by reference herein in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | 15659023 | Jul 2017 | US |
Child | 16219656 | US | |
Parent | 15286030 | Oct 2016 | US |
Child | 15659023 | US | |
Parent | 14894062 | Nov 2015 | US |
Child | 15286030 | US |