Dual-channel balance method and electronic device applying same

文档序号:1820165 发布日期:2021-11-09 浏览:24次 中文

阅读说明:本技术 双声道平衡方法及应用其的电子装置 (Dual-channel balance method and electronic device applying same ) 是由 杜博仁 张嘉仁 曾凯盟 于 2020-05-08 设计创作,主要内容包括:一种双声道平衡方法及应用其的电子装置。双声道平衡方法包括以下步骤。对一双声道信号,调整一频率增益信息。依据一收音单元与一左扬声单元及一右扬声单元的一距离信息,计算双声道信号的一取样延迟信息。依据取样延迟信息,产生一正向测试音档或一环绕测试音档。至少依据正向测试音档或环绕测试音档,估计一相位偏移量信息。确认一相位偏移方向信息。依据相位偏移量信息及偏移方向信息,对双声道信号调整一相位信息。(A binaural balance method and an electronic device using the same are provided. The binaural balance method comprises the following steps. For a binaural signal, a frequency gain information is adjusted. According to a distance information between a radio unit and a left speaker unit and a right speaker unit, a sampling delay information of the binaural signal is calculated. According to the sampling delay information, a forward test audio file or a surround test audio file is generated. Estimating a phase offset information at least according to the forward test tone or the surround test tone. Confirming a phase shift direction information. And adjusting a phase information of the two-channel signal according to the phase offset information and the offset direction information.)

1. A method of binaural balancing for phase offset correction, comprising:

adjusting a frequency gain information for a binaural signal;

calculating sampling delay information of the binaural signal according to distance information of a radio unit, a left loudspeaker unit and a right loudspeaker unit;

generating a forward test audio file or a surround test audio file according to the sampling delay information;

estimating a phase offset information at least according to the forward test tone or the surround test tone;

confirming phase deviation direction information; and

adjusting a phase information of the binaural signal according to the phase offset information and the offset direction information.

2. The method of claim 1, wherein in the step of calculating the sampling delay information of the binaural signal, the sound pickup unit is located at a first distance from the left speaker unit, the sound pickup unit is located at a second distance from the right speaker unit, and the sampling delay information is related to a difference between the first distance and the second distance.

3. The method of claim 1, wherein during the step of generating the forward test audio file or the surround test audio file, a forward audio pressure amplitude information of the forward test audio file or a surround audio pressure amplitude information of the surround test audio file is further calculated.

4. The method of claim 1, wherein the step of estimating the phase offset information estimates the phase offset information based on both the forward test audio file and the surround test audio file.

5. The method as claimed in claim 1, wherein the step of determining the phase shift direction information comprises playing a forward left shift test tone, a surround left shift test tone, a forward right shift test tone and a surround left shift test tone, and determining the band shift direction information according to a forward left shift tone amplitude information of the forward left shift test tone, a surround left shift tone amplitude information of the surround left shift test tone, a forward right shift tone amplitude information of the forward right shift test tone and a surround right shift tone amplitude information of the surround left shift test tone.

6. An electronic device, comprising:

a radio unit;

a left speaker unit;

a right speaker unit;

a frequency gain adjusting unit for adjusting a frequency gain information for a binaural signal;

a delay calculating unit, which calculates a sampling delay information of the binaural signal according to a distance information between the sound receiving unit and the left speaker unit and the right speaker unit;

a sound file generating unit for generating a forward test sound file or a surround test sound file according to the sampling delay information;

a phase offset estimation unit for estimating a phase offset information at least according to the forward test tone or the surround test tone;

a phase shift direction confirmation unit for confirming a phase shift direction information; and

a phase adjusting unit for adjusting a phase information of the binaural signal according to the phase offset information and the offset direction information.

7. The electronic device of claim 6, wherein the sound receiving unit is located at a first distance from the left speaker unit, the sound receiving unit is located at a second distance from the right speaker unit, and the sampling delay information is related to a difference between the first distance and the second distance.

8. The electronic device of claim 6, wherein the audio file generating unit further calculates a forward audio pressure amplitude information of the forward test audio file or a surround audio pressure amplitude information of the surround test audio file.

9. The electronic device of claim 6, wherein the phase offset estimation unit estimates the phase offset information based on the forward test tone and the surround test tone simultaneously.

10. The electronic device as claimed in claim 6, wherein the deviation direction determining unit plays a forward left deviation test tone, a surround left deviation test tone, a forward right deviation test tone and a surround left deviation test tone, and determines the deviation direction information of each frequency band according to a forward left deviation tone pressure amplitude information of the forward left deviation test tone, a surround left deviation tone pressure amplitude information of a surround left deviation test tone, a forward right deviation tone pressure amplitude information of a forward right deviation test tone and a surround right deviation tone pressure amplitude information of a surround left deviation test tone.

