STEREO SIGNAL CONVERTER, STEREO SIGNAL REVERSE CONVERTER, AND METHODS FOR BOTH

Information

  • Patent Application
  • 20110019829
  • Publication Number
    20110019829
  • Date Filed
    April 03, 2009
    15 years ago
  • Date Published
    January 27, 2011
    13 years ago
Abstract
Disclosed are a stereo signal converter whereby it is possible to obtain low-redundancy encoding signals (M, S) even when the sound source locations are different, and a stereo signal reverse converter whereby it is possible to obtain higher-quality stereo signals. In a stereo signal converter (101), a correlation analyzer (111) calculates the power (PL) of a left channel signal (L), the power (PR) of a right channel signal (R), and a correlation value (CLR) using the left channel signal (L) and the right channel signal (R). A coefficient calculator (113) calculates a coefficient a by means of the correlation value (CLR) outputted from the correlation analyzer (111) based on the magnitude relationship between the power (PL) and the power (PR). A sum-difference calculator (115) adds the left channel signal (L) and the right channel signal (R) to generate a monaural signal (M). Also, the sum-difference calculator (115) generates a side signal (S) using the magnitude relationship between the power (PL) and the power (PR), and a coefficient obtained by encoding and decoding a.
Description
TECHNICAL FIELD

The present invention relates to a stereo signal converting apparatus, stereo signal inverse-converting apparatus and converting and inverse-converting methods used in an encoding apparatus and decoding apparatus that realize stereo speech coding.


BACKGROUND ART

Speech coding is generally used for communication applications using narrowband speech of the telephone band (200 Hz to 3.4 kHz). Narrowband speech codec of monaural speech is widely used in communication applications including speech communication through mobile phones, remote conference devices and recent packet networks (e.g. the Internet).


Recently, with broadbandization of communication networks, there is a demand for realistic sensation in speech communication and high quality of music. To meet this demand, speech communication systems using coding techniques of stereo speech have been developed.


As a method of encoding stereo speech, there is a known conventional method of finding a monaural signal based on a sum of the left channel signal and the right channel signal, finding a side signal based on the difference between the left channel signal and the right channel signal, and encoding these signals (see Patent Literature 1).


The left channel signal and the right channel signal represent sound heard by human ears, the monaural signal can represent the common part between the left channel signal and the right channel signal, and the side signal can represent the spatial difference between the left channel signal and the right channel signal.


There is a high correlation between the left channel signal and the right channel signal. Consequently, compared to the case of encoding the left channel signal and the right channel signal directly, it is possible to perform more suitable coding in accordance with features of a monaural signal and side signal by encoding the left channel signal and right channel signal converted into a monaural signal and a side signal, so that it is possible to realize coding with less redundancy, low bit rate and high quality.


Citation List
Patent Literature
[PTL 1]
Patent 2001-255892
SUMMARY OF INVENTION
Technical Problem

However, even in a case where the left channel signal and the right channel signal share the same main elements, if the excitation position varies between these signals, the correlation between the left channel signal and the right channel signal at the same time becomes low. Therefore, when the left channel signal and the right channel signal are converted into a monaural signal and a side signal and then encoded simply, if the excitation position varies significantly, the monaural signal and the side signal still including redundancy are quantized inefficiently.


It is therefore an object of the present invention to provide a stereo signal converting apparatus, stereo signal inverse-converting apparatus and converting and inverse-converting methods for providing less redundant coding signals (M, S) on the encoding apparatus side even if the excitation position varies, and for providing stereo signals of higher quality on the decoding apparatus side.


Solution to Problem

The stereo signal converting apparatus of the present invention employs a configuration having: a correlation analyzing section that calculates a correlation value between a first channel signal and a second channel signal forming a stereo signal; a coefficient calculating section that calculates a first coefficient based on the correlation value; a coefficient encoding section that encodes the first coefficient and calculates a second coefficient based on resulting encoded data; and a sum and difference calculating section that generates a monaural signal related to a sum of the first channel signal and the second channel signal, and, using the second coefficient, generates a side signal related to a difference between the first channel signal and the second channel signal.


The stereo signal inverse-converting apparatus of the present invention employs a configuration having: a coefficient decoding section that decodes encoded data, which is acquired in a stereo signal converting apparatus by encoding a first coefficient calculated based on a correlation value between a first channel signal and a second channel signal forming a stereo signal, and calculates a second coefficient; and a reconstructed signal generating section that generates a reconstructed signal of the first channel signal and a reconstructed signal of the second channel signal using a monaural reconstructed signal, a side reconstructed signal and the second coefficient, the monaural reconstructed signal decoding encoded data of a monaural signal related to a sum of the first channel signal and the second channel signal, and the side reconstructed signal decoding encoded data of a side signal related to a difference between the first channel signal and the second channel signal.


