This application claims the benefit of Taiwan application Serial No. 109114061, filed Apr. 27, 2020, the subject matter of which is incorporated herein by reference.
The invention relates in general to a two-channel balance method and an electronic device using the same, and more particularly to a two-channel balance method with phase offset correction and an electronic device using the same.
Although the sound holes of speaker units are symmetrically arranged on the two-channel electronic device, the left channel signal and the right channel signal still may produce different frequency responses due to the difference in the design of the speaker unit and the internal mechanism of the two-channel electronic device. Through gain-frequency adjustment, the two-channel can be balanced by an equalizer (EQ) and the signals received by the sound receivers will have similar intensities.
When the user is physically in front of the electronic device, the user still may perceive offset in the sound field. Therefore, based on actual situations, phase adjustment also needs to be performed in addition to gain-frequency adjustment. However, since the electric system of the electronic device is very complicated, and the use time of electronic elements generate different influence on the phase during the assembly of each electronic device, it is very difficult to assign fixed parameters to phase adjustment.
The present invention relates to a two-channel balance method and an electronic device capable of resolving sound field offset through phase offset correction.
According to one embodiment of the present invention, a two-channel balance method with phase offset correction is provided. The two-channel balance method includes the following steps. A gain-frequency information of a two-channel signal is adjusted. A sampling delay information of the two-channel signal is calculated according to a distance information among a sound receiving unit, a left speaker unit and a right speaker unit. A forward test audio file or a surround test audio file is generated according to the sampling delay information. A phase offset information is estimated according to at least the forward test audio file or the surround test audio file. A phase offset direction information is determined. A phase information of the two-channel signal is adjusted according to the phase offset information and the phase offset direction information.
According to another embodiment of the present invention, an electronic device is provided. The electronic device includes a sound receiving unit, a left speaker unit, a right speaker unit, a gain-frequency adjustment unit, a delay calculation unit, an audio file generation unit, a phase offset estimation unit, a phase offset direction determination unit and a phase adjustment unit. The gain-frequency adjustment unit adjusts a gain-frequency information of a two-channel signal. The delay calculation unit calculates a sampling delay information of the two-channel signal according to a distance information among the sound receiving unit, the left speaker unit and the right speaker unit. The audio file generation unit generates a forward test audio file or a surround test audio file according to the sampling delay information. The phase offset estimation unit estimates a phase offset information according to at least the forward test audio file or the surround test audio file. The phase offset direction determination unit determines a phase offset direction information. The phase adjustment unit adjusts a phase information of the two-channel signal according to the phase offset information and the phase offset direction information.
According to an alternate embodiment of the present invention, an electronic device is provided. The electronic device includes a gain-frequency adjustment unit, a phase adjustment unit, a left speaker unit and a right speaker unit. The gain-frequency adjustment unit adjust a gain-frequency information of a two-channel signal. The phase adjustment unit adjusts a phase information of the two-channel signal according to a phase offset information and a phase offset direction information. The left speaker unit and the right speaker unit are configured to play the two-channel signal which is adjusted.
The above and other aspects of the invention will become better understood with regard to the following detailed description of the preferred but non-limiting embodiment(s). The following description is made with reference to the accompanying drawings.
Referring to
Referring to
Next, the method proceeds to step S220, a gain-frequency information of the two-channel signal S0 is adjusted by a gain-frequency adjustment unit 140 to obtain a two-channel signal S1.
Then, the method proceeds to step S230, a phase information of the two-channel signal S1 is adjusted by the phase adjustment unit 190 to obtain a two-channel signal S2.
Then, the method proceeds to step S240, the two-channel signal S2 is played by the left speaker unit 120 and the right speaker unit 130. After gain-frequency adjustment and phase adjustment are performed, the user, when listening to the two-channel signal S2, will not perceive that signal intensities are inconsistent or perceive that the sound field is offset.
Referring to
In an embodiment, once one electronic device 100 is selected from the same batch for the analysis of phase adjustment parameters, there is no need to perform the analysis of phase adjustment parameters to the remaining electronic devices 100. Therefore, the electronic device 100 can dispense with the delay calculation unit 150, the audio file generation unit 160, the phase offset estimation unit 170 and the phase offset direction determination unit 180. Instead, the gain-frequency adjustment unit 140 directly performs the gain-frequency adjustment procedure, and the phase adjustment unit 190 subsequently performs the phase adjustment procedure. Detailed descriptions of the operation of each element disclosed above are disclosed below with accompanying flowcharts.
Referring to
Then, the method proceeds to step S420, the gain-frequency information of the left channel signal XL(n) and the right channel signal XR(f) (that is, the two-channel signal S90) are adjusted by the gain-frequency adjustment unit 140 to obtain a left channel signal xLEQ(n) and a right channel signal xREQ(n) (that is, the two-channel signal S91). In the present step, when only the left channel signal xLEQ(n) is played, the sound receiving unit 110 receives a sound pressure amplitude PLEQ(f) of each frequency band; when only the right channel signal xREQ(n) is played, the sound receiving unit 110 receives a sound pressure amplitude PREQ(f) of each frequency band.
Then, the method proceeds to step S430, as indicated in
Then, the method proceeds to step S440, a left channel forward test audio file xLC(n)/a right channel forward test audio file xRC(n) (that is, the forward test audio file) or a left channel surround test audio file xLS(n)/a right channel surround test audio file xRS(n) (that is, the surround test audio file) is generated by the audio file generation unit 160 according to the left channel sampling delay n and the right channel sampling delay nRd (that is, the sampling delay information).
The left channel surround test audio file xLS(n) is expressed as: xL(n−nLd), and the right channel forward test audio file xRC(n) is expressed as: xR(n−nRd). When the left channel forward test audio file xLC(n) and the right channel forward test audio file xRC(n) are played, the sound receiving unit 110 receives a forward sound pressure amplitude PC(f). The left channel surround test audio file xLS(n) is identical to the left channel forward test audio file xLC(n), and the right channel surround test audio file xRS(n) is opposite to the right channel forward test audio file xRC(n). When the left channel surround test audio file xLS(n) and the right channel surround test audio file xRS(n) are played, the sound receiving unit 110 receives a surround sound pressure amplitude PS(f).
Then, the method proceeds to step S450, a phase offset nφ(f) (the phase offset information) is estimated by the phase offset estimation unit 170 according to at least the left channel forward test audio file xLC(n)/the right channel forward test audio file xRC(n) (that is, the forward test audio file), or the left channel surround test audio file xLS(n)/the right channel surround test audio file xRS(n).
Ideally, the phase offset is 0. When the left channel forward test audio file xLC(n)/the right channel forward test audio file xRC(n) are played, in theory the signal will overlap at the center point, and the sound pressure amplitude is equivalent to PLEQ(f) and PREQ(f) obtained when the left channel signal xLEQ(n) and the right channel signal xREQ(n) are played respectively. Therefore, the maximum value of the forward sound pressure amplitude PC(f) is the sum of the sound pressure amplitude PLEQ(f) and the sound pressure amplitude PREQ(f). The closer to the ideal, the smaller the offset, and the larger the forward sound pressure amplitude PC(f). As indicated in
The surround audio and the forward audio are opposite to each other. When the left channel surround test audio file xLS(n) and the right channel surround test audio file xRS(n) are played, in theory the signal at the center point will be neutralized, the sound pressure amplitude becomes 0, and the surround offset φS(f) is defined as:
The phase offset nφ(f) represented by sampling delay can be expressed as:
If the respective sound pressure amplitudes of the left channel signal xLEQ(n) and the right channel signal xREQ(n) are not considered, then the phase offset nφ(f) can be expressed as:
Then, the method proceeds to step S460, a phase offset direction information is determined by the phase offset direction determination unit 180. As indicated in
In the present step, the surround left offset signals include: the left channel surround left offset testing signal xLSφL(n) whose value is equivalent to xLCφL(n) and the right channel surround left offset testing signal xRSφL(n) whose value is the backward right channel forward left offset testing signal xRCφL(n). The surround left offset sound pressure amplitude PSφL(f) is obtained through measurement.
In the present step, the forward right offset signals include: the left channel forward right offset testing signal xLCφR(n) whose value is left channel forward test audio file xLC(n) and the right channel forward right offset testing signal xRCφR(n) whose value is xRC(n−nφ(f)). The forward right offset sound pressure amplitude PCφR(f) is obtained through measurement.
In the present step, the surround right offset signals include: the left channel surround right offset testing signal xLSφR(n) whose value is the left channel forward right offset testing signal xLCφR(n) and the right channel surround right offset testing signal xRSφR(n) whose value is the backward right channel surround right offset testing signal xRCφR(n). The surround right offset sound pressure amplitude PSφR(f) is obtained through measurement.
Lastly, the ratio
of the surround left offset sound pressure amplitude to the forward left offset sound pressure amplitude is compared with the ratio
of the surround right offset sound pressure amplitude to the forward right offset sound pressure amplitude, and the side with the smaller ratio is selected as the offset direction Sf of the present frequency band.
Then, the method proceeds to step S470, a phase information of the left channel signal xLEQ(n) and the right channel signal xREQ(n) (that is, the two-channel signal S91) is adjusted by the phase adjustment unit 190 according to the phase offset nφ(f) and the offset direction Sf. In the present step, for each frequency band, a set of new filters corresponding to the left channel and the right channel is formed according to the phase offset nφ(f) and the selection of the phase offset direction Sf (the left offset or the right offset) and the previous gain-frequency adjustment, and the set of new filters is further provided to the left channel signal xLEQ(n) and the right channel signal XREQ(n) (that is, the two-channel signal S91) to obtain a new two-channel signal S92.
Refer to Table 1, which shows the experiment results of the energy distribution of the pink noises at the center point 0° and at 30° to both sides of the center point. The energy distribution of the pink noises is measured using A-weighting which is near to the perception of human ears. As indicated in Table 1, the volume of the original pink noises at the left is louder than that at the right by 2.4 dB, and after correction, the difference is reduced to 1 dB only.
While the invention has been described by way of example and in terms of the preferred embodiment(s), it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
109114061 | Apr 2020 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
5185801 | Meyer | Feb 1993 | A |
5537479 | Kreisel | Jul 1996 | A |
9119012 | Ikizyan | Aug 2015 | B2 |
10893363 | Choisel | Jan 2021 | B2 |
20040202332 | Murohashi et al. | Oct 2004 | A1 |
20060050896 | Sung | Mar 2006 | A1 |
20080019533 | Noguchi | Jan 2008 | A1 |
20080212786 | Park | Sep 2008 | A1 |
20090232318 | Ohta | Sep 2009 | A1 |
Number | Date | Country |
---|---|---|
101511047 | Aug 2009 | CN |
101529930 | Sep 2009 | CN |
102124672 | Jul 2011 | CN |
102792712 | Nov 2012 | CN |
Entry |
---|
Taiwanese Office Action and Search Report for Taiwanese Application No. 109114061, dated Jul. 7, 2021. |
Number | Date | Country | |
---|---|---|---|
20210337311 A1 | Oct 2021 | US |