11. An electronic device, comprising:

a frequency gain adjusting unit for adjusting a frequency gain information for a binaural signal;

a phase adjusting unit for adjusting a phase information of the binaural signal according to a phase offset information and an offset direction information;

a left speaker unit; and

and the left loudspeaking unit and the right loudspeaking unit are used for playing the adjusted two-channel signal.

[ technical field ] A method for producing a semiconductor device

The present invention relates to a binaural balance method and an electronic device using the same, and more particularly, to a binaural balance method for phase offset correction and an electronic device using the same.

[ background of the invention ]

In a dual-channel electronic device, although the sound outlet of the speaker is at two symmetrical ends in appearance, the frequency response of the left and right channel signals is inconsistent due to the difference between the single speaker and the internal design of the mechanism, and the strength of the signals received by the radio can be very close to each other by adjusting the dual-channel frequency gain (EQ).

However, when the user is actually positioned right in front of the electronic device, the sound field sensed by the user is still deviated. Therefore, it is necessary to adjust the phase in accordance with the actual situation, in addition to the frequency gain. However, the electrical system of the electronic device is quite complex, and the assembly process of each electronic device and the use time of the electronic components have different effects on the phase, so that it is difficult to directly provide fixed parameters for phase adjustment.

[ summary of the invention ]

The invention relates to a binaural balance method and an electronic device, which correct phase offset to improve sound field offset.

According to a first aspect of the present invention, a binaural balance method for phase offset correction is presented. The binaural balance method comprises the following steps. For a binaural signal, a frequency gain information is adjusted. According to a distance information between a radio unit and a left speaker unit and a right speaker unit, a sampling delay information of the binaural signal is calculated. According to the sampling delay information, a forward test audio file or a surround test audio file is generated. Estimating a phase offset information at least according to the forward test tone or the surround test tone. Confirming a phase shift direction information. And adjusting a phase information of the two-channel signal according to the phase offset information and the offset direction information.

According to a second aspect of the present invention, an electronic device is provided. The electronic device comprises a radio receiving unit, a left loudspeaker unit, a right loudspeaker unit, a frequency gain adjusting unit, a delay calculating unit, a sound file generating unit, a phase offset estimating unit, a phase offset direction confirming unit and a phase adjusting unit. The frequency gain adjusting unit adjusts frequency gain information for a binaural signal. The delay calculating unit calculates a sampling delay information of the binaural signal according to a distance information between the sound receiving unit and the left and right speaker units. The sound file generating unit generates a forward test sound file or a surround test sound file according to the sampling delay information. The phase offset estimation unit estimates phase offset information at least according to the forward test tone or the surround test tone. The phase shift direction confirming unit confirms phase shift direction information. The phase adjusting unit adjusts a phase information of the binaural signal according to the phase offset information and the offset direction information.

According to a third aspect of the present invention, an electronic device is provided. The electronic device comprises a frequency gain adjusting unit, a phase adjusting unit, a left loudspeaking unit and a right loudspeaking unit. The frequency gain adjusting unit adjusts frequency gain information for a binaural signal. The phase adjusting unit adjusts a phase information of the binaural signal according to a phase offset information and an offset direction information. The left speaker unit and the right speaker unit are used for playing the adjusted two-channel signal.

In order to better understand the above and other aspects of the present invention, the following detailed description of the embodiments is made with reference to the accompanying drawings:

[ description of the drawings ]

FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the invention;

FIG. 2 is a flow chart of a binaural balancing method according to an embodiment;

FIG. 3 is a block diagram of an electronic device according to an embodiment;

FIG. 4 is a flow chart of a binaural balancing method according to an embodiment; and

FIGS. 5 to 7 are flow charts illustrating the steps of FIG. 4.

[ notation ] to show

100 electronic device

110 radio receiving unit

120 left speaker unit

130 right speaker unit

140 frequency gain adjustment unit

150 delay calculating unit

160 sound stage generating unit

170 phase offset estimating unit

180 phase shift direction confirmation unit

190 phase adjustment unit

CsSpeed of sound

dLA first distance

dRThe second distance

FSSampling frequency

Left channel sample delay

Right channel sample delay

Amount of phase shift

S0, S1, S2 binaural Signal

S210, S220, S230, S240, S410, S420, S430, S440, S450, S460, S470, step

S90, S91, S92 binaural Signal

Sf deviation direction

Amplitude of sound pressure

PC(f) Positive sound pressure amplitude

PS(f) Amplitude of surround sound pressure

Positively left biased sound pressure amplitude

Surround left offset sound pressure amplitude

Positive to right offset sound pressure amplitude

Surround right offset sound pressure amplitude

xL(n),Left channel signal

Left sound track forward test sound file

Right channel forward test sound file

Left sound track surround test sound file

Right track surround test sound file