The stereo signal converting method of the present invention includes: a correlation analyzing step of calculating a correlation value between a first channel signal and a second channel signal forming a stereo signal; a coefficient calculating step of calculating a first coefficient based on the correlation value; a coefficient encoding step of encoding the first coefficient and calculating a second coefficient based on resulting encoded data; and a sum and difference calculating step of generating a monaural signal related to a sum of the first channel signal and the second channel signal, and, using the second coefficient, generating a side signal related to a difference between the first channel signal and the second channel signal.


The stereo signal inverse-converting method of the present invention includes: a coefficient decoding step of decoding encoded data, which is acquired in a stereo signal converting method by encoding a first coefficient calculated based on a correlation value between a first channel signal and a second channel signal forming a stereo signal, and calculating a second coefficient; and a reconstructed signal generating step of generating a reconstructed signal of the first channel signal and a reconstructed signal of the second channel signal using a monaural reconstructed signal, a side reconstructed signal and the second coefficient, the monaural reconstructed signal decoding encoded data of a monaural signal related to a sum of the first channel signal and the second channel signal, and the side reconstructed signal decoding encoded data of a side signal related to a difference between the first channel signal and the second channel signal.


ADVANTAGEOUS EFFECTS OF INVENTION

According to the present invention, the encoding apparatus side finds side signal S by multiplying one of left channel signal L and right channel signal R by coefficient α calculated using the correlation between stereo signals (L, R), so that, even if the excitation position varies, it is possible to provide less redundant coding signals (M, S) on the encoding apparatus side and provide stereo signals of high quality on the decoding apparatus side.





BRIEF DESCRIPTION OF DRAWINGS


FIG. 1 is a block diagram showing the configuration of an encoding apparatus including a stereo signal converting apparatus according to Embodiment 1 of the present invention;



FIG. 2 shows an example of a codebook to use upon encoding coefficient α in a coefficient encoding section of a stereo signal converting apparatus according to Embodiment 1 of the present invention;



FIG. 3 is a flowchart showing a search algorithm in a coefficient encoding section of a stereo signal converting apparatus according to Embodiment 1 of the present invention;



FIG. 4 is a block diagram showing the configuration of a decoding apparatus including a stereo signal inverse-converting apparatus according to Embodiment 1 of the present invention;



FIG. 5 is a block diagram showing the configuration of an encoding apparatus including a stereo signal converting apparatus according to Embodiment 3 of the present invention; and



FIG. 6 is a block diagram showing the configuration of a decoding apparatus including a stereo signal inverse-converting apparatus according to Embodiment 3 of the present invention.





DESCRIPTION OF EMBODIMENTS

Embodiments of the present invention will be explained below in detail with reference to the accompanying drawings. Here, example cases will be explained with embodiments where a stereo signal is comprised of two signals of the left channel signal and the right channel signal. Also, the left channel signal, the right channel signal, the monaural signal and the side signal are represented by “L,” “R,” “M” and “S,” respectively, and their reconstructed signals are represented by “L′,” “R′,” “M” and “S′,” respectively. Here, the association relationships between the names of the signals and their signs are not limited to the above. Also, in embodiments, the same components will be assigned the same reference numerals and their overlapping explanation will be omitted.


Embodiment 1


FIG. 1 is a block diagram showing the configuration of an encoding apparatus including a stereo signal converting apparatus according to Embodiment 1 of the present invention. Encoding apparatus 100 shown in FIG. 1 is mainly provided with stereo signal converting apparatus 101, monaural encoding section 102, side encoding section 103 and multiplexing section 104.


Stereo signal converting apparatus 101 generates monaural signal M, which is a sum of left channel signal L and right channel signal R, and generates side signal S, the value of which is given by subtracting, from one of left channel signal L and right channel signal R, the value multiplying the other signal by coefficient α. Further, stereo signal converting apparatus 101 outputs monaural signal M to monaural encoding section 102 and outputs side signal S to side encoding section 103. Further, stereo signal converting apparatus 101 outputs one-bit data showing the power magnitude relationship between left channel signal L and right channel signal R (hereinafter “power data”), and data encoding coefficient α, to multiplexing section 104.


Monaural encoding section 102 encodes monaural signal M and outputs the resulting encoded data to multiplexing section 104. Side encoding section 103 encodes side signal S and outputs the resulting encoded data to multiplexing section 104.


Multiplexing section 104 multiplexes encoded data of monaural signal M, encoded data of side signal S, power data and encoded data of coefficient α, and outputs the resulting bit stream.


Next, the configuration inside stereo signal converting apparatus 101 will be explained. Stereo signal converting apparatus 101 is provided with correlation analyzing section 111, difference deciding section 112, coefficient calculating section 113, coefficient encoding section 114 and sum and difference calculating section 115.


Using left channel signal L and right channel signal R, correlation analyzing section 111 calculates power PL of left channel signal L, power PR of right channel signal R and correlation value CLR, according to following equation 1. Further, correlation analyzing section 111 outputs power PL and power PR to difference deciding section 112 and outputs power PL, power PR and correlation value CLR to coefficient calculating section 113. Here, in equation 1, XiL represents the signal value of left channel signal L at sample timing i, and XiR represents the signal value of right channel signal R at sample timing i.





