This Application claims priority of Taiwan Patent Application No. 098115791, filed on May 13, 2009, the entirety of which is incorporated by reference herein.
1. Field of the Invention
The invention relates to a method and apparatus for stereo audio decoding, and more particularly to a technique for decoding a stereo audio from a multiplex signal.
2. Description of the Related Art
MPX=(L+R)+(L−R)sin 2ωpt+V(L−R)sin ωpt Eq. (1)
where the left channel signal L and the right channel signal R respectively represent the left channel baseband signal and the right channel baseband signal, 2ωp represents the sub-carrier frequency, ωp represents the pilot frequency, which is half of the sub-carrier frequency, and V represents the amplitude of the pilot signal. Since the pilot frequency ωp is a known value, the receiver is able to recover the difference signal (L−R) by a predetermined demodulation scheme.
However, in actual transmission environments, the signals are not perfectly received by the receiver. Further, the pilot frequency ωp generated by the receiver may not be exactly the same as the pilot frequency generated at the transmitter side. Therefore, demodulation error exists. When taking the frequency mismatch between the transmitter and receiver into consideration, the received multiplex signal MPX may be expressed as:
MPX=(L+R)+(L−R)sin(2ωpt+2α)+V sin(ωpt+α) Eq. (2)
where α represents the phase difference of the multiplex signal MPX with respect to the pilot frequency, and the phase difference with respect to the sub-carrier frequency is 2α. When the multiplex signal MPX is input to the audio receiver 100 as shown in
MSI=MPX*sin 2ωpt=½(difference signal (L−R))*cos 2α+ Eq. (3)
MSQ=MPX*cos 2ωpt=½(difference signal (L−R))*sin 2α+ Eq. (4)
wherein only the frequency components at the frequency 2α are shown in equations (3) and (4). The high frequency components are omitted in equations (3) and (4) because they will be eliminated in the following described process.
In addition, the audio receiver 100 further comprises a pilot module 102, which is similar to the sub-carrier module 106 but different in that it provides the pilot frequency ωp for demodulating the multiplex signal MUX. In other words, the pilot module 102 multiplies the multiplex signal MPX by a sine wave and a cosine wave having the sub-carrier frequency ωp to generate a pair of in phase pilot mixed signal MPI and quadrature phase pilot mixed signal MPQ, respectively. The in phase pilot mixed signal MPI and the quadrature phase pilot mixed signal MPQ are expressed as below:
MPI=MPX*sin ωpt=V*cos α+ Eq. (5)
MPQ=MPX*cos ωpt=V*sin α+ Eq. (6)
Similarly, the high frequency components are omitted in equations (5) and (6). Next, the in phase pilot mixed signal MPI and the quadrature phase pilot mixed signal MPQ are transmitted to the third filter module 104 to filter out the high frequency components that are not shown in the above equations and output the in phase pilot signal #PI and the quadrature phase pilot signal #PQ having only the pilot frequency components as:
#PI=V*cos α Eq. (7)
#PQ=V*sin α Eq. (8)
Next, the in phase pilot signal #PI and the quadrature phase pilot signal #PQ are transmitted to an error estimator 110 to estimate the phase offset α. To be more specific, the error estimator 110 obtains the values of cos 2α and sin 2α as follows:
Assuming that A=V2, which represents the pilot signal quality, then:
A=(V*cos α)2+(V*sin α) Eq. (9)
A cos 2α=(V*cos α)−(V*sin α) Eq. (10)
A sin 2α=(V*cos α)*(V*sin α) Eq. (11)
In order to obtain the values of cos 2α and sin 2α, the term A in equation (9) has to be eliminated. In the conventional technique, as recited in the U.S. Pat. No. 5,442,709, the values obtained through equations (10) and (11) are converged by performing a dynamic average algorithm once to generate the terms cos 2α and sin 2α. Finally, the error estimator 110 passes the values of cos 2α and sin 2α as the correction signal #ERR to the corrector 108. The corrector 108 processes the in phase sub-carrier mixed signal MSI and the quadrature phase sub-carrier mixed signal MSQ received from the sub-carrier module 106 according to the correction signal #ERR to generate the difference signal (L−R). Next, the channel separator 112 coupled to an output of the corrector 108 computes the left channel mixed signal #L and the right channel mixed signal #R according to the difference signal (L−R) and the multiplex signal MPX. Finally, the low pass filter (LPF) 114 filters out the high frequency components of the left channel mixed signal #L and the right channel mixed signal #R to output the correct left channel signal L and the right channel signal R.
Conventionally, only the situation when the phase offset α exists is considered. However, in addition to the phase offset, frequency offset or timing offset between the multiplex signal MPX and the audio receiver 100 may also exist. Therefore, error may still occur when the conventional method is implemented. Further, when the conventional error estimator 110 estimates the phase offset, the amount of time needed is proportional to a more precise convergence result, which becomes a bottleneck when designing and considering overall performance of the stereo signal decoding. Undesired high frequency noise exists in the in phase sub-carrier mixed signal MSI and the quadrature phase sub-carrier mixed signal MSQ computed by the sub-carrier module 106. Thus, when the corrector 108 processes the in phase sub-carrier mixed signal MSI and the quadrature phase sub-carrier mixed signal MSQ according to the correction signal #ERR, the generated difference signals (L−R) are inevitably interfered with by noise. Although the LPF 114 in the last stage of the decoder can filter out the high frequency noise before outputting the left channel signal L and the right channel signal R, the overall delay degrades overall signal streaming efficiency. In conclusion, there are areas for improvement needed for the conventional multiplex signal decoding circuit.
Stereo audio decoders and multiplex signal decoding methods are provided. An exemplary embodiment of a stereo audio decoder for decoding a multiplex signal into a stereo audio signal comprises a first filter module, a sub-carrier module, a second filter module, a corrector and a channel separator. The first filter module filters the multiplex signal to generate a summation signal. The sub-carrier module modulates the multiplex signal according to a sub-carrier frequency to generate a sub-carrier mixed signal comprising a first high frequency component and a first low frequency component. The first low frequency component comprises a sub-carrier phase offset between the stereo audio decoder and the multiplex signal. The second filter module is coupled to the sub-carrier module and filters out the first high frequency component of the sub-carrier mixed signal to generate a sub-carrier pure signal comprising only the first low frequency component. The corrector generates a difference signal according to a correction signal and the multiplex signal. The channel separator is coupled to the first filter module and the corrector and obtains a left channel signal and a right channel signal of the stereo audio signal by decoding the summation signal and the difference signal.
An exemplary embodiment of a multiplex signal decoding method for decoding a multiplex signal comprising a baseband signal component, a sub-carrier signal component and a pilot signal component into a stereo audio signal comprises: low pass filtering the multiplex signal to generate a summation signal comprising only the baseband signal component; modulating the multiplex signal according to a sub-carrier frequency to generate a sub-carrier mixed signal comprising a first high frequency component and a first low frequency component, wherein the first low frequency component comprises a sub-carrier phase offset between the sub-carrier signal component and the sub-carrier frequency; filtering out the first high frequency component to generate a sub-carrier pure signal comprising only the first low frequency component; eliminating the sub-carrier phase offset of the sub-carrier pure signal according to a correction signal to generate a difference signal; and obtaining a left channel signal and a right channel signal by decoding the stereo audio signal according to the summation signal and the difference signal.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
The invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
The following description is of the best-contemplated mode of carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
MPX=(L+R)+(L−R)sin(2(ωp+ωp)(t+t)+2α)+V sin((ωp+ωp)(t+t)+α) Eq. (12)
where ωp represents the frequency offset and t represents the timing offset. When expanding Eq. (12), the equation may be further simplified as:
MPX=(L+R)+(L−R)sin(2ωpt+2γ)+V(L−R)sin(ωpt+γ) Eq. (13)
where γ represents a collection of the sundries regarding ωp, t and α, standing for a physical quantity concerning all of the frequency, timing and phase offset. Detailed results for expanding of Eq. (12) are not shown since the term y may be eliminated in the following described operations.
The multiplex signal MPX is passed to the first filter module 302, the sub-carrier module 106 and the pilot module 102 after being input to the stereo audio decoder 300. After the computations of the pilot module 102, the third filter module 104 and the error estimator 310, a pair of correction signals #ERR may be generated to correct the in phase sub-carrier pure signal #SI and the quadrature phase sub-carrier pure signal #SQ generated by the sub-carrier module 106 and the second filter module 304, and finally obtain the difference signal (L−R). The first filter module 302 filters out the baseband component shown in Eq. (13), which is the summation signal (L+R). Finally, the channel separator 112 processes the summation signal (L+R) generated by the first filter module 302 and the difference signal (L−R) generated by the corrector 108 to precisely separate the left channel signal L and the right channel signal R.
The sub-carrier module 106 provides a sub-carrier frequency 2ωp to demodulate the multiplex signal MPX into an in phase sub-carrier mixed signal MSI and a quadrature phase sub-carrier mixed signal MSQ, expressed as below:
MSI=MPX*sin 2ωpt=½(L−R)*cos 2γ+ Eq. (14)
MSQ=MPX*cos 2ωpt=½(L−R)*sin 2γ+ Eq. (15)
Similar to Eq. (3) and Eq. (4), the Eq. (14) and Eq. (15) lists only the frequency component at frequency 2γ. The high frequency components are omitted in the equations because they will be eliminated in the following described process.
A second filter module 304 is coupled to the sub-carrier module 106 to filter out the not-shown high frequency components in Eq. (14) and Eq. (15) and output an in phase sub-carrier pure signal #SI and a quadrature phase sub-carrier pure signal #SQ having only the frequency components at frequency 2γ as expressed below:
#SI=½(L−R)*cos 2γ Eq. (16)
#SQ=½(L−R)*sin 2γ Eq. (17)
Similar to the sub-carrier module 106 and the second filter module 304, the pilot module 102 and the third filter module 104 also provide a pilot frequency ωp to demodulate the multiplex signal MPX. The pilot module 102 generates an in phase pilot mixed signal MPI and a quadrature phase pilot mixed signal MPQ as:
MPI=MPX*sin ωpt=V*cos γ+ Eq. (18)
MPQ=MPX*cos ωpt=V*sin γ+ Eq. (19).
Next, the third filter module 104 filters out the high frequency components not listed in Eq. (18) and Eq. (19) and outputs the in phase pilot pure signal #PI and quadrature phase pilot pure signal #PQ as:
#PI=V*cos γ Eq. (20)
#PQ=V*sin γ Eq. (21)
The in phase pilot pure signal #PI and quadrature phase pilot pure signal #PQ as shown in Eq. (20) and Eq. (21) are passed to the error estimator 310 to obtain the correction signals # ERR. To be more specific, the correction signals # ERR are cos 2γ and sin 2γ, utilized to correct the in phase sub-carrier pure signal #SI and the quadrature phase sub-carrier pure signal #SQ generated by the second filter module 304. In order to obtain the cos 2γ and sin 2γ, a variable A=V2 is defined to represent the pilot signal quality. Therefore, it is obtained that a sum of the squares of the in phase pilot pure signal #PI and the quadrature phase pilot pure signal #PQ equals to A as derived below:
(V*cos γ)2+(V*sin γ)2=A Eq. (22)
Meanwhile, the error estimator 310 obtains a difference between the squares of the in phase pilot pure signal #PI and the quadrature phase pilot pure signal #PQ as:
(V*cos γ)2−(V*sin γ)2=A cos 2γ Eq. (23)
According to Eq. (22) and Eq. (23), it is derived that:
cos 2γ=(V*cos γ)2/A−(V*sin γ)2/A Eq. (24)
In order to obtain the value of sin 2γ, the error estimator 310 computes products of the in phase pilot pure signal #PI and the quadrature phase pilot pure signal #PQ as below:
(V*cos γ)*(V*sin γ)=A sin 2γ Eq. (25)
Therefore, the value of sin 2γ may be obtained by dividing A from Eq. (25).
#SI′=½(L−R)*cos 2γ**cos 2γ Eq. (26)
#SQ′=½(L−R)*sin 2γ·sin 2γ Eq. (27)
Next, the in phase sub-carrier compensation signal #SI′ and the quadrature phase sub-carrier compensation signal #SQ′ are added by the adder 506 to obtain the difference signal (L−R):
½(L−R)*cos 2γ**cos 2γ+½(L−R)*sin 2γ·sin 2γ=½(L−R) Eq. (28).
The channel separator 112 comprises an adder 512 and a subtractor 514. The summation signal (L+R) generated by the first filter module 302 and the difference signal (L−R) generated by the corrector 108 are summed and subtracted by the adder 512 and the subtractor 514, respectively, to generate the left channel signal L and the right channel signal R as:
L+R+(L−R)=2L Eq. (29)
L+R−(L−R)=2R Eq. (30).
While the invention has been described by way of example and in terms of preferred embodiment, it is to be understood that the invention is not limited thereto. Those who are skilled in this technology can still make various alterations and modifications without departing from the scope and spirit of this invention. Therefore, the scope of the present invention shall be defined and protected by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
98115791 | May 2009 | TW | national |