xR(n),Right channel signal

Left channel forward-to-left excursion test signal

Right channel forward left shift test signal

Left channel surround left offset test signal

Right track surround left biasMoving test signals

Left track right-to-right deviation test signal

Right channel forward right shift test signal

Left channel surround right offset test signal

Right channel surround right offset test signal

Forward offset

Amount of surround offset

[ detailed description ] embodiments

Referring to fig. 1, a schematic diagram of an electronic device 100 according to an embodiment of the invention is shown. The electronic device 100 is, for example, a notebook computer, a tablet computer, or a smart phone. The sound receiving unit 110 of the electronic device 100 is, for example, a microphone located above a screen, the left speaker unit 120 of the electronic device 100 is, for example, a speaker located on the left side of the body, and the right speaker unit 130 of the electronic device 100 is, for example, a speaker located on the right side of the body. After the two channels are balanced by frequency gain adjustment (EQ), the perceived sound field may still be shifted. The present embodiment further corrects the phase offset to improve the sound stage offset.

Referring to fig. 2, a flowchart of a binaural balancing method according to an embodiment is shown. In step S210, a binaural signal S0 is acquired. The binaural signal S0 is obtained, for example, by an optical disk drive, a hard disk drive, or a network download.

Next, in step S220, the frequency gain adjustment unit 140 adjusts frequency gain information of the binaural signal S0 to obtain the binaural signal S1.

Then, in step S230, the phase adjustment unit 190 adjusts a phase information to the binaural signal S1 to obtain the binaural signal S2.

Next, in step S240, the left speaker unit 120 and the right speaker unit 130 play the binaural signal S2. After the frequency gain adjustment and the phase adjustment, the user will not feel the signal strength inconsistency and the sound field offset when listening to the binaural signal S2.

Referring to fig. 3, a block diagram of the electronic device 100 according to an embodiment is shown. The electronic device 100 includes a sound receiving unit 110, a left speaker unit 120, a right speaker unit 130, a frequency gain adjusting unit 140, a delay calculating unit 150, a sound file generating unit 160, a phase offset estimating unit 170, a phase offset direction confirming unit 180, and a phase adjusting unit 190. The frequency gain adjustment unit 140 is used for performing a frequency gain adjustment procedure, and the phase adjustment unit 190 is used for performing a phase adjustment procedure. The frequency gain adjustment unit 140, the delay calculation unit 150, the sound stage generation unit 160, the phase offset estimation unit 170, the phase offset direction determination unit 180, and the phase adjustment unit 190 are, for example, a circuit, a chip, a circuit board, a program module, or a storage device storing program codes. The electronic device 100 analyzes appropriate phase adjustment parameters through the delay calculation unit 150, the sound stage generation unit 160, the phase shift amount estimation unit 170, and the phase shift direction confirmation unit 180, and then performs a phase shift procedure for each frequency band to improve the sound field shift.

In an embodiment, after one of the electronic devices 100 in the same batch is selected for analyzing the phase adjustment parameter, the other electronic devices 100 do not need to analyze the phase adjustment parameter again. Therefore, the electronic device 100 may directly perform the frequency gain adjustment procedure by the frequency gain adjustment unit 140 and then perform the phase adjustment procedure by the phase adjustment unit 190 without providing the delay calculation unit 150, the tone generation unit 160, the phase offset amount estimation unit 170, and the phase offset direction confirmation unit 180. The operation of the above elements is described in detail by the flow chart.

Referring to fig. 4 to 7, fig. 4 is a flowchart illustrating a binaural balance method according to an embodiment, and fig. 5 to 7 are flowcharts illustrating steps of fig. 4. In step S410, Pink noise (Pink noise) of the measured sound field is used to obtain the identical left channel signal xL(n) and a right channel signal xR(n) (i.e., the binaural signal S90).

Next, in step S420, the frequency gain adjustment unit 140 adjusts the left channel signal xL(n) and a right channel signal xR(n) (i.e., the binaural signal S90), adjusting the frequency gain information to obtain the left channel signalAnd right channel signal(i.e., the binaural signal S91). In this step, only the left channel signal is playedThe sound receiving unit 110 receives the sound pressure amplitude of each frequencyPlaying only right channel signalsThe sound receiving unit 110 receives the sound pressure amplitude of each frequency

Next, in step S430, as shown in fig. 5, the delay calculating unit 150 calculates the first distance d between the sound receiving unit 110 and the left speaker unit 120LAnd a second distance d of the right speaker unit 130R(i.e., distance information), the left channel sample delay of the two-channel signal S91 is calculatedAnd right channel sample delay(i.e., sample delay information). If the second distance dRIs greater than or equal to the first distance dLThen left channel sampling delayIs (d)R-dL)×FS/cs(which is the sampling frequency F)SSound velocity csA second distance dRA first distance dLEquation of (d), right channel sample delayIs 0. If the second distance dRIs less than the first distance dLThen left channel sampling delayIs 0, right channel sample delayIs (d)L-dR)×FS/cs

