The present invention relates to a coding equipment which efficiently compresses and encodes a spectrum of an audio signal, and applies the compressed and encoded signal to generate an audio signal with a high audio quality.
The objective of audio coding is to compress and transmit a digitized audio signal as effectively as possible, and to apply decoding processing to the compressed signal at a decoder, so that it is possible to reproduce as a high quality audio signal as possible.
As one example of the conventional technology of the present invention, the SBR method is used.
where Xhigh(t,k) is a generated high-frequency subband signal, Xlow(t,k) is a low-frequency subband signal, t is a time sample position, k is a subband number, ai is a linear predictor coefficient calculated by linear prediction using Xlow(t,k), p(k) is a mapping function for determining a low-frequency subband signal corresponding to the k-th high-frequency subband signal, and Bj is a chirp factor corresponding to a chirp factor band bj set for the high-frequency subband signal Xhigh(t,k).
Technical details of the inverse filtering and a method of determining the mapping function p(k) are not included in the disclosure of the present invention, so that explanation for the technical details and the method are not described herein. Note that the chirp factor Bj is a value that is equal to or more than zero and equal to or less than 1, and effects of the tonal restraint become maximum when Bj=1 and minimum when Bj=0. Information of grouping the chirp factor bands and chirp factors for respective chirp factor bands are encoded, included in a bitstream, and then transmitted.
Subsequently, for the generated high-frequency subband signal, an envelope shape (roughly indicated signal energy distribution) is adjusted so that the generated high-frequency subband signal can have frequency characteristics similar to frequency characteristics of a high-frequency subband signal of original sound. One example of such a method of adjusting the envelope shape is a patent reference 2. A high-frequency subband signal indicated as two-dimensional time/frequency representation is divided first in the time direction into “time segments” and then in the frequency direction into “frequency bands”.
Furthermore, in addition to the envelope shape adjustment of the energy, a tone-to-noise ratio of the generated high-frequency subband signal is also an important factor for increasing expression of the generated signal and thereby realizing audio quality with higher fidelity to the input signal. When a noise component is lacking partially in the generated high-frequency subband signal, an artificial noise component is added in order to compensate the noise component lack. In the same manner, when a tonal component is lacking partially, an artificial tone component (sinewave) is added. The noise component is added at an area called a “noise band”, and the sine signal is added at an area called a “tone band”.
The following describes a method of calculating signal energy in each energy band, noise band (chirp factor band), and tone band. In the following description, B(t,k), E(t,k), Q(t,k), and H(t,k) refer to a chirp factor, an energy value, a ratio of noise component in a signal, a flag indicating necessity of tone signal addition, respectively, regarding a signal indicated by a time sample t and a frequency band k in the time/frequency representation of the high-frequency subband signal. As a rule of the notation, a signal point (sample) indicated by all (t,k) included in a certain energy band ei is E(t,k)=Ei, for example. For the chirp factor band bi, the noise band qi, and the tone band hi, the same mapping is performed for B(t,k), Q(t,k), and H(t,k), respectively.
An important point of the energy value calculation is that a sum of three energy values of the high-frequency subband signal generated by replicating the low-frequency subband signal, the artificially added noise component, and the artificially added tone component is always equal to E(t,k). Therefore, a ratio Q(t,k) of the noise component is used to divide all signal energy E(t,k) into the replicated high-frequency subband signal and the artificially added noise or tone component.
A parameter necessary for the bandwidth extension processing as described above needs to be appropriately set at the encoder in order to generate a bitstream having high audio quality and proper syntax. Especially, in order to properly calculate the energy value of the high-frequency subband signal, the chirp factor, the existence of a tone signal, and the ratio of noise component, a technique is necessary to analyze an input signal indicated by the time/frequency representation. Without proper calculation of those information, for example, reproduced sound becomes noisy since the ratio of noise component becomes too high, and due to improper tone component addition or inverse filtering, the sound becomes unclear and, at worst, becomes distorted. Among those information, an example of a method of calculating the chirp factor is disclosed in a patent reference 3. According to the method, a tone-to-noise ratio of a high-frequency signal of an input signal is compared with a tone-to-noise ratio of a signal generated by replicating a low-frequency signal at high frequency, and the ratios are calculated using a simple mathematical formula, so that the chirp factor can be calculated. Moreover, an example of a method of calculating the ratio of noise component is described in a patent reference 4. According to the method, an input signal that is a time signal is divided into time frames, and then transformed into spectrum coefficients by using Fourier transformation. Indicators called a “peak follower” and a “dip follower” which represent a peak and a fall, respectively, of the spectrum coefficients are set for the calculated spectrum coefficients, and the ratio of noise component is determined from a spectrum energy value of a noise component derived from the two indicators.
Problems that Invention is to Solve
However, in the conventional methods, when the tone-to-noise ratio of the high-frequency signal of input signal and the tone-to-noise ratio of the signal generated by replicating a low-frequency signal at high frequency are substituted in a simple equation in order to calculate the chirp factor, if during the chirp factor calculation, the tone-to-noise ratio of the high-frequency signal of original sound is extremely high or if the tone-to-noise ratio of the signal generated by replicating a low-frequency signal is extremely low, there is a possibility that an appropriate chirp factor fails to be calculated. As a result, there is a problem that audio quality is reduced due to use of the inappropriate chirp factor. Moreover, in a case where the Fourier transformation is applied to the high-frequency signal of original sound in order to correctly analyze peaks and falls of the spectrum coefficients of the Fourier-transformed high-frequency signal, when the chirp factor or the ratio of noise component is calculated, energy value calculation is necessary for the Fourier-transformed spectrum coefficients, which results in an increase of a calculation amount.
In order to solve these problems, an object of the present invention is to provide a coding equipment which can calculate an appropriate chirp factor without using processing that requires a large amount of calculation loads such as the Fourier transformation.
Means to Solve the Problems
In order to solve above problems a coding equipment which generates a coded signal that includes information for generating a signal at a high-frequency range by replicating a signal at a low-frequency range, the ranges being segments in a time direction and in a frequency direction. The coding equipment includes: a tone-to-noise ratio calculation unit operable to calculate, using linear prediction processing, a tone-to-noise ratio of the signal at the segmented high-frequency range and a tone-to-noise ratio of the signal at the low-frequency range to be replicated at the high-frequency range, the tone having signal components that exist intensely at a specific frequency range and the noise having signal components that exist regardless of frequency range; an adjustment coefficient calculation unit operable to calculate an adjustment coefficient which is used to adjust tonal characteristics of the signal at the low-frequency range to be replicated at the high-frequency range, based on the tone-to-noise ratios calculated regarding the signals at the low frequency range and the high frequency range; and an encoding unit operable to generate the coded signal that includes the calculated adjustment coefficient.
Effects of the Invention
According to the present invention, by performing pluralistic estimation of tone-to-noise ratios of an input signal and a replicated signal, and of an appropriate chirp factor, it is possible to calculate a more appropriate chirp factor and use the calculated chirp factor. Thereby it is possible to improve quality of reproduced sound.
Furthermore, by processing for a subband signal, a chirp factor, a ratio of a noise component, and presence of a tone component are systematically determined, which makes it possible to obtain appropriate information with less processing amount.
The following describes an embodiment according to the present invention with reference to the drawings. In the present embodiment, a subband signal at low frequency is replicated at a high-frequency subband, and the replicated signal is added with a tone signal or a noise, so that it is possible to generate a subband signal at high frequency.
As described above, a sum of three energy values of the high-frequency subband signal generated by replicating the low-frequency subband signal, the artificially added noise component, and the artificially added tone component is always equal to E(t,k). Therefore, an energy value Ei of the energy band ei can be calculated at the energy calculation unit 103 by calculating average energy of the input high-frequency subband signals in each energy band ei.
Subsequently, an operation of the chirp factor calculation unit 104 is described.
The tone-to-noise ratio of the input high-frequency subband signal can be calculated using linear prediction processing. Assuming that the high-frequency subband signal is indicated as S(t,k), the signal can be divided into a tone component St(t,k) and a noise component Sn(t,k) using the linear prediction processing. The signal component calculation unit 111 applies all high-frequency subbands k included in a chirp factor band bi with the linear prediction processing in order to divide the high-frequency subband signal S(t,k) into the tone component St(t,k) and the noise component Sn(t, k).
S(t,k)≈St(t,k)+Sn(t,k) [Equation 2]
Here, at a certain chirp factor band bi (the same band as the noise band qi at a high-frequency range as shown in
Furthermore, the total energy of tone components St2(t,k) and the total energy of noise components Sn2(t,k) can be calculated using the linear prediction processing according to the following equation:
As described above, the component energy calculation unit 112 calculates the total energy of tone components St2(t,k) and the total energy of noise components Sn2(t,k) regarding the high-frequency subband signal in the chirp factor band bi.
Assuming that a subband signal in the high-frequency subband k is generated from a low-frequency subband signal indicated by a mapping function p(k) in the replication processing at the decoder, the chirp factor calculation unit 104 calculates the tone-to-noise ratio q_lo(i) of the low-frequency subband signal to be replicated using the following equation (S1402):
Note that it is obvious that the total energy of tone components St2(t,p(k)) of the low-frequency subband signal to be replicated at the high-frequency subband k, and the total energy of noise components Sn2(t,p(k)) of the low-frequency subband signal can be calculated using the linear prediction processing in the same manner as described for the total energy of tone components St2(t,k) of the input high-frequency subband signal at the high-frequency subband k and the total energy of noise components Sn2(t,k) of the input high-frequency subband signal.
By estimating a magnitude relationship between the tone-to-noise ratio of the input high-frequency subband signal and the tone-to-noise ratio of the low-frequency subband signal to be replicated to the high-frequency subband each of which has been calculated as above, it is possible to determine a degree of necessary tonal restraint. As one example of the method of estimating the magnitude relationship, if the tone-to-noise ratio q_hi(i) of the input high-frequency subband signal is less than the first threshold value Tr1 (Yes at S1403) and the tone-to-noise ratio q_lo(i) of the low-frequency subband signal to be replicated is greater than the second threshold value Tr2 (Yes at S1404), the chirp factor calculation unit 104 determines that the tonal restraint processing is necessary (S1405). Furthermore, the degree of tonal restraint, namely the chirp factor Bi, is calculated using the following equation (S1406).
Note that Tr3 included in the equation 7 is the third threshold value to determine a saturation point (Bi=1) of the chirp factor. This means that when the tone-to-noise ratio q_lo(i) of the low-frequency subband signal becomes greater than the threshold value Tr3, the chirp factor Bi becomes a fixed value of Bi=1. The second equation in the equation 7, Bi=min (Bi,1), means that a smaller value is selected from Bi obtained by the first equation in the equation 7 and “1”.
Note that the equation 7 described in the above embodiment is an empirical equation and the most suitable example for calculating the chirp factor. Therefore, the equation for calculating the chirp factor is not limited to the above.
Subsequently, an operation of the tone signal addition determination unit 105 is described.
The tone signal addition determination unit 105 calculates for each tone band hi a tone-to-noise ratio of the high-frequency subband signal and a tone-to-noise ratio of the low-frequency subband signal to be replicated (S1501). Here, the tone-to-noise ratio of the high-frequency subband signal can be calculated using the tone component St(t,k) and the noise component Sn(t,k) that have been calculated at the chirp factor calculation unit 104.
However, the tone-to-noise ratio of the low-frequency subband signal to be replicated requires the consideration of influence of the tonal constraint processing, so that the tone-to-noise ratio of the low-frequency subband signal needs to be processed by processing different from the above-described processing for the tone-to-noise ratio of the high-frequency subband signal. It is possible to obtain an value almost similar to energy reduction of the tone component due to the tonal restraint processing by multiplying the energy reduction with (1-B(t,k)), so that the tone-to-noise ratio of the low-frequency subband signal can be calculated using the following equation (S1502):
When the calculated q_lo(i) and q_hi(i) satisfy the following conditions, the tone signal addition determination unit 105 determines that the current tone band needs to be added with an artificial tone signal (S1503 to S1505). That is,
q—hi(i)>q—lo(i)*Tr4
and, q—hi(i)>Tr5, and, q—lo(i)<Tr6, [Equation 10]
where Tr4, Tr5, and Tr6 are predetermined threshold values.
The tone signal addition determination unit 105 performs the above tone signal addition determination for all tone bands hi, and information regarding necessity of tone signal addition at each tone band is transmitted to the bitstream multiplex unit 107. Note that the above has described that only “information regarding necessity of tone signal addition” is transmitted to the bitstream multiplex unit 107, but “information indicating a frequency position at a tone band to be added with a tone signal” may be also transmitted together.
Note also that the tone signal addition determination unit 105 may have another structure. With such a structure, despite a shape of the low-frequency subband signal, the artificial tone signal is added only when the input high-frequency subband signal has tone components apparently. Detection of the apparent tone components is performed by determining whether or not any subband signal having extremely high energy is found among a plurality of subband signals having relatively low energy.
a) to (c) are graphs showing examples of determining a position of a tone component at a tone band by comparing energy of adjacent signals. In other words,
The tone signal addition determination unit 105 performs the above determination for all high-frequency subbands k included in the tone band hi based on the three conditions as shown in
Next, an operation of the noise component calculation unit 106 is described. When a total of the noise components included in the signal to be replicated is almost equal to a total of noise components of the input signal, quality of sound generated from the noise components of the replicated signal becomes similar to quality of sound generated from the noise components of the input signal. Moreover, a noise component is a signal generally covering a wide frequency range, so that the noise component calculation may need consideration of a band covering wider range (called noise band) compared to the above described tone band. Therefore, there is a noise band that includes a plurality of tone bands, so that in order to properly calculate the noise component, the calculation needs to consider difference between a noise component at a tone band added with a tone signal and a noise component at a tone band without tone signal addition. For the low-frequency subband signal to be replicated, the noise component amount is determined so that a noise component total value of the above two components becomes equal to a noise component total value at the current high-frequency subband of the input signal. Note that, the above processing also needs to consider influence of the above described tonal restraint processing.
Firstly, a total of noise components of the input high-frequency subband signal is calculated using the following equation:
Here, when a noise component amount in a noise band qi is Qi, for the subband signal to be replicated, a noise component amount obtained from the tone band signal added with a tone signal is determined using the following equation:
where TB(i) represent a collection of the tone bands added with tones included in the noise band qi. r(t,k) represents a ratio of a noise component included in a high-frequency subband signal to be generated by replication, and in consideration of influence of the tonal restraint processing applied to St(t,p(k)), r(t,k) is determined using the following equation:
Furthermore, for the high-frequency subband signal to be generated by replication, a noise component amount obtained by a tone band without tone signal addition is determined using the following equation:
where NTB(i) represents a collection of the tone bands without tone signal addition included in the noise band qi. The collection
TB(i)∪NTB(i) [Equation 16]
is all tone bands included in the noise band qi. In order to set a sum of all noise components included in the subband signal to be replicated at the noise band qi equal to a noise component of the current input high-frequency subband signal, it is necessary to satisfy the following equation:
This equation is a simple linear equation so that a noise component amount Qi is calculated using the following equation:
The noise component amount calculation processing is performed for all noise bands, and the calculated noise amounts Qi are encoded and transmitted to the bitstream multiplex unit 107. Thus, in the same manner as described for the component energy calculation unit 112 in the chirp factor calculation unit 104, the component energy calculation unit 113 calculates the total energy of the tone component St2(t,k) and the total energy of the noise component Sn2(t,k) regarding the high-frequency subband signal at the noise band qi. However, in addition to the processing performed by the component energy calculation unit 112 of the chirp factor calculation unit 104, the component energy calculation unit 113 in the noise component calculation unit 106 performs noise component correction, in consideration of increase or reduction in the tone components resulted from the chirp factor and the tone signal addition at the same noise band, so that it is possible to calculate a noise component with higher fidelity to the input signal.
Note also that, in the calculation of the noise component Qi, it is possible to reduce the operation amount necessary for the calculation by ignoring the noise component obtained from the tone band added with a tone signal. This is because, in the tone band to be added with a tone signal, a ratio of the tone component in the signal becomes quite high, so that even if a relatively smaller noise component is “0”, the influence on the calculated result is small. In this case, an equation for calculating the Qi is determined using the following equation:
Note that the above is one example to describe the structure of the present invention, but the particular structure does not limit the scope of the protection of the present invention.
The present invention is a suitable means for improving quality of reproduced audio signal in an equipment which divides an audio signal spectrum into tone components and noise components, and efficiently encodes and decodes the components. That is, the present invention is suitable for an encoder which calculates information to be used at a decoder in order to extend a bandwidth of an audio signal more accurately using a method having less calculation loads, and encodes the calculated information together with a low-frequency signal.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2004-128961 | Apr 2004 | JP | national |
| Filing Document | Filing Date | Country | Kind | 371c Date |
|---|---|---|---|---|
| PCT/JP2005/007498 | 4/20/2005 | WO | 00 | 4/12/2006 |
| Publishing Document | Publishing Date | Country | Kind |
|---|---|---|---|
| WO2005/104094 | 11/3/2005 | WO | A |
| Number | Name | Date | Kind |
|---|---|---|---|
| 7187907 | Widrow | Mar 2007 | B2 |
| 20020087304 | Kjorling et al. | Jul 2002 | A1 |
| 20040128126 | Nam et al. | Jul 2004 | A1 |
| 20040247037 | Honma et al. | Dec 2004 | A1 |
| 20050091040 | Nam et al. | Apr 2005 | A1 |
| 20050096917 | Kjorling et al. | May 2005 | A1 |
| Number | Date | Country |
|---|---|---|
| 1 531 551 | May 2005 | EP |
| 7-295594 | Nov 1995 | JP |
| 7-336231 | Dec 1995 | JP |
| 2004-80635 | Mar 2004 | JP |
| 3646939 | Feb 2005 | JP |
| 2005-510772 | Apr 2005 | JP |
| 2005-520219 | Jul 2005 | JP |
| 9857436 | Dec 1998 | WO |
| 0045379 | Aug 2000 | WO |
| 0126095 | Apr 2001 | WO |
| 03046891 | Jun 2003 | WO |
| 2004019497 | Apr 2004 | WO |
| 2004027368 | Apr 2004 | WO |
| Number | Date | Country | |
|---|---|---|---|
| 20070156397 A1 | Jul 2007 | US |