[1]











P
L

=



i




X
i
L

×

X
i
L











P
R

=



i




X
i
R

×

X
i
R











C

L





R


=



i




X
i
L

×

X
i
R








(

Equation





1

)







Difference deciding section 112 compares the magnitudes of power PL and power PR outputted from correlation analyzing section 111, and outputs one-bit power data representing the comparison result to multiplexing section 104, coefficient calculating section 113 and sum and difference calculating section 115. To be more specific, difference deciding section 112 outputs power data of code “0” when PL≧PR, or outputs power data of code “1” when PL<PR.


Based on power data outputted from difference deciding section 112, coefficient calculating section 113 calculates coefficient α using power PL, power PR and correlation value CLR outputted from correlation analyzing section 111, according to following equation 2, and outputs the result to coefficient encoding section 114.





[2]





If PL≧PR: α=(PR+CLR)/(PL+CLR)





If PL<PR: α=(PL+CLR)/(PR+CLR)  (Equation 2)


where in the case where the denominator (or) is 0.


As clear from above equation 2, α is −1<α≦1, and is the value to be easily encoded because a has upper and lower limits. Here, α equals 1 when PL=PR, and α becomes close to −1 when left channel signal L and right channel signal R have opposite phases and one has a slightly higher amplitude than the other.


Coefficient encoding section 114 encodes coefficient α outputted from coefficient calculating section 113, with reference to a codebook stored inside, and outputs the result to multiplexing section 104. With the present embodiment, coefficient α is encoded with four bits. Here, the power ratio (absolute value) of coefficient α is likely to be closer to a value of 1, and, consequently, the codebook as shown in FIG. 2 is used upon encoding coefficient α. With the codebook shown in FIG. 2, coefficient value αi is assigned to each code such that, when the absolute value of coefficient value αi is closer to 1.0, the interval between absolute values becomes shorter. As for a search using this codebook, with a tree search, it is possible to perform a search with a small amount of calculations. The tree search uses search reference value δi of the codebook shown in FIG. 2. The search algorithm will be described later in detail.


Also, coefficient encoding section 114 outputs coefficient value αi corresponding to encoded data of coefficient α, to sum and difference calculating section 115.


As shown in following equation 3, sum and difference calculating section 115 generates monaural signal M by adding left channel signal L and right channel signal R. Further, sum and difference calculating section 115 generates side signal S using power data outputted from difference deciding section 112 and coefficient value αi outputted from coefficient encoding section 114, according to following equation 4. Also, in equations 3 and 4, XiM represents the signal value of monaural signal M at sample timing i, and XiS represents the signal value of side signal S at sample timing i. Then, sum and difference calculating section 115 outputs monaural signal M to monaural encoding section 102 and outputs side signal S to side encoding section 103.





[3]






X
i
M
=X
i
L
+X
i
R  (Equation 3)





[4]





If PL≧PR: XiS=XiL−αi·XiR





If PL<PR: XiS=XiR−αi·XiL  (Equation 4)


Monaural signal M generated in sum and difference calculating section 115 represents the main elements of left channel signal L and right channel signal R. Also, side signal S generated in sum and difference calculating section 115 is substantially orthogonal to monaural signal M as a vector, and can show the spatially different part between left channel signal L and right channel signal R more faithfully than the prior art, so that it is possible to provide stereo signals of high quality on the decoding apparatus side.


Also, if sum and difference calculating section 115 generates side signal S using coefficient α before coding, side signal S and monaural signal M provide a product sum of 0 as shown in following equation 5, and are therefore completely orthogonal as vectors. Here, equation 5 shows a case where PL<PR.















i




X
i
M

·

X
i
S



=





i




(


X
i
L

+

X
i
R


)

·

(


X
i
L

-

α
·

X
i
R



)









=






i




X
i
L

·

X
i
L



+



i




X
i
R

·

X
i
L



-










α
·

(




i




X
i
L

·

X
i
R



+



i




X
i
R

·

X
i
R




)








=




P
L

+

C

L





R


-

α
·

(


C

L





R


+

P
R


)









=




P
L

+

C

L





R


-












(


P
L

+

C

L





R



)

/

(


P
R

+

C

L





R



)


·

(


C

L





R


+

P
R


)








=


0







(

Equation





5

)







Next, the search algorithm in coefficient encoding section 114 will be explained using FIG. 3.


First, in ST 301, search width c is set to 8, which is half of the codebook size of 16, and code buffer i is set to 0. Next, in ST 302, whether or not search width c is 0 is decided, and the codebook search is finished when search width c is 0 (Yes in ST 302), or, otherwise, the flow proceeds to ST 303 (No in ST 302).