Then, in step S440, the sound stage generating unit 160 delays according to the left channel sampling delayAnd right channel sample delay(i.e., sampling delay information) to generate a left channel forward test tone fieldA right channel forward test sound bar(i.e., forward test soundtrack), or a left channel surround test soundtrackA right track surround test sound file(i.e., surround test soundtrack).

Left sound track forward direction test sound columnIs composed ofRight channel forward test sound barIs composed ofPlaying left track forward test sound barAnd right channel forward test sound barThe sound receiving unit 110 receives the positive sound pressure amplitude PC(f) In that respect Left track surround test sound barAnd left sound track forward test sound barSame, right track surround test sound filePositive test profile for negative right trackPlaying left track surround test sound fileSurround test sound file with right trackThe sound receiving unit 110 receives the surround sound pressure amplitude PS(f)。

Next, in step S450, the phase shift estimation unit 170 tests the sound file at least according to the left channel forward directionRight channel forward test sound file(i.e., forward test audio file), or left channel surround test audio fileRight track surround test sound fileEstimating a phase offset(phase offset information).

Assuming perfect conditions, the phase offset should be 0. Playing left track forward test audio fileRight channel forward test sound fileIn theory, the signals at the center point will overlap each other, as will the left channel signalAnd right channel signalAmplitude of sound pressure during respective playbackThus, the amplitude P of the positive sound pressureC(f) Maximum value of (2) is sound pressure amplitudeAmplitude of sound pressureA combination of (1) and (b). The closer to the ideal state, the smaller the offset amount, and the positive sound pressure amplitude PC(f) The larger will be. As shown in FIG. 6, we set the forward offsetIs composed of

The relation between surround and forward is just opposite, and a left sound track surround test sound file is playedSurround test sound file with right trackIn the time, theoretically, the signals at the center point will cancel each other out, and the sound pressure amplitude becomes zero, and the surround offset is setIs composed of

Phase offset expressed in sampling delayCan be written asIf the sound pressure amplitude of the two sound channels during respective playing is not considered, the phase shift amount isCan be expressed as

Then, in step S460, the phase shift direction confirmation unit 180 confirms a phase shift direction information. As shown in FIG. 7, there is the same sound pressure amplitude for this pattern regardless of whether the direction of the offset is left or right. The following positive left shift signal is used at this step: left channel forward-to-left excursion test signalHas a value ofRight channel forward left shift test signalPositive test sound bar with value equal to right trackMeasured to obtain the amplitude of the forward left-shifted sound pressure

The following surround left offset signal is used at this step: left channel surround left offset test signalA value equal to a forward left offset test firm for the left channelRight track surround left offset test signalPositive left-offset test signal for negative-going right channelMeasured to obtain the amplitude of the surround left offset sound pressure

The following forward right offset signal is further employed at this step: left track right-to-right deviation test signalPositive test sound bar with left trackRight channel forward right shift test signalHas a value ofMeasured to obtain the positive right deviation sound pressure amplitude

The following surround right offset signal is further used at this step: left channel surround right offset test signalTest signal with right-to-left channel offsetRight channel surround right offset test signalRight channel surround right offset test signal with negative valueMeasured to obtain the amplitude of the surround right offset sound pressure

Finally, the ratio of the surround/forward left offset sound pressure amplitude is comparedAnd surround/forward right-offset sound pressure amplitude ratioThe side with the smaller ratio is selected as the offset direction Sf of this band.

Next, in step S470, the phase adjustment unit 190 adjusts the phase according to the phase offsetAnd an offset direction Sf for the left channel signalAnd right channel signal(i.e., the binaural signal S91) adjusts a phase information. In this step, the phase shift amount is selected for each frequency bandCombining the result of the phase shift direction Sf (left shift or right shift) with the previous frequency gain adjustment, synthesizing a new set of filters corresponding to the left channel and the right channel, and providing the new filters for the left channel signalAnd right channel signal(i.e., the binaural signal S91) is used, resulting in a new binaural signal S92.

Referring to the following table one, according to the experimental results, the energy distribution of Pink noise (Pink noise) at the center point of 0 ° and at the two sides of 30 ° is measured by using a-Weighting (a-Weighting) close to the human ear perception, and compared with the change before and after the design, the original Pink noise has a 2.4dB greater volume at the left side than at the right side, and the left side and the right side have only a 1dB difference after the correction.

Watch 1

In summary, although the present invention has been described with reference to the above embodiments, the present invention is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, the protection scope of the present invention should be determined by the appended claims.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种方便悬挂的立体扬声装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!