Two-channel balance method and electronic device using the same
11540051 · 2022-12-27
Assignee
Inventors
Cpc classification
International classification
Abstract
A two-channel balance method and an electronic device using the same are 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.
Claims
1. A two-channel balance method with phase offset correction, comprising: adjusting a gain-frequency information of a two-channel signal; calculating a sampling delay information of the two-channel signal according to a distance information among a sound receiving unit, a left speaker unit and a right speaker unit; generating a forward test audio file or a surround test audio file according to the sampling delay information; estimating a phase offset information according to at least the forward test audio file or the surround test audio file; determining a phase offset direction information; and adjusting a phase information of the two-channel signal according to the phase offset information and the phase offset direction information.
2. The two-channel balance method with phase offset correction according to claim 1, wherein in the step of calculating the sampling delay information of the two-channel signal, the sound receiving unit and the left speaker unit are separated by a first distance, the sound receiving unit and the right speaker unit are separated by a second distance, and the sampling delay information is relevant to a difference between the first distance and the second distance.
3. The two-channel balance method with phase offset correction according to claim 1, wherein in the step of generating the forward test audio file or the surround test audio file, a forward sound pressure amplitude information of the forward test audio file or a surround sound pressure amplitude information of the surround test audio file is calculated.
4. The two-channel balance method with phase offset correction according to claim 1, wherein in the step of estimating the phase offset information, the phase offset information is estimated according to both of the forward test audio file and the surround test audio file.
5. The two-channel balance method with phase offset correction according to claim 1, wherein in the step of determining the phase offset direction information, a forward left offset test audio file, a surround left offset test audio file, a forward right offset test audio file and a surround right offset test audio file are played, and the phase offset direction information is determined according to a forward left offset sound pressure amplitude information of the forward left offset test audio file, a surround left offset sound pressure amplitude information of the surround left offset test audio file, a forward right offset sound pressure amplitude information of the forward right offset test audio file and a surround right offset sound pressure amplitude information of the surround right offset test audio file.
6. The two-channel balance method with phase offset correction according to claim 1, wherein the two-channel signal includes a left channel signal and a right channel signal identical to the left channel signal.
7. The two-channel balance method with phase offset correction according to claim 6, wherein in the step of adjusting the gain-frequency information of the two-channel signal, when only the left channel signal is played, a sound pressure amplitude of each frequency band is received; when only the right channel signal is played, the sound pressure amplitude of each frequency band is received.
8. The two-channel balance method with phase offset correction according to claim 7, wherein in the step of calculating the sampling delay information, a first distance is formed between the sound receiving unit and the left speaker unit, if a second distance between the between the sound receiving unit and the right speaker unit is greater than or equivalent to the first distance between the sound receiving unit and the left speaker unit, then a right channel sampling delay is 0 and a left channel sampling delay is expressed as: (d.sub.R−d.sub.L)×F.sub.S/c.sub.s, F.sub.s is a function of a sampling frequency, c.sub.s is a sound speed, d.sub.R is the second distance d.sub.R, and d.sub.L is the first distance.
9. The two-channel balance method with phase offset correction according to claim 8, wherein in the step of calculating the sampling delay information, if the second distance is smaller than the first distance, then the left channel sampling delay is 0, and the right channel sampling delay is expressed as: (d.sub.L−d.sub.R)×F.sub.S/c.sub.s.
10. An electronic device, comprising: a sound receiving unit; a left speaker unit; a right speaker unit; a gain-frequency adjustment unit configured to adjust a gain-frequency information of a two-channel signal; a delay calculation unit configured to calculate 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; an audio file generation unit configured to generate a forward test audio file or a surround test audio file according to the sampling delay information; a phase offset estimation unit configured to estimate a phase offset information according to at least the forward test audio file or the surround test audio file; a phase offset direction determination unit configured to determine a phase offset direction information; and a phase adjustment unit configured to adjust a phase information of the two-channel signal according to the phase offset information and the phase offset direction information.
11. The electronic device according to claim 10, wherein the sound receiving unit and the left speaker unit are separated by a first distance, the sound receiving unit and the right speaker unit are separated by a second distance, and the sampling delay information is relevant to a difference between the first distance and the second distance.
12. The electronic device according to claim 10, wherein the audio file generation unit further calculates a forward sound pressure amplitude information of the forward test audio file or a surround sound pressure amplitude information of the surround test audio file.
13. The electronic device according to claim 10, wherein the phase offset estimation unit estimates the phase offset information according to both of the forward test audio file and the surround test audio file.
14. The electronic device according to claim 10, wherein the phase offset direction determination unit plays a forward left offset test audio file, a surround left offset test audio file, a forward right offset test audio file and a surround right offset test audio file, and determines the phase offset direction information according to a forward left offset sound pressure amplitude information of the forward left offset test audio file, a surround left offset sound pressure amplitude information of the surround left offset test audio file, a forward right offset sound pressure amplitude information of the forward right offset test audio file and a surround right offset sound pressure amplitude information of the surround right offset test audio file.
15. The electronic device according to claim 10, wherein the two-channel signal includes a left channel signal and a right channel signal identical to the left channel signal.
16. The electronic device according to claim 15, wherein when only the left channel signal is played, the sound receiving unit receives a sound pressure amplitude of each frequency band; when only the right channel signal is played, the sound receiving unit receives the sound pressure amplitude of each frequency band.
17. The electronic device according to claim 16, wherein a first distance is formed between the sound receiving unit and the left speaker unit, if a second distance between the between the sound receiving unit and the right speaker unit is greater than or equivalent to the first distance between the sound receiving unit and the left speaker unit, then a right channel sampling delay is 0 and a left channel sampling delay is expressed as: (d.sub.R−d.sub.L)×F.sub.S/c.sub.s, F.sub.s is a function of a sampling frequency, c.sub.s is a sound speed, d.sub.R is the second distance d.sub.R, and d.sub.L is the first distance.
18. The electronic device according to claim 17, wherein if the second distance is smaller than the first distance, then the left channel sampling delay is 0, and the right channel sampling delay is expressed as: (d.sub.L−d.sub.R)×F.sub.S/c.sub.s.
19. An electronic device, comprising: a gain-frequency adjustment unit configured to adjust a gain-frequency information of a two-channel signal; a phase offset direction determination unit configured to determine a phase offset direction information; a phase adjustment unit configured to adjust a phase information of the two-channel signal according to a phase offset information and the phase offset direction information; a left speaker unit; and a right speaker unit, wherein the left speaker unit and the right speaker unit are configured to play the two-channel signal which is adjusted, wherein the phase offset direction determination unit plays a forward left offset test audio file, a surround left offset test audio file, a forward right offset test audio file and a surround right offset test audio file, and determines the phase offset direction information according to a forward left offset sound pressure amplitude information of the forward left offset test audio file, a surround left offset sound pressure amplitude information of the surround left offset test audio file, a forward right offset sound pressure amplitude information of the forward right offset test audio file and a surround right offset sound pressure amplitude information of the surround right offset test audio file.
20. The electronic device according to claim 19, wherein the two-channel signal includes a left channel signal and a right channel signal identical to the left channel signal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
DETAILED DESCRIPTION OF THE INVENTION
(6) Referring to
(7) Referring to
(8) 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.
(9) 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.
(10) 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.
(11) Referring to
(12) 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.
(13) Referring to
(14) Then, the method proceeds to step S420, the gain-frequency information of the left channel signal X.sub.L(n) and the right channel signal X.sub.R(f) (that is, the two-channel signal S90) are adjusted by the gain-frequency adjustment unit 140 to obtain a left channel signal x.sub.L.sup.EQ(n) and a right channel signal x.sub.R.sup.EQ(n) (that is, the two-channel signal S91). In the present step, when only the left channel signal x.sub.L.sup.EQ(n) is played, the sound receiving unit 110 receives a sound pressure amplitude P.sub.L.sup.EQ(f) of each frequency band; when only the right channel signal x.sub.R.sup.EQ(n) is played, the sound receiving unit 110 receives a sound pressure amplitude P.sub.R.sup.EQ(f) of each frequency band.
(15) Then, the method proceeds to step S430, as indicated in
(16) Then, the method proceeds to step S440, a left channel forward test audio file x.sub.L.sup.C(n)/a right channel forward test audio file x.sub.R.sup.C(n) (that is, the forward test audio file) or a left channel surround test audio file x.sub.L.sup.S(n)/a right channel surround test audio file x.sub.R.sup.S(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 n.sub.R.sup.d (that is, the sampling delay information).
(17) The left channel surround test audio file x.sub.L.sup.S(n) is expressed as: x.sub.L(n−n.sub.L.sup.d), and the right channel forward test audio file x.sub.R.sup.C(n) is expressed as: x.sub.R(n−n.sub.R.sup.d). When the left channel forward test audio file x.sub.L.sup.C(n) and the right channel forward test audio file x.sub.R.sup.C(n) are played, the sound receiving unit 110 receives a forward sound pressure amplitude P.sup.C(f). The left channel surround test audio file x.sub.L.sup.S(n) is identical to the left channel forward test audio file x.sub.L.sup.C(n), and the right channel surround test audio file x.sub.R.sup.S(n) is opposite to the right channel forward test audio file x.sub.R.sup.C(n). When the left channel surround test audio file x.sub.L.sup.S(n) and the right channel surround test audio file x.sub.R.sup.S(n) are played, the sound receiving unit 110 receives a surround sound pressure amplitude P.sup.S(f).
(18) Then, the method proceeds to step S450, a phase offset n.sub.φ(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 x.sub.L.sup.C(n)/the right channel forward test audio file x.sub.R.sup.C(n) (that is, the forward test audio file), or the left channel surround test audio file x.sub.L.sup.S(n)/the right channel surround test audio file x.sub.R.sup.S(n).
(19) Ideally, the phase offset is 0. When the left channel forward test audio file x.sub.L.sup.C(n)/the right channel forward test audio file x.sub.R.sup.C(n) are played, in theory the signal will overlap at the center point, and the sound pressure amplitude is equivalent to P.sub.L.sup.EQ(f) and P.sub.R.sup.EQ(f) obtained when the left channel signal x.sub.L.sup.EQ(n) and the right channel signal x.sub.R.sup.EQ(n) are played respectively. Therefore, the maximum value of the forward sound pressure amplitude P.sup.C(f) is the sum of the sound pressure amplitude P.sub.L.sup.EQ(f) and the sound pressure amplitude P.sub.R.sup.EQ(f). The closer to the ideal, the smaller the offset, and the larger the forward sound pressure amplitude P.sup.C(f). As indicated in
(20)
(21) The surround audio and the forward audio are opposite to each other. When the left channel surround test audio file x.sub.L.sup.S(n) and the right channel surround test audio file x.sub.R.sup.S(n) are played, in theory the signal at the center point will be neutralized, the sound pressure amplitude becomes 0, and the surround offset φ.sup.S(f) is defined as:
(22)
(23) The phase offset n.sub.φ(f) represented by sampling delay can be expressed as:
(24)
If the respective sound pressure amplitudes of the left channel signal x.sub.L.sup.EQ(n) and the right channel signal x.sub.R.sup.EQ(n) are not considered, then the phase offset n.sub.φ(f) can be expressed as:
(25)
(26) 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
(27) In the present step, the surround left offset signals include: the left channel surround left offset testing signal x.sub.L.sup.SφL(n) whose value is equivalent to x.sub.L.sup.CφL(n) and the right channel surround left offset testing signal x.sub.R.sup.SφL(n) whose value is the backward right channel forward left offset testing signal x.sub.R.sup.CφL(n). The surround left offset sound pressure amplitude P.sup.SφL(f) is obtained through measurement.
(28) In the present step, the forward right offset signals include: the left channel forward right offset testing signal x.sub.L.sup.CφR(n) whose value is left channel forward test audio file x.sub.L.sup.C(n) and the right channel forward right offset testing signal x.sub.R.sup.CφR(n) whose value is x.sub.R.sup.C(n−n.sub.φ(f)). The forward right offset sound pressure amplitude P.sup.CφR(f) is obtained through measurement.
(29) In the present step, the surround right offset signals include: the left channel surround right offset testing signal x.sub.L.sup.SφR(n) whose value is the left channel forward right offset testing signal x.sub.L.sup.CφR(n) and the right channel surround right offset testing signal x.sub.R.sup.SφR(n) whose value is the backward right channel surround right offset testing signal x.sub.R.sup.CφR(n). The surround right offset sound pressure amplitude P.sup.SφR(f) is obtained through measurement.
(30) Lastly, the ratio
(31)
of the surround left offset sound pressure amplitude to the forward left offset sound pressure amplitude is compared with the ratio
(32)
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.
(33) Then, the method proceeds to step S470, a phase information of the left channel signal x.sub.L.sup.EQ(n) and the right channel signal x.sub.R.sup.EQ(n) (that is, the two-channel signal S91) is adjusted by the phase adjustment unit 190 according to the phase offset n.sub.φ(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.sub.φ(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 x.sub.L.sup.EQ(n) and the right channel signal X.sub.R.sup.EQ(n) (that is, the two-channel signal S91) to obtain a new two-channel signal S92.
(34) 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.
(35) TABLE-US-00001 TABLE 1 30° to the left 0° 30° to the right Original pink noises 76.5 dB 79.4 dB 74.1 dB Corrected pink noises 76.0 dB 80.1 dB 77.0 dB
(36) 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.