In the event of “No” in ST 302, the value of search width c is added to code buffer i in ST 303. Next, search reference value δi and coefficient α are compared in ST 304, and, if coefficient α is less than search reference value δi, the flow proceeds to ST 305 (Yes in ST 304), or, if coefficient α is equal to or greater than search reference value δi, the flow proceeds to ST 306 (No in ST 304).


In the event of “Yes” in ST 304, the value of search width c is subtracted from code buffer i in ST 305. Next, in ST 306, the value of search width c is subjected to one-bit shift to the right, and the flow proceeds to ST 302. Here, “c>>1” indicates that the value of c is subjected to one-bit shift to the right.


In the event of “No” in ST 304, the value of search width c is subjected to one-bit shift to the right in ST 306, and the flow proceeds to ST 302.


Then, code buffer i at the time the codebook search is over, represents the code.


By performing a search as above, the search width in ST 306 becomes 8, 4, 2, 1 and 0, that is, becomes “0” at a fifth time. Consequently, the search loop from ST 303 to ST 306 is implemented four times only. Therefore, it is possible to search a codebook in sixteen patterns with a small amount of calculations. Also, the above method is not limited to sixteen patterns, and can be equally used in a search of a codebook of a power of two size.



FIG. 4 is a block diagram showing the configuration of a decoding apparatus including a stereo signal inverse-converting apparatus according to the present embodiment. Decoding apparatus 400 shown in FIG. 4 is mainly provided with demultiplexing section 401, monaural decoding section 402, side decoding section 403 and stereo signal inverse-converting apparatus 404.


Demultiplexing section 401 demultiplexer a bit stream received in decoding apparatus 400, and outputs encoded data of monaural signal M to monaural decoding section 402, encoded data of side signal S to side decoding section 403, encoded data of coefficient α and power data to stereo signal inverse-converting apparatus 404.


Monaural decoding section 402 decodes the encoded data of monaural signal M and outputs resulting monaural reconstructed signal M′ to stereo signal inverse-converting apparatus 404. Side decoding section 403 decodes the encoded data of side signal S and outputs resulting side reconstructed signal S′ to stereo signal inverse-converting apparatus 404.


Stereo signal inverse-converting apparatus 404 provides left channel reconstructed signal L′ and right channel reconstructed signal R′ using the encoded data of coefficient α, the power data, monaural reconstructed signal M′ and side reconstructed signal S′.


Nest, the configuration inside stereo signal inverse-converting apparatus 404 will be explained. Stereo signal inverse-converting apparatus 404 is provided with coefficient decoding section 411 and sum and difference calculating section 412.


Coefficient decoding section 411 decodes encoded data of coefficient α with reference to the same codebook as in FIG. 2 stored inside, and outputs coefficient value αi corresponding to the encoded data of coefficient α to sum and difference calculating section 412. Here, a codebook inside coefficient decoding section 411 does not require search reference value δi shown in FIG. 2.


Sum and difference calculating section 412 calculates left channel reconstructed signal L′ and right channel reconstructed signal R′ according to following equation 6, using monaural reconstructed signal M′ outputted from monaural decoding section 402, side reconstructed signal S′ outputted from side decoding section 403, the power data and coefficient value αi. Here, in equation 6, YiM represents the signal value of monaural reconstructed signal M′ at sample timing i, YiS represents the signal value of side reconstructed signal S′ at sample timing i, YiL represents the signal value of left channel reconstructed signal L′ at sample timing i, and YiR represents the signal value of right channel reconstructed signal R′ at sample timing i.





[6]





If PL<PR






Y
i
L=(αi/(1+αi))·YiM+(1/(1+αi))·YiS






Y
i
R=(1/(1+αi))·YiM−(1/(1+αi))·YiS





If PL≧PR






Y
i
L=(1/(1+αi))·YiM−(1/(1+αi))·YiS






Y
i
R=(α/(1+αi))·YiM+(1/(1+αi))·YiS  (Equation 6)


As described above, according to the present embodiment, the encoding apparatus side finds side signal S, using the value multiplying one of left channel signal L and right channel signal R by coefficient α calculated using the correlation between stereo signals (L, R), so that side signal S is orthogonal to monaural signal M as a vector (i.e. the inner product is zero). Therefore, even if the excitation position varies, it is possible to provide less redundant coding signals (M, S) on the encoding apparatus side and provide stereo signals of high quality on the decoding apparatus side.


Embodiment 2

A case will be explained with Embodiment 2 where the step of finding the difference between left channel signal L and right channel signal R is fixed.


Also, the present embodiment differs from Embodiment 1 only in the function of sum and difference calculating section 115 of stereo signal converting apparatus 101 and the function of sum and difference calculating section 412 of stereo signal inverse-converting apparatus 404. This point will be explained below.


Here, a case is assumed with the present embodiment where sum and difference calculating section 115 is fixed to subtract right channel signal R multiplied by αi from left channel signal L, and sum and difference calculating section 412 is fixed to find a difference upon calculating right channel reconstructed signal R′.


Sum and difference calculating section 115 finds monaural signal M according to following equation 7 and finds side signal S according to following equation 8, using left channel signal L, right channel signal R, power data outputted from difference deciding section 112 and coefficient value αi outputted from coefficient encoding section 114.





[7]






X
i
M
=X
i
L
+X
i
R  (Equation 7)





If PL<PR: β=αi





If PL≧PR: β=1/αi






X
i
S
=X
i
L
−β·X
i
R  (Equation 8)


Also, sum and difference calculating section 412 calculates left channel reconstructed signal L′ and right channel reconstructed signal R′ according to following equation 9, based on monaural reconstructed signal M′, side reconstructed signal S′, power data and coefficient value αi corresponding to encoded data of coefficient α.





[9]





If PL<PR: β=αi





If PL≧PR: β=1/αi






Y
i
L=(β/(1+β))·YiM+(1/(1+β))·YiS






Y
i
R=(1/(1+β))·YiM−(11+β))·YiS  (Equation 9)


Here, as clear from the codebook of FIG. 2, a case might occur where coefficient value αi=0. In this case, the reciprocal cannot be found, and therefore β=0.


Here, even in the above case of “0,” by calculating reciprocal coefficient value 1/α in advance and storing the result in a codebook, it is possible to omit the process of calculation.


Thus, according to the present embodiment, the step of finding the difference between left channel signal L and right channel signal R is fixed on the encoding apparatus side, thereby providing good continuity of monaural signal M. By this means, in a case where discontinuity occurs, it is not necessary to encode an extreme waveform in the discontinuous part, so that it is possible to perform coding more efficiently, and the decoding side can provide stereo signals of high quality.


Also, a case has been described above with the present embodiment where the step of finding a difference is fixed to subtract right channel signal R from left channel signal L, the present invention is equally applicable to a case where that step is fixed to subtract left channel signal L from right channel signal R. In this case, left channel signal L and right channel signal R need to be replaced with each other in explanation of the present embodiment.


Embodiment 3

An example case will be described with Embodiment 3 where coefficient c, which is used upon finding a side signal from left channel signal L and right channel signal R in the first signal conversion unit of the current signal conversion target, is calculated using coefficient c used in a second signal conversion unit before the first signal conversion unit. Further, an example case will be explained where a coefficient used per element of a channel signal vector is gradually changed between elements to make a side signal vector and monaural signal vector orthogonal while securing continuity. Here, a case will be explained below where a frame is used as a signal conversion unit.


Here, as an example, Embodiment 3 realizes the above orthogonality by an algorithm for changing coefficient ε linearly. Also, the step of finding the difference between left channel signal L and right channel signal R is fixed, and the multiplication result of signal R and coefficient ε is subtracted from signal L.



FIG. 5 is a block diagram showing the configuration of an encoding apparatus including a stereo signal converting apparatus according to Embodiment 3 of the present invention. Encoding apparatus 500 shown in FIG. 5 is mainly provided with stereo signal converting apparatus 501, monaural encoding section 102, side encoding section 103 and multiplexing section 502.


Stereo signal converting apparatus 501 is provided with correlation analyzing section 511, coefficient calculating section 512, coefficient encoding section 513 and sum and difference calculating section 514.


Using left channel signal L and right channel signal R according to following equation 10, correlation analyzing section 511 calculates power PL of left channel signal L, power PR of right channel signal R, correlation value CLR, power PR(i) of right channel signal R weighted by the element number, and correlation value CLR(i) weighted by the element number. Here, “i” represents the element number (corresponding to the sample timing), and “I” represents the number of elements (vector length).





[10]











P
L

=




i
=
1

I




X
i
L

·

X
i
L











P
R

=




i
=
1

I




X
i
R

·

X
i
R











C

L





R


=




i
=
1

I




X
i
L

·

X
i
R











P
R

(
i
)


=




i
=
1

I




i
/
I

·

X
i
R

·

X
i
R











C

L





R


(
i
)


=




i
=
1

I




i
/
I

·

X
i
L

·

X
i
R








(

Equation





10

)







Coefficient calculating section 512 calculates coefficient ε in the current frame, using coefficient ε calculated in a past frame.


To be more specific, first, according to equation 11, coefficient calculating section 512 calculates value γ (coefficient calculation base value) to derive coefficient ε of the calculation target in the current frame, using PL, PR, CLR, PR(i), CLR(i) and η(−1) calculated in correlation analyzing section 511. Here, value η(−1) of coefficient ε calculated in the previous frame is used as coefficient ε calculated in a past frame.









γ
=



P
L

+

C
LR

-


η

(

-
1

)


·

(


P
R

+

C

L





R


-

P
R

(
i
)


-

C

L





R


(
i
)



)





P
R

(
i
)


+

C

L





R


(
i
)








(

Equation





11

)







γ: the value to derive a coefficient (coefficient calculation base value)


η: a coefficient used in previous frame (where the initial value is a predetermined fixed value)


Next, using coefficient calculation base value γ, coefficient calculating section 512 calculates coefficient ε according to equation 12, and provides identification information of a conversion mode used upon calculating coefficient ε from coefficient calculation base value γ (i.e. identification information m of a conversion equation). The conversion mode is switched in accordance with the magnitude of coefficient calculation base value γ.





[12]





if −1<γ<1 then {m=0 ε=γ}





else {m=1 ε=1/γ}  (Equation 12)


ε: coefficient (coding target), m: conversion mode


In above equation 12, identification information m=0 indicates a no-conversion mode in which γ is used as is as ε, and identification information m=1 indicates a conversion mode in which the reciprocal of γ is used as ε.


As clear from above equation 12, ε is −1<ε≦1, and is the value to be easily encoded because ε has upper and lower limits. Here, ε equals 1 when PL=PR, and ε becomes close to −1 when left channel signal L and right channel signal R have opposite phases and one has a slightly higher amplitude than the other.


Conversion mode identification information m acquired as above, which is one-bit information, is multiplexed in multiplexing section 502. Also, coefficient ε is outputted to coefficient encoding section 513.


Coefficient encoding section 513 encodes coefficient ε outputted from coefficient calculating section 512, with reference to a codebook stored inside, and outputs the result to multiplexing section 502. With the present embodiment, coefficient ε is encoded with four bits. Here, the power ratio (absolute value) of coefficient ε is likely to be closer to a value of 1, and, consequently, the codebook as shown in FIG. 2 can be used upon encoding coefficient ε. At this time, similar to Embodiment 1, it is possible to use a tree search upon a search using a codebook.


Also, coefficient encoding section 513 outputs coefficient value η corresponding to encoded data of coefficient ε (αi when FIG. 2 is used), to sum and difference calculating section 514.


Multiplexing section 502 multiplexes encoded data of monaural signal M, encoded data of side signal S, encoded data of coefficient ε and identification information m of the conversion mode used upon calculating coefficient ε, and outputs the resulting bit stream.



FIG. 6 is a block diagram showing the configuration of a decoding apparatus including a stereo signal inverse-converting apparatus according to Embodiment 3 of the present invention. Decoding apparatus 600 shown in FIG. 6 is mainly provided with demultiplexing section 601, monaural decoding section 402, side decoding section 403 and stereo signal inverse-converting apparatus 602.


Stereo signal inverse-converting apparatus 602 includes coefficient decoding section 611 and sum and difference calculating section 612.


Demultiplexing section 601 demultiplexes a bit stream received in decoding apparatus 600 and outputs encoded data of monaural signal M to monaural decoding section 402, encoded data of side signal S to side decoding section 403, and encoded data of coefficient ε and conversion mode identification information m to stereo signal inverse-converting apparatus 602.


Coefficient decoding section 611 decodes the encoded data of coefficient c with reference to the same codebook as in FIG. 2 stored inside, specifies value αi corresponding to the encoded data of coefficient ε, and, using this value αi and conversion mode identification information m, calculates value η of coefficient ε according to equation 13. That is, coefficient ε was converted in accordance with a conversion mode in encoding apparatus 500, and, consequently, decoding apparatus 600 performs inverse-conversion according to equation 13.





[13]





if m=0 then η=αi





if m=1 then η=1/αi  (Equation 13)


Value η of coefficient ε calculated as above is outputted to sum and difference calculating section 612.


According to equation 14, sum and difference calculating section 612 calculates left channel reconstructed signal L′ and right channel reconstructed signal R′ using monaural reconstructed signal M′ outputted from monaural decoding section 402, side reconstructed signal S′ outputted from side decoding section 403 and value 11 of coefficient ε.





[14]







X
i
M

=


X
i
L

+

X
i
R









X
i
S

=


X
i
L

-



{


i
·
η

+


(

I
-
i

)

·

η

(

-
1

)




}

I

·

X
i
R








XiM: signal M′





XiS: signal S′





XiL: signal L′





XiR: signal R′





η: the value of decoded coefficient ε





η(−1): the value of coefficients in the previous frame (where the initial value is a predetermined fixed value)  (Equation 14)


As clear from above equation 14, the coefficient by which XiR is multiplied in the current decoding processing unit (frame unit in this case) is gradually changed from η(−1), which is used in the end of the previous frame, to η, as element number i increases in the current frame. By this means, good continuity of signal S is provided, so that it is possible to improve speech quality significantly, especially when encoding a plurality of frames.


Also, signal M acquired as above represents the main elements of signal L and signal R more faithfully. Also, signal S is influenced by the coding distortion caused by coding/decoding of coefficients but is substantially orthogonal to signal M, thereby representing the spatially different part between signal L and signal R more faithfully. Therefore, the encoding apparatus side can perform suitable coding by encoding signal M and signal S, and the decoding apparatus side can provide stereo signals of high quality.


Also, if signal S is calculated using coefficient £ before coding for subtraction, signal S and signal M are completely orthogonal. This is proven in the same way as in equation 5 of Embodiment 1. That is, it is proven from the fact that the product sum of the two equations shown in equation 14 is 0. Here, coefficient calculation base value γ is used instead of η in equation 14.


Also, a case has been described above with the present embodiment where the step of finding a difference is fixed to subtract right channel signal R from left channel signal L. However, the present invention is not limited to this, and it is equally possible to fix the step to subtract left channel signal L from right channel signal R. In this case, left channel signal L and right channel signal R need to be replaced with each other in explanation of the present embodiment.


Also, the step of finding a difference may be changed in the same way as in Embodiment 1. However, in order to maintain the “continuity of signal S” as shown in the present embodiment, it is preferable to fix the step of finding a difference.


Also, although cases have been described above with embodiments where the number of coding bits for coefficient α is four bits, the present invention is not limited to this, and it is equally possible to make the number of coding bits for coefficient α much larger or smaller than four bits. If the number of coding bits is increased, the number of variations to represent coefficient α is increased, so that it is possible to provide higher quality. If the number of coding bits is decreased, the number of coding bits is decreased, so that it is possible to realize decreased bits. Also, if the codebook size is set to a power of two, it is possible to use the search algorithm shown in FIG. 3 as is after changing only the initial value.


Also, according to the present invention, the division in equation 6 may be implemented in equation 4. In this case, conversion and inverse-conversion are as shown in following equations 15 and 16, respectively. Here, α̂ represents decoded coefficient α.





[15]





If PL<PR: XiS=(XiR−{circumflex over (α)}·XiR)/(1+{circumflex over (α)})





If PL≧PR: XiS=(XiR−{circumflex over (α)}·XiL)/(1+{circumflex over (α)})  (Equation 15)





[16]


If PL<PR: YiL={circumflex over (α)}·YiM+YiS





YiR=YiM−YiS





If PL≧PR: YiL=YiM−YiS






Y
i
R
={circumflex over (α)}·Y
i
M
+Y
i
S  (Equation 16)


Also, although two stereo signals are expressed by the names “left channel signal” and “right channel signal” in the above embodiments, it is equally possible to use more general names such as “first channel signal” and “second channel signal.


Also, although cases have been described with the above embodiments where encoded information is transmitted from the encoding side to the decoding side, the present invention is equally effective to a case where information encoded on the encoding side is stored in a storage medium. There are many cases where audio signals are accumulated and used in a memory or disk, and the present invention is equally effective to these cases.


Also, although cases have been described with the above embodiments where two channels are used, the number of channels is not limited, and the present invention is equally effective to a case where many channels (e.g. 5.1 channels) are used. In this case, if channels correlated to a fixed channel with time differences are clarified, the present invention is directly applicable to this case.


Also, although cases have been described with the above embodiments where a monaural signal and a side signal are encoded, the present invention is not limited to this, and is equally effective to a method using only a monaural signal. By using the present invention, it is possible to correct a phase difference and perform down-mix processing, so that it is possible to provide a monaural signal of high quality which is closer to an excitation.


Also, the above explanation is an example of the best mode for carrying out the present invention, and the scope of the present invention is not limited to this. The present invention is applicable to systems in any cases as long as these systems include a stereo signal converting apparatus and stereo signal inverse-converting apparatus.


Also, the stereo signal converting apparatus and stereo signal inverse-converting apparatus according to the present invention can be mounted on a communication terminal apparatus and base station apparatus in a mobile communication system, so that it is possible to provide a communication terminal apparatus, base station apparatus and mobile communication system having the same operational effects as above.


Although example cases have been described with the above embodiments where the present invention is implemented with hardware, the present invention can be implemented with software. For example, by describing the algorithm according to the present invention in a programming language, storing this program in a memory and running this program by an information processing section, it is possible to realize the same function as the present invention.


Furthermore, each function block employed in the description of each of the aforementioned embodiments may typically be implemented as an LSI constituted by an integrated circuit. These may be individual chips or partially or totally contained on a single chip.


“LSI” is adopted here but this may also be referred to as “IC,” “system LSI,” “super LSI,” or “ultra LSI” depending on differing extents of integration.


Further, the method of circuit integration is not limited to LSI's, and implementation using dedicated circuitry or general purpose processors is also possible. After LSI manufacture, utilization of an FPGA (Field Programmable Gate Array) or a reconfigurable processor where connections and settings of circuit cells in an LSI can be reconfigured is also possible.


Further, if integrated circuit technology comes out to replace LSI's as a result of the advancement of semiconductor technology or a derivative other technology, it is naturally also possible to carry out function block integration using this technology. Application of biotechnology is also possible.


The disclosures of Japanese Patent Application No. 2008-098736, filed on Apr. 4, 2008, and Japanese Patent Application No. 2008-284492, filed on Nov. 5, 2008, including the specifications, drawings and abstracts, are incorporated herein by reference in their entireties.


INDUSTRIAL APPLICABILITY

The stereo signal converting apparatus, stereo signal inverse-converting apparatus and converting and inverse-converting methods of the present invention are suitably used for mobile phones, IP (Internet Protocol) telephones and television conference, and so on.

Claims
  • 1. A stereo signal converting apparatus comprising: a correlation analyzing section that calculates a correlation value between a first channel signal and a second channel signal forming a stereo signal;a coefficient calculating section that calculates a first coefficient based on the correlation value;a coefficient encoding section that encodes the first coefficient and calculates a second coefficient based on resulting encoded data; anda sum and difference calculating section that generates a monaural signal related to a sum of the first channel signal and the second channel signal, and, using the second coefficient, generates a side signal related to a difference between the first channel signal and the second channel signal.
  • 2. The stereo signal converting apparatus according to claim 1, wherein the sum and difference calculating section generates the side signal by subtracting, from one of the first channel signal and the second channel signal, the other signal multiplied by the second coefficient.
  • 3. The stereo signal converting apparatus according to claim 2, wherein the sum and difference calculating section determines a signal that is multiplied by the second coefficient, based on a magnitude relationship between power of the first channel signal and power of the second channel signal.
  • 4. The stereo signal converting apparatus according to claim 1, wherein the sum and difference calculating section generates the side signal by subtracting, from the first channel signal, the second channel signal multiplied by one of the second coefficient and a reciprocal of the second coefficient.
  • 5. The stereo signal converting apparatus according to claim 4, wherein the sum and difference calculating section determines whether to use the second coefficient or the reciprocal of the second coefficient for multiplication, based on a magnitude relationship between power of the first channel signal and power of the second channel signal.
  • 6. The stereo signal converting apparatus according to claim 1, wherein the coefficient calculating section calculates the first coefficient used in a current signal conversion unit, based on power of the first channel signal, power of the second channel signal, the correlation value, power of the first channel signal or the second channel signal weighted by an element number for specifying an order of elements included in a signal conversion unit of a current signal conversion target, the correlation value weighted by the element number and the second coefficient calculated in a previous signal conversion unit.
  • 7. The stereo signal converting apparatus according to claim 6, wherein the signal conversion unit comprises a frame.
  • 8. An encoding apparatus comprising: the stereo signal converting apparatus according to claim 1;a first encoding section that encodes a monaural signal generated in the stereo signal converting apparatus;a second encoding section that encodes a side signal generated in the stereo signal converting apparatus; anda multiplexing section that multiplexes encoded data of the monaural signal, encoded data of the side signal and encoded data of the coefficients.
  • 9. A stereo signal inverse-converting apparatus comprising: a coefficient decoding section that decodes encoded data, which is acquired in a stereo signal converting apparatus by encoding a first coefficient calculated based on a correlation value between a first channel signal and a second channel signal forming a stereo signal, and calculates a second coefficient; anda reconstructed signal generating section that generates a reconstructed signal of the first channel signal and a reconstructed signal of the second channel signal using a monaural reconstructed signal, a side reconstructed signal and the second coefficient, the monaural reconstructed signal decoding encoded data of a monaural signal related to a sum of the first channel signal and the second channel signal, and the side reconstructed signal decoding encoded data of a side signal related to a difference between the first channel signal and the second channel signal.
  • 10. A decoding apparatus comprising: a first decoding section that decodes the encoded data of the monaural signal and generates the monaural reconstructed signal;a second decoding section that decodes the encoded data of the side signal and generates the side reconstructed signal; andthe stereo signal inverse-converting apparatus according to claim 9.
  • 11. A stereo signal converting method comprising: a correlation analyzing step of calculating a correlation value between a first channel signal and a second channel signal forming a stereo signal;a coefficient calculating step of calculating a first coefficient based on the correlation value;a coefficient encoding step of encoding the first coefficient and calculating a second coefficient based on resulting encoded data; anda sum and difference calculating step of generating a monaural signal related to a sum of the first channel signal and the second channel signal, and, using the second coefficient, generating a side signal related to a difference between the first channel signal and the second channel signal.
  • 12. A stereo signal inverse-converting method comprising: a coefficient decoding step of decoding encoded data, which is acquired in a stereo signal converting method by encoding a first coefficient calculated based on a correlation value between a first channel signal and a second channel signal forming a stereo signal, and calculating a second coefficient; anda reconstructed signal generating step of generating a reconstructed signal of the first channel signal and a reconstructed signal of the second channel signal using a monaural reconstructed signal, a side reconstructed signal and the second coefficient, the monaural reconstructed signal decoding encoded data of a monaural signal related to a sum of the first channel signal and the second channel signal, and the side reconstructed signal decoding encoded data of a side signal related to a difference between the first channel signal and the second channel signal.
Priority Claims (2)
Number Date Country Kind
2008-098736 Apr 2008 JP national
2008-284492 Nov 2008 JP national
PCT Information
Filing Document Filing Date Country Kind 371c Date
PCT/JP2009/001572 4/3/2009 WO 00 9/17/2010