TWI757763B - Electronic apparatus and sound field balancing method thereof for dual-channel - Google Patents

Electronic apparatus and sound field balancing method thereof for dual-channel Download PDF

Info

Publication number
TWI757763B
TWI757763B TW109119392A TW109119392A TWI757763B TW I757763 B TWI757763 B TW I757763B TW 109119392 A TW109119392 A TW 109119392A TW 109119392 A TW109119392 A TW 109119392A TW I757763 B TWI757763 B TW I757763B
Authority
TW
Taiwan
Prior art keywords
delay time
speakers
delay
ratio
electronic device
Prior art date
Application number
TW109119392A
Other languages
Chinese (zh)
Other versions
TW202147868A (en
Inventor
杜博仁
張嘉仁
曾凱盟
Original Assignee
宏碁股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宏碁股份有限公司 filed Critical 宏碁股份有限公司
Priority to TW109119392A priority Critical patent/TWI757763B/en
Publication of TW202147868A publication Critical patent/TW202147868A/en
Application granted granted Critical
Publication of TWI757763B publication Critical patent/TWI757763B/en

Links

Images

Landscapes

  • Stereophonic System (AREA)

Abstract

An electronic apparatus and a sound field balancing method thereof for dual-channel are provided. In the method, a first delay time between two speakers in the space is determined, a second delay time of two speakers inside the system is determined, and overall delay time is determined according to the first and second delay times. The first delay is related to the locations of the two speakers at the electronic apparatus. The second delay time is related to phase shifts of multiple frequency bands based on the reception of the outputs of the two speakers. The overall delay is used to correct the delay time of the output of the two speakers. Accordingly, the sound pressure of dual-channel can be balanced.

Description

電子裝置及其雙聲道音場平衡方法Electronic device and method for balancing two-channel sound field

本發明是有關於一種音場控制技術,且特別是有關於一種電子裝置及其雙聲道音場平衡方法。 The present invention relates to a sound field control technology, and in particular, to an electronic device and a method for balancing the two-channel sound field.

針對具有雙聲道的電子裝置(例如,筆記型電腦、一體機(All-in-One,AIO)電腦、或智慧型手機等),雖然其喇叭的出音孔在機體的對稱兩側,但因喇叭單體與機構內部設計的差異,使得左、右聲道訊號的頻率響應不一致。雖然可透過各自調整雙聲道等化(Equalization,EQ)的增益,使得麥克風接收到的訊號強度非常接近,但使用者實際位於電子裝置正前方所感受到的音場仍有偏移。此外,若僅針對各頻帶的相位偏移調整,則最終各頻帶的音壓差距的絕對值差距反而增加,且不利於後續的音效處理(例如,Dolby或DTS)。 For electronic devices with two channels (for example, notebook computers, All-in-One (AIO) computers, or smart phones, etc.), although the sound outlets of the speakers are on the symmetrical sides of the body, the Due to the difference between the speaker unit and the internal design of the mechanism, the frequency responses of the left and right channel signals are inconsistent. Although the two-channel equalization (EQ) gain can be adjusted individually so that the signal strengths received by the microphones are very close, the sound field that the user actually feels in front of the electronic device is still offset. In addition, if only the phase offset of each frequency band is adjusted, the absolute value difference of the sound pressure difference of each frequency band will increase instead, which is not conducive to subsequent sound effect processing (eg, Dolby or DTS).

有鑑於此,本發明提供一種電子裝置及其雙聲道音場平衡方法,基於空間及系統內部兩者的延遲時間得出適當的整體延遲時間,能讓雙聲道的訊號音壓達到較為平衡的狀態。 In view of this, the present invention provides an electronic device and a method for balancing the two-channel sound field, which can obtain an appropriate overall delay time based on the delay time of the space and the internal system, so that the sound pressure of the two-channel signal can be more balanced. status.

本發明實施例的雙聲道音場平衡方法適用於包括兩個揚聲器的電子裝置。雙聲道音場平衡方法包括(但不僅限於)下列步驟:決定兩揚聲器在空間上相差的第一延遲時間,決定兩揚聲器在電子裝置內部相差的第二延遲時間,並依據第一延遲時間及第二延遲時間決定整體延遲時間。第一延遲時間相關於兩揚聲器分別處於電子裝置的位置。第二延遲時間相關於對兩揚聲器收音所得出多個頻帶的相位偏移。整體延遲時間用於修正兩揚聲器播放聲音所相差的延遲時間。 The two-channel sound field balancing method according to the embodiment of the present invention is applicable to an electronic device including two speakers. The two-channel sound field balance method includes (but is not limited to) the following steps: determining the first delay time of the spatial difference between the two speakers, determining the second delay time of the two speakers in the electronic device, and determining the first delay time and The second delay time determines the overall delay time. The first delay time is related to the positions of the two speakers respectively in the electronic device. The second delay time is related to the phase shift of the plurality of frequency bands obtained by collecting the two speakers. The overall delay time is used to correct the difference between the delay time of the sound played by the two speakers.

本發明實施例的電子裝置包括(但不僅限於)兩揚聲器及處理器。處理器耦接兩揚聲器,並載入且執行數個模組。這些模組包括空間延遲估測模組、內部延遲估測模組及整體延遲估測模組。空間延遲估測模組決定兩揚聲器在空間上相差的第一延遲時間,內部延遲估測模組決定兩揚聲器在電子裝置內部相差的第二延遲時間,並整體延遲估測模組依據第一延遲時間及第二延遲時間決定整體延遲時間。第一延遲時間相關於兩揚聲器分別處於電子裝置的位置。第二延遲時間相關於對兩揚聲器收音所得出多個頻帶的相位偏移。整體延遲時間用於修正兩揚聲器播放聲音所相差的延遲時間。 The electronic device of the embodiment of the present invention includes (but is not limited to) two speakers and a processor. The processor is coupled to the two speakers, and loads and executes several modules. These modules include a spatial delay estimation module, an internal delay estimation module, and an overall delay estimation module. The spatial delay estimation module determines the first delay time of the spatial difference between the two speakers, the internal delay estimation module determines the second delay time of the two speakers within the electronic device, and the overall delay estimation module is based on the first delay The time and the second delay time determine the overall delay time. The first delay time is related to the positions of the two speakers respectively in the electronic device. The second delay time is related to the phase shift of the plurality of frequency bands obtained by collecting the two speakers. The overall delay time is used to correct the difference between the delay time of the sound played by the two speakers.

基於上述,本發明實施例的電子裝置及其雙聲道音場平 衡方法,整合兩揚聲器所在位置及聲音在系統內部的傳輸所造成的延遲時間,以作為兩揚聲器在此電子裝置發聲所相差的整體延遲時間。藉此,本發明實施例可降低後續音效處理的影響,縮小綜合音壓差距,且能維持雙聲道音壓差距絕對值在各頻帶/頻率之間的平均結果,並進一步降低標準差。 Based on the above, the electronic device and the two-channel sound field level of the embodiment of the present invention The balance method integrates the position of the two speakers and the delay time caused by the transmission of the sound in the system, as the overall delay time difference between the sound of the two speakers in the electronic device. In this way, the embodiment of the present invention can reduce the influence of subsequent sound effect processing, reduce the comprehensive sound pressure gap, maintain the average result of the absolute value of the binaural sound pressure gap between each frequency band/frequency, and further reduce the standard deviation.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 In order to make the above-mentioned features and advantages of the present invention more obvious and easy to understand, the following embodiments are given and described in detail with the accompanying drawings as follows.

100:電子裝置 100: Electronics

110、120:揚聲器 110, 120: Speaker

130:儲存器 130: Storage

131:空間延遲估測模組 131: Spatial Delay Estimation Module

133:內部延遲估測模組 133: Internal delay estimation module

135:整體延遲估測模組 135: Overall delay estimation module

140:收音器 140: Radio

150:處理器 150: Processor

S210~S250、S410~S450、S510~S570:步驟 S210~S250, S410~S450, S510~S570: Steps

xyz:軸 x , y , z : axes

(x L ,y L ,z L )、(x R ,y R ,z R )、(x C ,y C ,z C )、(x m ,y m ,z m ):座標 ( x L , y L , z L ), ( x R , y R , z R ), ( x C , y C , z C ), ( x m , y m , z m ): coordinates

PU:參考位置 PU: Reference position

PR:收音位置 PR: Radio position

PSR、PSL:位置 PSR, PSL: Location

n φ(f):初始相位延遲 n φ ( f ): initial phase delay

Figure 109119392-A0305-02-0017-63
:初始延遲時間
Figure 109119392-A0305-02-0017-63
: initial delay time

Figure 109119392-A0305-02-0017-64
:第二延遲時間
Figure 109119392-A0305-02-0017-64
: Second delay time

圖1是依據本發明一實施例的電子裝置的方塊圖。 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present invention.

圖2是依據本發明一實施例的雙聲道音場平衡方法的流程圖。 FIG. 2 is a flowchart of a method for balancing a two-channel sound field according to an embodiment of the present invention.

圖3是一範例說明位置關係。 FIG. 3 is an example illustrating the positional relationship.

圖4是依據本發明一實施例的決定系統內部相關延遲時間的流程圖。 FIG. 4 is a flow chart of determining the internal correlation delay time of the system according to an embodiment of the present invention.

圖5是依據本發明一實施例的決定比值最小值的流程圖。 FIG. 5 is a flowchart of determining the minimum value of the ratio according to an embodiment of the present invention.

圖1是依據本發明一實施例的電子裝置100的方塊圖。請參照圖1,電子裝置100可以是筆記型電腦、AIO電腦、手機、平板電腦、智慧型喇叭、或智慧型電視等裝置。電子裝置包括但不僅限於揚聲器110,120、儲存器130、收音器140及處理器150。 FIG. 1 is a block diagram of an electronic device 100 according to an embodiment of the present invention. Referring to FIG. 1 , the electronic device 100 may be a notebook computer, an AIO computer, a mobile phone, a tablet computer, a smart speaker, or a smart TV. The electronic device includes, but is not limited to, speakers 110 , 120 , storage 130 , radio 140 and processor 150 .

揚聲器110,120可以是喇叭或擴音器。在一實施例中, 揚聲器110,120分別對應到左、右兩聲道,以形成雙聲道揚聲器。 Speakers 110, 120 may be speakers or loudspeakers. In one embodiment, The speakers 110, 120 correspond to the left and right channels, respectively, to form a two-channel speaker.

儲存器130可以是任何型態的固定或可移動隨機存取記憶體(Radom Access Memory,RAM)、唯讀記憶體(Read Only Memory,ROM)、快閃記憶體(flash memory)、傳統硬碟(Hard Disk Drive,HDD)、固態硬碟(Solid-State Drive,SSD)或類似元件。在一實施例中,儲存器130用以記錄程式碼、軟體模組(例如,空間延遲估測模組131、內部延遲估測模組133及整體延遲估測模組135等)、聲音訊號、權重值、延遲時間、距離、位置偏移、相位偏移及其他資料或檔案,其詳細內容待後續實施例詳述。 The storage 130 may be any type of fixed or removable random access memory (RAM), read only memory (ROM), flash memory, conventional hard disks (Hard Disk Drive, HDD), Solid-State Drive (Solid-State Drive, SSD) or similar components. In one embodiment, the storage 130 is used to record code, software modules (eg, the spatial delay estimation module 131, the internal delay estimation module 133, the overall delay estimation module 135, etc.), audio signals, The weight value, delay time, distance, position offset, phase offset and other data or files will be described in detail in subsequent embodiments.

收音器140可以是動圈式(dynamic)、電容式(Condenser)、或駐極體電容(Electret Condenser)等類型的麥克風,收音器140也可以是其他可接收聲波(例如,人聲、環境聲、機器運作聲等)而轉換為聲音訊號的電子元件、類比至數位轉換器、濾波器、及音訊處理器之組合。 The microphone 140 may be a microphone of a dynamic type, a condenser type, or an electret condenser (Electret Condenser). A combination of electronic components, analog-to-digital converters, filters, and audio processors that convert them into sound signals.

處理器150耦接揚聲器110,120、儲存器130及收音器140,處理器150並可以是中央處理單元(Central Processing Unit,CPU),或是其他可程式化之一般用途或特殊用途的微處理器(Microprocessor)、數位信號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application-Specific Integrated Circuit,ASIC)或其他類似元件或上述元件的組合。在一實施例中,處理器150用以執行電子裝置100的所有或部份作業,且可載入並執行儲存器130所記錄的各軟體模組、檔案及資料。 The processor 150 is coupled to the speakers 110, 120, the storage 130 and the radio 140. The processor 150 may be a central processing unit (CPU), or other programmable general-purpose or special-purpose microprocessors ( Microprocessor), digital signal processor (Digital Signal Processor, DSP), programmable controller, application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC) or other similar components or a combination of the above components. In one embodiment, the processor 150 is used to execute all or part of the operations of the electronic device 100 , and can load and execute various software modules, files and data recorded in the storage 130 .

下文中,將搭配電子裝置100中的各項裝置、元件及模組說明本發明實施例所述之方法。本方法的各個流程可依照實施情形而隨之調整,且並不僅限於此。 Hereinafter, the method according to the embodiment of the present invention will be described in conjunction with various devices, components and modules in the electronic device 100 . Each process of the method can be adjusted according to the implementation situation, and is not limited to this.

圖2是依據本發明一實施例的雙聲道音場平衡方法的流程圖。請參照圖2,空間延遲估測模組131決定兩揚聲器110,120在空間上相差的第一延遲時間(步驟S210)。具體而言,第一延遲時間相關於揚聲器110,120分別處於電子裝置100的位置所造成的延遲時間。若雙聲道的揚聲器110,120的位置並非完全左右對稱於電子裝置100的機體,其音場不平衡現象可透過時間延遲來修正。 FIG. 2 is a flowchart of a method for balancing a two-channel sound field according to an embodiment of the present invention. Referring to FIG. 2 , the spatial delay estimation module 131 determines the first delay time of the spatial difference between the two speakers 110 , 120 (step S210 ). Specifically, the first delay time is related to the delay time caused by the positions of the speakers 110 and 120 respectively in the electronic device 100 . If the positions of the two-channel speakers 110 and 120 are not completely symmetrical to the body of the electronic device 100 , the unbalanced sound field can be corrected by time delay.

在一實施例中,空間延遲估測模組131決定兩揚聲器110,120與參考位置的位置偏移。此參考位置相關於使用者的聆聽位置,且假設使用者頭部對應到電子裝置100機體的中央。 In one embodiment, the spatial delay estimation module 131 determines the position offset of the two speakers 110 , 120 from the reference position. The reference position is related to the listening position of the user, and it is assumed that the user's head corresponds to the center of the body of the electronic device 100 .

圖3是一範例說明位置關係。請參照圖3,假設電子裝置100所處空間形成三正交軸xyz的坐標系,揚聲器110的位置PSL的座標為(x L ,y L ,z L ),揚聲器120的位置PSR的座標為(x R ,y R ,z R ),且預估使用者頭部所在的參考位置PU的座標為(x C ,y C ,z C )(即,使用者的聆聽位置,或稱為中心點)。 FIG. 3 is an example illustrating the positional relationship. Please refer to FIG. 3 , assuming that the space where the electronic device 100 is located forms a coordinate system with three orthogonal axes x , y , and z , the coordinates of the position PSL of the speaker 110 are ( x L , y L , z L ), the position PSR of the speaker 120 The coordinates of ( x R , y R , z R ), and the coordinates of the estimated reference position PU where the user’s head is located are ( x C , y C , z C ) (that is, the user’s listening position, or the center point).

在一實施例中,空間延遲估測模組131分別決定各揚聲器110,120在此空間對應坐標系的三軸xyz上與參考位置PU的相對距離,並依據這兩揚聲器110,120在三軸xyz上與參考位置PU的相對距離之間的距離差之總和決定位置偏移。以x軸為 例,揚聲器110與參考位置PU的相對距離為

Figure 109119392-A0305-02-0008-1
,以此類推其他軸yz及揚聲器120,以得出揚聲器110在y軸上與參考位置PU的相對距離為
Figure 109119392-A0305-02-0008-2
、揚聲器110在z軸上與參考位置PU的相對距離為
Figure 109119392-A0305-02-0008-3
、揚聲器120在x軸上與參考位置PU的相對距離為
Figure 109119392-A0305-02-0008-4
、揚聲器120在y軸上與參考位置PU的相對距離為
Figure 109119392-A0305-02-0008-5
及揚聲器120在z軸上與參考位置PU的相對距離為
Figure 109119392-A0305-02-0008-6
。接著,空間延遲估測模組131將兩揚聲器110,120在三軸xyz上與參考位置PU的相對距離的差異加總,並據以決定雙聲道揚聲器110,120所處位置的位置偏移D C ,其數學式表示如下:
Figure 109119392-A0305-02-0008-7
In one embodiment, the spatial delay estimation module 131 respectively determines the relative distances between the speakers 110 and 120 on the three axes x , y and z of the spatially corresponding coordinate system and the reference position PU, and according to the three axes of the speakers 110 and 120 The sum of the distance differences between the relative distances at x , y , z from the reference position PU determines the position offset. Taking the x -axis as an example, the relative distance between the speaker 110 and the reference position PU is
Figure 109119392-A0305-02-0008-1
, and so on for other axes y , z and the speaker 120, to obtain the relative distance between the speaker 110 and the reference position PU on the y -axis as
Figure 109119392-A0305-02-0008-2
, the relative distance between the speaker 110 and the reference position PU on the z -axis is
Figure 109119392-A0305-02-0008-3
, the relative distance between the speaker 120 and the reference position PU on the x -axis is
Figure 109119392-A0305-02-0008-4
, the relative distance between the speaker 120 and the reference position PU on the y -axis is
Figure 109119392-A0305-02-0008-5
And the relative distance between the speaker 120 and the reference position PU on the z -axis is
Figure 109119392-A0305-02-0008-6
. Next, the spatial delay estimation module 131 sums up the differences in the relative distances between the two speakers 110 , 120 on the three axes x , y , and z and the reference position PU, and determines the position offset of the positions of the two-channel speakers 110 , 120 accordingly. D C , its mathematical expression is as follows:
Figure 109119392-A0305-02-0008-7

此外,空間延遲估測模組131可依據位置偏移D C 決定時間取樣點的偏移,即第一時間延遲,且其數學式表示如下:

Figure 109119392-A0305-02-0008-8
,其中
Figure 109119392-A0305-02-0008-9
為第一時間延遲(即,揚聲器110,120在空間中的所處位置所造成的時間延遲)(單位為取樣點數),F S 為取樣頻率,且C S 為聲音速度。若第一時間延遲的數值為-X,則代表揚聲器110延遲X個取樣點;若第一時間延遲的數值為+X,則代表揚聲器120延遲X個取樣點。 In addition, the spatial delay estimation module 131 can determine the offset of the time sampling point according to the position offset DC , that is, the first time delay, and its mathematical formula is expressed as follows:
Figure 109119392-A0305-02-0008-8
,in
Figure 109119392-A0305-02-0008-9
is the first time delay (ie, the time delay caused by the positions of the speakers 110, 120 in space) (unit is the number of sampling points), F S is the sampling frequency, and C S is the speed of sound. If the value of the first time delay is -X, it means that the speaker 110 is delayed by X sampling points; if the value of the first time delay is +X, it means that the speaker 120 is delayed by X sampling points.

請返回圖2,內部延遲估測模組133決定兩揚聲器110,120在電子裝置100內部相差的第二延遲時間(步驟S230)。具體而言,聲音訊號經揚聲器110,120播放之前,可能經過一個或更多個電路(例如,DSP、或編解碼器等)傳遞或受電子裝置100的機構 設計(統稱非空間外觀因素)影響,進而造成兩揚聲器110,120所播放訊號之間形成延遲時間。而在本發明實施例中,第二延遲時間相關於透過收音器140對兩揚聲器110,120收音所得出多個頻帶的相位偏移。 Returning to FIG. 2 , the internal delay estimation module 133 determines the second delay time difference between the two speakers 110 , 120 inside the electronic device 100 (step S230 ). Specifically, before the sound signal is played by the speakers 110 and 120 , it may be transmitted or received by the mechanism of the electronic device 100 through one or more circuits (eg, DSP, or codec, etc.). The design (collectively referred to as the non-spatial appearance factor) affects the delay time between the signals played by the two speakers 110 , 120 . In the embodiment of the present invention, the second delay time is related to the phase shifts of multiple frequency bands obtained by collecting sound from the two speakers 110 and 120 through the microphone 140 .

為了得出系統內部造成的影響,內部延遲估測模組133需先得知揚聲器110,120與收音器140的相對位置所造成的時間偏移。在一實施例中,內部延遲估測模組133決定兩揚聲器110,120在空間上對應於收音器140相差的第三延遲時間。與第一延遲時間的實施例相似,但本實施例將參考位置(對應到使用者的聆聽位置)變更為收音器140的所處位置。 In order to obtain the influence caused by the system, the internal delay estimation module 133 needs to know the time offset caused by the relative positions of the speakers 110 , 120 and the receiver 140 first. In one embodiment, the internal delay estimation module 133 determines a third delay time between the two speakers 110 , 120 spatially corresponding to the difference between the receiver 140 . Similar to the embodiment of the first delay time, but this embodiment changes the reference position (corresponding to the listening position of the user) to the position of the microphone 140 .

以圖3為例,收音器140的收音位置PR的座標為(x m ,y m ,z m ),則雙聲道揚聲器110,120和收音器140在空間上所造成的位置偏移D m 的數學表示式為:

Figure 109119392-A0305-02-0009-11
,其中
Figure 109119392-A0305-02-0009-13
Figure 109119392-A0305-02-0009-14
Figure 109119392-A0305-02-0009-15
分別是揚聲器110在xy、z軸上與收音位置PR的相對距離,且
Figure 109119392-A0305-02-0009-16
Figure 109119392-A0305-02-0009-17
Figure 109119392-A0305-02-0009-18
分別是揚聲器120在xy、z軸上與收音位置PR的相對距離。即,位置偏移D m 是,兩揚聲器110,120在三軸xyz上與收音位置PR的相對距離之間的距離差之總和。此外,時間偏移
Figure 109119392-A0305-02-0009-12
(即,第三延遲時間)的數學表示式為:
Figure 109119392-A0305-02-0009-10
Taking FIG. 3 as an example, the coordinates of the sound-receiving position PR of the microphone 140 are ( x m , y m , z m ), then the mathematics of the positional offset D m caused by the two-channel speakers 110 , 120 and the microphone 140 in space The expression is:
Figure 109119392-A0305-02-0009-11
,in
Figure 109119392-A0305-02-0009-13
,
Figure 109119392-A0305-02-0009-14
,
Figure 109119392-A0305-02-0009-15
are the relative distances between the speaker 110 and the sound collection position PR on the x , y, and z axes, respectively, and
Figure 109119392-A0305-02-0009-16
,
Figure 109119392-A0305-02-0009-17
,
Figure 109119392-A0305-02-0009-18
are the relative distances between the speaker 120 and the sound collection position PR on the x , y, and z axes, respectively. That is, the position shift D m is the sum of the distance differences between the relative distances of the two speakers 110 , 120 and the sound collection position PR on the three axes x , y , and z . In addition, time offset
Figure 109119392-A0305-02-0009-12
(ie, the third delay time) is mathematically expressed as:
Figure 109119392-A0305-02-0009-10

內部延遲估測模組133可依據此第三延遲時間校正兩聲道的延遲時間,並進行後續相位偏移的調整作業。圖4是依據本 發明一實施例的決定系統內部相關延遲時間的流程圖。請參照圖4,內部延遲估測模組133決定各頻帶的初始相位偏移(步驟S410)。在一實施例中,內部延遲估測模組133依據第三延遲時間並透過兩揚聲器110,120播放兩測試訊號。測試訊號採用一般量測聲場的粉紅雜訊(Pink noise)(但也可能是白雜訊(white noise)或其他聲音訊號),且兩測試訊號分別受指定正向方向及環繞音效。 The internal delay estimation module 133 can correct the delay time of the two channels according to the third delay time, and perform subsequent phase offset adjustment operations. Figure 4 is based on this A flow chart of determining the internal correlation delay time of the system according to an embodiment of the invention. Referring to FIG. 4 , the internal delay estimation module 133 determines the initial phase offset of each frequency band (step S410 ). In one embodiment, the internal delay estimation module 133 plays the two test signals through the two speakers 110 and 120 according to the third delay time. The test signal adopts the pink noise of the general measurement sound field (but may also be white noise or other sound signals), and the two test signals are respectively subject to the specified forward direction and surround sound.

原來分別透過揚聲器110,120播放的雙聲道訊號x L (n),x R (n)相同(即,x L (n)=x R (n)),而雙聲道訊號x L (n),x R (n)經過EQ增益修正後,左、右聲道的測試訊號變為

Figure 109119392-A0305-02-0010-19
(n)和
Figure 109119392-A0305-02-0010-20
(n)。若僅透過揚聲器110播放左聲道訊號,則收音器140所接收到的各頻率的音壓振幅為
Figure 109119392-A0305-02-0010-21
(f),其中f為頻率並代表某一頻帶的中心頻率。而若僅透過揚聲器120播放右聲道訊號,則收音器140所接收到的各頻率的音壓振幅為
Figure 109119392-A0305-02-0010-22
(f)。 The two-channel signals x L ( n ), x R ( n ) played through the speakers 110 and 120 respectively are the same (ie, x L ( n ) = x R ( n )), and the two-channel signals x L ( n ), After x R ( n ) is corrected by the EQ gain, the left and right channel test signals become
Figure 109119392-A0305-02-0010-19
( n ) and
Figure 109119392-A0305-02-0010-20
( n ). If only the left channel signal is played through the speaker 110, the sound pressure amplitude of each frequency received by the radio 140 is
Figure 109119392-A0305-02-0010-21
( f ), where f is the frequency and represents the center frequency of a certain frequency band. And if only the right channel signal is played through the speaker 120, the sound pressure amplitude of each frequency received by the radio 140 is
Figure 109119392-A0305-02-0010-22
( f ).

內部延遲估測模組133可依據第三延遲訊號來修正測試訊號。假設第三延遲時間(即,時間偏移

Figure 109119392-A0305-02-0010-23
)為負值,則正向方向的測試訊號
Figure 109119392-A0305-02-0010-24
(n)(對應到左聲道),
Figure 109119392-A0305-02-0010-25
(n)(對應到右聲道)為
Figure 109119392-A0305-02-0010-26
x R (n)。若第三延遲時間為正值,則正向方向的測試訊號
Figure 109119392-A0305-02-0010-31
(n),
Figure 109119392-A0305-02-0010-32
(n)為x L (n)及
Figure 109119392-A0305-02-0010-27
。此外,環繞音效的測試訊號
Figure 109119392-A0305-02-0010-33
(n)(對應到左聲道),
Figure 109119392-A0305-02-0010-28
(n)(對應到右聲道)為
Figure 109119392-A0305-02-0010-29
(n)及-
Figure 109119392-A0305-02-0010-30
(n)。另一方面,假設揚聲器110,120播放正向方向的測試訊號,則收音器140所接收到的各頻率音壓振幅為P C (f)。假設揚聲器110,120播放環繞音效的測試訊號,則收音器140所接收到的各頻率音壓振幅為P S (f)。 The internal delay estimation module 133 can modify the test signal according to the third delay signal. Assuming a third delay time (ie, time offset
Figure 109119392-A0305-02-0010-23
) is a negative value, the test signal in the positive direction
Figure 109119392-A0305-02-0010-24
( n ) (corresponding to the left channel),
Figure 109119392-A0305-02-0010-25
( n ) (corresponding to the right channel) is
Figure 109119392-A0305-02-0010-26
and xR ( n ). If the third delay time is positive, the test signal in the forward direction
Figure 109119392-A0305-02-0010-31
( n ),
Figure 109119392-A0305-02-0010-32
( n ) is x L ( n ) and
Figure 109119392-A0305-02-0010-27
. In addition, the test signal for surround sound
Figure 109119392-A0305-02-0010-33
( n ) (corresponding to the left channel),
Figure 109119392-A0305-02-0010-28
( n ) (corresponding to the right channel) is
Figure 109119392-A0305-02-0010-29
( n ) and -
Figure 109119392-A0305-02-0010-30
( n ). On the other hand, if the speakers 110 and 120 play the test signal in the forward direction, the sound pressure amplitude of each frequency received by the receiver 140 is P C ( f ). Assuming that the speakers 110 and 120 play the test signal of surround sound, the sound pressure amplitude of each frequency received by the receiver 140 is P S ( f ).

內部延遲估測模組133對依據第三延遲時間所播放的兩測試訊號(即,經校正的測試訊號)收音以決定那些頻帶的初始相位偏移。具體而言,假設完全理想的狀況是相位偏移φ(f)為零,當播放正向方向的測試訊號時,理論上雙聲道訊號會在中心點(如圖3的參考位置PU)相互疊加,如同雙聲道各自播放時的音壓振幅相加

Figure 109119392-A0305-02-0011-34
(f)+
Figure 109119392-A0305-02-0011-35
(f)。因此,正向方向對應的音壓振幅P C (f)的最大值為
Figure 109119392-A0305-02-0011-36
(f)+
Figure 109119392-A0305-02-0011-37
(f)並越接近理想狀態。而相位偏移φ(f)越小,則音壓振幅P C (f)會越大。因此,正向方向的相位偏移φ C (f)的數學表示式為:
Figure 109119392-A0305-02-0011-38
,即正向方向的相位偏移為直角三角形的鄰邊與斜邊之間的夾角,且假設音壓振福最大值作為此夾角的斜邊,某一頻率的音壓振福作為此夾角的鄰邊。 The internal delay estimation module 133 picks up the two test signals (ie, the corrected test signals) played according to the third delay time to determine the initial phase offset of those frequency bands. Specifically, assuming a completely ideal situation where the phase offset φ( f ) is zero, when the test signal in the forward direction is played, theoretically the two-channel signals will be mutually at the center point (the reference position PU in Figure 3). Superposition, as if the sound pressure amplitudes of the two channels are added together
Figure 109119392-A0305-02-0011-34
( f )+
Figure 109119392-A0305-02-0011-35
( f ). Therefore, the maximum value of the sound pressure amplitude P C ( f ) corresponding to the forward direction is
Figure 109119392-A0305-02-0011-36
( f )+
Figure 109119392-A0305-02-0011-37
( f ) and the closer it gets to the ideal state. And the smaller the phase offset φ( f ) is, the larger the sound pressure amplitude P C ( f ) will be. Therefore, the mathematical expression for the phase shift φ C ( f ) in the forward direction is:
Figure 109119392-A0305-02-0011-38
, that is, the phase shift in the forward direction is the angle between the adjacent side and the hypotenuse of the right triangle, and the maximum value of the sound pressure vibration is assumed as the hypotenuse of this angle, and the sound pressure vibration at a certain frequency is used as the angle. adjacent.

環繞音效與正向方向的關係正好相反,播放環繞音效的測試訊號時,理論上雙聲道訊號在中心點會相互抵消,則音壓振幅變為零。因此,環繞音效的相位偏移φ S (f)為:

Figure 109119392-A0305-02-0011-39
,即環繞音效的相位偏移為直角三角形的鄰邊與斜邊之間的夾角,且假設音壓振福最大值作為此夾角的斜邊,某一頻率的音壓振福作為此夾角的對邊。 The relationship between the surround sound and the forward direction is just the opposite. When playing the test signal of the surround sound, theoretically, the two-channel signals will cancel each other at the center point, and the sound pressure amplitude will become zero. Therefore, the phase offset φ S ( f ) of the surround sound is:
Figure 109119392-A0305-02-0011-39
, that is, the phase offset of the surround sound is the angle between the adjacent side and the hypotenuse of the right triangle, and it is assumed that the maximum value of the sound pressure vibration is the hypotenuse of this angle, and the sound pressure vibration of a certain frequency is used as the pair of this angle. side.

內部延遲模組133可依據正向方向及環繞音效對應的相位偏移決定各頻帶的初始相位延遲n φ(f),其數學表示式為:

Figure 109119392-A0305-02-0012-40
若不考慮雙聲道各自播放時的音壓振幅,則各頻帶相位偏移量可表達為
Figure 109119392-A0305-02-0012-41
The internal delay module 133 can determine the initial phase delay n φ ( f ) of each frequency band according to the forward direction and the phase offset corresponding to the surround sound effect, and its mathematical expression is:
Figure 109119392-A0305-02-0012-40
If the sound pressure amplitude of the two-channel playback is not considered, the phase offset of each frequency band can be expressed as
Figure 109119392-A0305-02-0012-41

接著,內部延遲估測模組133依據那些頻帶的初始相位偏移對應的權重決定初始延遲時間(步驟S430)。具體而言,那些頻帶的初始相位偏移對應的權重相關於人類聽覺特性。由於人類聽覺對不同頻率的敏感度不同(例如,2000赫茲(Hz)到4000Hz最高,其餘依不同比例衰減),因此內部延遲估測模組133給予各頻帶的相位偏移不同權重w(f),且讓此電子裝置100輸出功率P(f)較高的頻帶所對應到的相位偏移也能獲得較多比重。即,輸出功率越高,權重越高;輸出功率越低,權重越低。據此,初始延遲時間的數學表示式為:

Figure 109119392-A0305-02-0012-42
。由此可知,相較於個別調整不同頻帶的相位偏移,本發明實施例是對這些頻帶採用加權平均,以縮小綜合音壓差距。 Next, the internal delay estimation module 133 determines the initial delay time according to the weights corresponding to the initial phase offsets of those frequency bands (step S430 ). Specifically, the weights corresponding to the initial phase offsets of those frequency bands are related to human auditory characteristics. Since human hearing has different sensitivities to different frequencies (for example, 2000 Hz to 4000 Hz is the highest, and the rest are attenuated in different proportions), the internal delay estimation module 133 assigns different weights w ( f ) to the phase offsets of each frequency band , and the phase offset corresponding to the frequency band with the higher output power P ( f ) of the electronic device 100 can also obtain a larger proportion. That is, the higher the output power, the higher the weight; the lower the output power, the lower the weight. Accordingly, the mathematical expression of the initial delay time is:
Figure 109119392-A0305-02-0012-42
. It can be seen from this that, compared to individually adjusting the phase offsets of different frequency bands, the embodiment of the present invention adopts a weighted average for these frequency bands to narrow the comprehensive sound pressure gap.

接著,內部延遲估測模組133可依據功率狀態的偏移判斷第二延遲時間。在一實施例中,內部延遲估測模組133分別透過收音器140對兩測試訊號收音並分別取得兩測試訊號對應的接收功率。在一些實施例中,這些接收功率可經A加權(A-weighting)、感知噪音位準(Perceived Noise Level)、或加權等價連續感知噪音位準(Weighted Equivalent continuous Perceived Noise Level)等函數對各頻率賦予對應權重。 Next, the internal delay estimation module 133 can determine the second delay time according to the deviation of the power state. In one embodiment, the internal delay estimation module 133 respectively picks up the two test signals through the microphone 140 and obtains the received power corresponding to the two test signals respectively. In some embodiments, these received powers may be adjusted to each by A-weighting, Perceived Noise Level, or Weighted Equivalent continuous Perceived Noise Level. The frequencies are given corresponding weights.

內部延遲估測模組133可依據兩測試訊號對應的接收功率的比值決定第二延遲時間。在一實施例中,此(功率)比值是將正向方向的測試訊號對應的接收功率作為分母且環繞音效的測試訊號對應的接收功率作為分子,且其數學表示式如下:

Figure 109119392-A0305-02-0013-43
,其中
Figure 109119392-A0305-02-0013-45
為接收功率的比值,
Figure 109119392-A0305-02-0013-44
為正向方向對應的接收功率,
Figure 109119392-A0305-02-0013-46
為環繞音效對應的接收功率,且
Figure 109119392-A0305-02-0013-47
為延遲時間。值得注意的是,比值
Figure 109119392-A0305-02-0013-49
越小,其所對應到的延遲時間
Figure 109119392-A0305-02-0013-48
越接近雙聲道平衡狀態。由此可知,第二延遲時間與比值最小值相關。 The internal delay estimation module 133 can determine the second delay time according to the ratio of the received power corresponding to the two test signals. In one embodiment, the (power) ratio takes the received power corresponding to the test signal in the forward direction as the denominator and the received power corresponding to the surround sound test signal as the numerator, and its mathematical expression is as follows:
Figure 109119392-A0305-02-0013-43
,in
Figure 109119392-A0305-02-0013-45
is the ratio of the received power,
Figure 109119392-A0305-02-0013-44
is the received power corresponding to the forward direction,
Figure 109119392-A0305-02-0013-46
is the received power corresponding to the surround sound, and
Figure 109119392-A0305-02-0013-47
for the delay time. It is worth noting that the ratio
Figure 109119392-A0305-02-0013-49
The smaller, the corresponding delay time
Figure 109119392-A0305-02-0013-48
The closer it is to a two-channel balanced state. From this, it can be seen that the second delay time is related to the minimum value of the ratio.

內部延遲估測模組133可依據初始延遲時間與一個或更多個相鄰延遲時間對應的接收功率的比值決定第二延遲時間(步驟S450)。具體而言,內部延遲估測模組133可將前述初始延遲時間作為中心,且分別依據那些相鄰延遲時間並透過兩揚聲器110,120播放兩測試訊號。相鄰延遲時間不同於初始延遲時間。例如,相鄰延遲時間為

Figure 109119392-A0305-02-0013-51
±1、…、
Figure 109119392-A0305-02-0013-50
±N,其中N是預設值(代表量測的範圍)並為正整數。也就是說,透過揚聲器110,120播放的雙聲道訊號可分別經初始延遲時間及相鄰延遲時間修正,且收音器140對不同延遲時間對應的兩測試訊號分別錄製,以取得兩測試訊號在這些延遲時間下的接收功率。 The internal delay estimation module 133 may determine the second delay time according to the ratio of the initial delay time and the received power corresponding to one or more adjacent delay times (step S450 ). Specifically, the internal delay estimation module 133 can take the aforementioned initial delay time as the center, and play two test signals through the two speakers 110 , 120 respectively according to those adjacent delay times. The adjacent delay time is different from the initial delay time. For example, the adjacent delay time is
Figure 109119392-A0305-02-0013-51
±1,…,
Figure 109119392-A0305-02-0013-50
± N , where N is a preset value (representing the measurement range) and is a positive integer. That is to say, the two-channel signals played through the speakers 110 and 120 can be respectively modified by the initial delay time and the adjacent delay time, and the radio 140 records the two test signals corresponding to different delay times respectively, so as to obtain the two test signals at these delays. received power over time.

接著,內部延遲估測模組133可依據初始延遲時間與那些相鄰延遲時間對應的接收功率的比值決定比值最小值。圖5是 依據本發明一實施例的決定比值最小值的流程圖。請參照圖5,內部延遲估測模組133決定初始延遲時間與相鄰延遲時間對應的接收功率的比值(步驟S510)。以數學計算為例,初始延遲時間及相鄰延遲時間將分別被代入方程式(10)的延遲時間

Figure 109119392-A0305-02-0014-52
。 Next, the internal delay estimation module 133 may determine the minimum value of the ratio according to the ratio of the initial delay time to the received power corresponding to those adjacent delay times. FIG. 5 is a flowchart of determining the minimum value of the ratio according to an embodiment of the present invention. Referring to FIG. 5 , the internal delay estimation module 133 determines the ratio of the initial delay time to the received power corresponding to the adjacent delay time (step S510 ). Taking mathematical calculation as an example, the initial delay time and adjacent delay time will be substituted into the delay time of equation (10) respectively
Figure 109119392-A0305-02-0014-52
.

假設預設N值,則內部延遲估測模組133判斷比值最小值是否在預設的相鄰延遲時間外(步驟S530)。以初始延遲時間為中心依序增加或減少延遲時間,並判斷對應比值的變化趨勢。若變化趨勢有谷底值,則表示最小值在預設範圍內,內部延遲估測模組133並內插決定第二延遲時間(步驟S550)。 Assuming the preset N value, the internal delay estimation module 133 determines whether the minimum value of the ratio is outside the preset adjacent delay time (step S530 ). The delay time is sequentially increased or decreased with the initial delay time as the center, and the change trend of the corresponding ratio is judged. If the change trend has a bottom value, it means that the minimum value is within the preset range, and the internal delay estimation module 133 determines the second delay time by interpolation (step S550 ).

在一實施例中,內部延遲估測模組133依據初始延遲時間與那些相鄰延遲時間對應的接收功率的比值中的最小值對應的待評估延遲時間

Figure 109119392-A0305-02-0014-53
(是初始延遲時間與那些相鄰延遲時間的其中一者)決定兩第二相鄰延遲時間
Figure 109119392-A0305-02-0014-54
±1。這兩第二相鄰延遲時間與該待評估延遲時間的相距時間相同(本實施例是一個取樣點,但也可能是兩個或其他個數的取樣點),且這兩第二相鄰延遲時間中的一者不同於另一者。 In one embodiment, the internal delay estimation module 133 determines the delay time to be evaluated corresponding to the minimum value among the ratios of the initial delay time and the received power corresponding to those adjacent delay times
Figure 109119392-A0305-02-0014-53
(which is one of the initial delay time and those adjacent delay times) determines the two second adjacent delay times
Figure 109119392-A0305-02-0014-54
±1. The distance between the two second adjacent delay times and the delay time to be evaluated is the same (this example is one sampling point, but it may also be two or other sampling points), and the two second adjacent delay times are One of the times is different from the other.

內部延遲估測模組133可對待評估延遲時間及兩第二相鄰延遲時間對應的接收功率的比值透過內插決定比值最小值。即,將比值

Figure 109119392-A0305-02-0014-55
Figure 109119392-A0305-02-0014-56
Figure 109119392-A0305-02-0014-57
透過內差方式求出比值最小值。接著,內部延遲估測模組133可依據此比值最小值對應的延遲時間決定第二延遲時間
Figure 109119392-A0305-02-0014-58
。 The internal delay estimation module 133 may determine the minimum value of the ratio through interpolation between the ratio of the delay time to be estimated and the received power corresponding to the two second adjacent delay times. That is, the ratio of
Figure 109119392-A0305-02-0014-55
,
Figure 109119392-A0305-02-0014-56
,
Figure 109119392-A0305-02-0014-57
Find the minimum value of the ratio by means of inner difference. Then, the internal delay estimation module 133 can determine the second delay time according to the delay time corresponding to the minimum value of the ratio
Figure 109119392-A0305-02-0014-58
.

在一些偏移比較極端的情況下,極值(最小值)可能超出預 設的範圍(例如,前述N值)。若比值的變化趨勢未有谷底值,則表示最小值不在預設範圍內,內部延遲估測模組133並決定另一相鄰延遲時間(與步驟S510預設的相鄰延遲時間不同,例如,

Figure 109119392-A0305-02-0015-59
±(N+1)、或
Figure 109119392-A0305-02-0015-60
±(N+2)等)對應的接收功率的比值(步驟S570),直到得出最小值或到達遞迴上限(即,由初始延遲時間的中心往外擴展次數的上限)。最後,同樣透過內插求出合適的延遲時間。 In some extreme cases of offset, the extreme value (minimum value) may exceed a preset range (eg, the aforementioned N value). If the change trend of the ratio does not have a bottom value, it means that the minimum value is not within the preset range, and the internal delay estimation module 133 determines another adjacent delay time (different from the adjacent delay time preset in step S510, for example,
Figure 109119392-A0305-02-0015-59
±( N +1), or
Figure 109119392-A0305-02-0015-60
±( N +2), etc.) corresponding to the ratio of the received power (step S570) until the minimum value is obtained or the upper limit of recursion (ie, the upper limit of the number of times to expand outward from the center of the initial delay time) is reached. Finally, the appropriate delay time is also obtained through interpolation.

須說明的是,在其他實施例中,內部延遲估測模組133也可直接透過其他最小化演算法來得出比值最小值,進而推算第二延遲時間。 It should be noted that, in other embodiments, the internal delay estimation module 133 can also directly obtain the minimum value of the ratio through other minimization algorithms, and then calculate the second delay time.

請返回圖2,整體延遲估測模組135可依據第一延遲時間及第二延遲時間決定整體延遲時間(步驟S250)。具體而言,本發明實施例綜合考慮空間及非空間所造成的延遲時間,而整合後電子裝置100所輸出聲音訊號的整體延遲時間即為兩延遲時間之和:

Figure 109119392-A0305-02-0015-61
。而此整體延遲時間可用於修正兩揚聲器110,120播放聲音所相差的延遲時間。例如,若整體延遲時間n D 為正值,則對應於揚聲器120的右聲道訊號將需要延遲n D 。反之(即,負值),則為對應於揚聲器110的左聲道訊號需要延遲n D 。藉此,可提供適當的延遲時間來達成音場平衡。 Returning to FIG. 2 , the overall delay estimation module 135 can determine the overall delay time according to the first delay time and the second delay time (step S250 ). Specifically, the embodiment of the present invention comprehensively considers the delay time caused by space and non-space, and the overall delay time of the audio signal output by the integrated electronic device 100 is the sum of the two delay times:
Figure 109119392-A0305-02-0015-61
. The overall delay time can be used to correct the delay time difference between the sound played by the two speakers 110 and 120 . For example, if the overall delay time n D is a positive value, the right channel signal corresponding to the speaker 120 will need to be delayed by n D . On the contrary (ie, a negative value), the left channel signal corresponding to the speaker 110 needs to be delayed by n D . In this way, an appropriate delay time can be provided to achieve sound field balance.

表(1)是雙聲道音壓特性比較表:表(1)

Figure 109119392-A0305-02-0016-62
本發明實施例的綜合音壓差距縮小在1dB之內,且能維持雙聲道音壓差距絕對值在各頻率間的平均結果,並降低標準差。須說明的是,表(1)中的測試結果僅是用於範例說明,且可能因為實驗因素的改變而不同。 Table (1) is a comparison table of two-channel sound pressure characteristics: Table (1)
Figure 109119392-A0305-02-0016-62
The comprehensive sound pressure difference of the embodiment of the present invention is reduced within 1 dB, and the average result of the absolute value of the two-channel sound pressure difference between frequencies can be maintained, and the standard deviation can be reduced. It should be noted that the test results in Table (1) are for illustrative purposes only, and may vary due to changes in experimental factors.

綜上所述,在本發明實施例的電子裝置及其雙聲道音場平衡方法中,為了得出系統整體合適的延遲時間並對雙聲道訊號的音壓達到較為平衡的狀態,本發明實施例考慮兩種延遲時間。其一是雙聲道揚聲器位置所造成的延遲時間,其二是電子裝置內部系統所造成的時間延遲。而將兩者整合後即可作為整體延遲時間。 To sum up, in the electronic device and the method for balancing the two-channel sound field in the embodiment of the present invention, in order to obtain a suitable delay time for the whole system and achieve a relatively balanced state of the sound pressure of the two-channel signal, the present invention Embodiments consider two delay times. One is the delay time caused by the position of the binaural speakers, and the other is the time delay caused by the internal system of the electronic device. After the two are integrated, they can be used as the overall delay time.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed above by the embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, The protection scope of the present invention shall be determined by the scope of the appended patent application.

S210~S250:步驟S210~S250: Steps

Claims (10)

一種雙聲道音場平衡方法,適用於包括二揚聲器的一電子裝置,該雙聲道音場平衡方法包括:決定該二揚聲器在一空間上相差的一第一延遲時間,其中該第一延遲時間相關於該二揚聲器分別處於該電子裝置的位置;決定該二揚聲器在該電子裝置內部相差的一第二延遲時間,其中該第二延遲時間相關於對該二揚聲器收音所得出多個頻帶的相位偏移;以及依據該第一延遲時間及該第二延遲時間決定一整體延遲時間,其中該整體延遲時間用於修正該二揚聲器播放聲音所相差的延遲時間,其中該電子裝置更包括一收音器,且決定該二揚聲器在該電子裝置內部相差的該第二延遲時間的步驟包括:決定該二揚聲器在該空間上對應於該收音器相差的一第三延遲時間,其中該第三延遲時間相關於該二揚聲器分別相對於該收音器的位置;依據該第三延遲時間並透過該二揚聲器播放二測試訊號,其中該二測試訊號分別受指定正向方向及環繞音效;分別透過該收音器對該二測試訊號收音,並分別取得該二測試訊號對應的接收功率;以及依據該二測試訊號對應的接收功率的比值決定該第二延遲時間。 A two-channel sound field balancing method, suitable for an electronic device including two speakers, the two-channel sound field balancing method comprising: determining a first delay time that the two speakers differ in space, wherein the first delay time The time is related to the positions of the two speakers respectively in the electronic device; determining a second delay time of the difference between the two speakers in the electronic device, wherein the second delay time is related to the frequency bands obtained by the two speakers. phase shift; and determine an overall delay time according to the first delay time and the second delay time, wherein the overall delay time is used to correct the delay time difference between the two speakers playing sound, wherein the electronic device further includes a radio and the step of determining the second delay time of the difference between the two speakers in the electronic device includes: determining a third delay time of the two speakers in the space corresponding to the difference of the receiver, wherein the third delay time relative to the positions of the two speakers relative to the receiver; play two test signals through the two speakers according to the third delay time, wherein the two test signals are respectively subjected to a designated forward direction and a surround sound effect; respectively through the receiver The two test signals are radioed, and the received powers corresponding to the two test signals are obtained respectively; and the second delay time is determined according to the ratio of the received powers corresponding to the two test signals. 如請求項1所述的雙聲道音場平衡方法,其中決定該二揚聲器在該空間上相差的該第一延遲時間的步驟包括:決定該二揚聲器與一參考位置的一位置偏移,其中該參考位置相關於使用者的聆聽位置,且決定該位置偏移的步驟包括:分別決定每一該揚聲器在該空間對應坐標系的三軸上與該參考位置的相對距離;以及依據該二揚聲器在該三軸上與該參考位置的相對距離之間的距離差之總和決定該位置偏移;以及依據該位置偏移決定該第一延遲時間。 The two-channel sound field balancing method as claimed in claim 1, wherein the step of determining the first delay time of the spatial difference between the two speakers comprises: determining a position offset between the two speakers and a reference position, wherein The reference position is related to the listening position of the user, and the step of determining the position offset includes: respectively determining the relative distance between each speaker and the reference position on three axes of the spatially corresponding coordinate system; and according to the two speakers The position offset is determined by the sum of the distance differences between the relative distances from the reference position on the three axes; and the first delay time is determined according to the position offset. 如請求項1所述的雙聲道音場平衡方法,其中依據該第三延遲時間並透過該二揚聲器播放該二測試訊號的步驟包括:依據該些頻帶的初始相位偏移對應的權重決定一初始延遲時間,其中對依據該第三延遲時間所播放的該二測試訊號收音以決定該些頻帶的初始相位偏移,且該些頻帶的初始相位偏移對應的權重相關於人類聽覺特性;以及將該初始延遲時間作為中心,且分別依據其至少一相鄰延遲時間並透過該二揚聲器播放該二測試訊號,其中該至少一相鄰延遲時間不同於該初始延遲時間。 The two-channel sound field balancing method according to claim 1, wherein the step of playing the two test signals through the two speakers according to the third delay time comprises: determining a an initial delay time, wherein the two test signals played according to the third delay time are collected to determine the initial phase offsets of the frequency bands, and the weights corresponding to the initial phase offsets of the frequency bands are related to human hearing characteristics; and The initial delay time is taken as the center, and the two test signals are played through the two speakers according to at least one adjacent delay time, wherein the at least one adjacent delay time is different from the initial delay time. 如請求項3所述的雙聲道音場平衡方法,其中該比值是將該正向方向的測試訊號對應的接收功率作為分母且該環繞音效的測試訊號對應的接收功率作為分子,且依據該二測試訊號對應的接收功率的比值決定該第二延遲時間的步驟包括: 依據該初始延遲時間與該至少一相鄰延遲時間對應的接收功率的比值決定一比值最小值;以及依據該比值最小值對應的延遲時間決定該第二延遲時間。 The two-channel sound field balancing method according to claim 3, wherein the ratio takes the received power corresponding to the test signal in the forward direction as the denominator and the received power corresponding to the surround sound test signal as the numerator, and according to the The step of determining the second delay time by the ratio of the received power corresponding to the two test signals includes: A ratio minimum value is determined according to the ratio of the initial delay time and the received power corresponding to the at least one adjacent delay time; and the second delay time is determined according to the delay time corresponding to the ratio minimum value. 如請求項4所述的雙聲道音場平衡方法,其中決定該比值最小值的步驟包括:依據該初始延遲時間與該至少一相鄰延遲時間對應的接收功率的比值中的最小值對應的待評估延遲時間決定二第二相鄰延遲時間,其中該二第二相鄰延遲時間與該待評估延遲時間的相距時間相同,且該二第二相鄰延遲時間中的一者不同於另一者;以及對該待評估延遲時間及該二第二相鄰延遲時間對應的接收功率的比值透過內插決定該比值最小值。 The two-channel sound field balance method according to claim 4, wherein the step of determining the minimum value of the ratio comprises: according to the minimum value of the ratio of the initial delay time and the received power corresponding to the at least one adjacent delay time. The to-be-evaluated delay time determines two second adjacent delay times, wherein the two second adjacent delay times and the to-be-evaluated delay time are separated by the same time, and one of the two second adjacent delay times is different from the other and the ratio of the to-be-evaluated delay time and the received power corresponding to the two second adjacent delay times to determine the minimum value of the ratio through interpolation. 一種電子裝置,包括:二揚聲器;一處理器,耦接該二揚聲器,載入並執行多個模組,該些模組包括:一空間延遲估測模組,決定該二揚聲器在一空間上相差的一第一延遲時間,其中該第一延遲時間相關於該二揚聲器分別處於該電子裝置的位置;一內部延遲估測模組,決定該二揚聲器在該電子裝置內部相差的一第二延遲時間,其中該第二延遲時間相關於對該二揚聲器收音所得出多個頻帶的相位偏移;以及一整體延遲估測模組,依據該第一延遲時間及該第二延 遲時間決定一整體延遲時間,其中該整體延遲時間用於修正該二揚聲器播放聲音所相差的延遲時間;以及一收音器,其中該內部延遲估測模組決定該二揚聲器在該空間上對應於該收音器相差的一第三延遲時間,依據該第三延遲時間並透過該二揚聲器播放二測試訊號,分別透過該收音器對該二測試訊號收音並分別取得該二測試訊號對應的接收功率,且依據該二測試訊號對應的接收功率的比值決定該第二延遲時間,其中該第三延遲時間相關於該二揚聲器分別相對於該收音器的位置,且該二測試訊號分別受指定正向方向及環繞音效。 An electronic device includes: two speakers; a processor, coupled to the two speakers, loads and executes a plurality of modules, the modules include: a spatial delay estimation module for determining the two speakers in a space a first delay time of the difference, wherein the first delay time is related to the positions of the two speakers respectively in the electronic device; an internal delay estimation module to determine a second delay of the difference of the two speakers inside the electronic device time, wherein the second delay time is related to the phase shifts of multiple frequency bands obtained from the two speakers; and an overall delay estimation module, according to the first delay time and the second delay time The delay time determines an overall delay time, wherein the overall delay time is used to correct the delay time difference between the sound played by the two speakers; and a radio, wherein the internal delay estimation module determines that the two speakers correspond in the space to A third delay time that differs between the receivers, according to the third delay time, the two test signals are played through the two speakers, the two test signals are respectively received through the receiver, and the corresponding received powers of the two test signals are obtained respectively, And the second delay time is determined according to the ratio of the received power corresponding to the two test signals, wherein the third delay time is related to the positions of the two speakers relative to the receiver, and the two test signals are respectively subject to a designated forward direction and surround sound. 如請求項6所述的電子裝置,其中該空間延遲估測模組分別決定每一該揚聲器在該空間對應坐標系的三軸上與一參考位置的相對距離,依據該二揚聲器在該三軸上與該參考位置的相對距離之間的距離差之總和決定一位置偏移,並依據該位置偏移決定該第一延遲時間,其中該參考位置相關於使用者的聆聽位置。 The electronic device of claim 6, wherein the spatial delay estimation module determines the relative distance between each speaker and a reference position on three axes of the spatially corresponding coordinate system, according to the three axes of the two speakers. The sum of the distance differences between the relative distances from the reference position and the reference position determines a position offset, wherein the reference position is related to the listening position of the user, and determines the first delay time according to the position offset. 如請求項6所述的電子裝置,其中該內部延遲估測模組依據該些頻帶的初始相位偏移對應的權重決定一初始延遲時間,並將該初始延遲時間作為中心,且分別依據其至少一相鄰延遲時間並透過該二揚聲器播放該二測試訊號,其中對依據該第三延遲時間所播放的該二測試訊號收音以決定該些頻帶的初始相位偏移,該些頻帶的初始相位偏移對應的權重相關於人類聽覺特性,且該至少一相鄰延遲時間不同於該初始延遲時間。 The electronic device of claim 6, wherein the internal delay estimation module determines an initial delay time according to the weights corresponding to the initial phase offsets of the frequency bands, takes the initial delay time as a center, and respectively according to the at least An adjacent delay time is used to play the two test signals through the two speakers, wherein the two test signals played according to the third delay time are collected to determine the initial phase offset of the frequency bands, and the initial phase offset of the frequency bands The weight corresponding to the shift is related to human auditory characteristics, and the at least one adjacent delay time is different from the initial delay time. 如請求項8所述的電子裝置,其中該比值將該正向方向的測試訊號對應的接收功率作為分母且該環繞音效的測試訊號對應的接收功率作為分子,且該內部延遲估測模組依據該初始延遲時間與該至少一相鄰延遲時間對應的接收功率的比值決定一比值最小值,並依據該比值最小值對應的延遲時間決定該第二延遲時間。 The electronic device as claimed in claim 8, wherein the ratio takes the received power corresponding to the test signal in the forward direction as the denominator and the received power corresponding to the surround sound test signal as the numerator, and the internal delay estimation module is based on A ratio of the initial delay time to the received power corresponding to the at least one adjacent delay time determines a minimum ratio value, and determines the second delay time according to the delay time corresponding to the minimum ratio value. 如請求項9所述的電子裝置,其中該內部延遲估測模組依據該初始延遲時間與該至少一相鄰延遲時間對應的接收功率的比值中的最小值對應的待評估延遲時間決定二第二相鄰延遲時間,並對該待評估延遲時間及該二第二相鄰延遲時間對應的接收功率的比值透過內插決定該比值最小值,其中該二第二相鄰延遲時間與該待評估延遲時間的相距時間相同,且該二第二相鄰延遲時間中的一者不同於另一者。 The electronic device as claimed in claim 9, wherein the internal delay estimation module determines the second delay time according to the to-be-evaluated delay time corresponding to the minimum value of the ratio of the initial delay time and the received power corresponding to the at least one adjacent delay time Two adjacent delay times, and the ratio of the to-be-evaluated delay time and the received power corresponding to the two second adjacent delay times is determined by interpolation to determine the minimum value of the ratio, wherein the two second adjacent delay times and the to-be-evaluated delay time The separation times of the delay times are the same, and one of the two second adjacent delay times is different from the other.
TW109119392A 2020-06-10 2020-06-10 Electronic apparatus and sound field balancing method thereof for dual-channel TWI757763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109119392A TWI757763B (en) 2020-06-10 2020-06-10 Electronic apparatus and sound field balancing method thereof for dual-channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109119392A TWI757763B (en) 2020-06-10 2020-06-10 Electronic apparatus and sound field balancing method thereof for dual-channel

Publications (2)

Publication Number Publication Date
TW202147868A TW202147868A (en) 2021-12-16
TWI757763B true TWI757763B (en) 2022-03-11

Family

ID=80784038

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109119392A TWI757763B (en) 2020-06-10 2020-06-10 Electronic apparatus and sound field balancing method thereof for dual-channel

Country Status (1)

Country Link
TW (1) TWI757763B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070086596A1 (en) * 2005-10-19 2007-04-19 Sony Corporation Measuring apparatus, measuring method, and sound signal processing apparatus
WO2018202324A1 (en) * 2017-05-03 2018-11-08 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Audio processor, system, method and computer program for audio rendering

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070086596A1 (en) * 2005-10-19 2007-04-19 Sony Corporation Measuring apparatus, measuring method, and sound signal processing apparatus
WO2018202324A1 (en) * 2017-05-03 2018-11-08 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Audio processor, system, method and computer program for audio rendering

Also Published As

Publication number Publication date
TW202147868A (en) 2021-12-16

Similar Documents

Publication Publication Date Title
US10231072B2 (en) Information processing to measure viewing position of user
JP6102179B2 (en) Audio processing apparatus and method, and program
JP5443469B2 (en) Sound collecting device and sound collecting method
JP6718748B2 (en) Area reproduction system and area reproduction method
US9264812B2 (en) Apparatus and method for localizing a sound image, and a non-transitory computer readable medium
US9538288B2 (en) Sound field correction apparatus, control method thereof, and computer-readable storage medium
US20120275616A1 (en) Sound signal processor and sound signal processing methods
US11871193B2 (en) Microphone system
US9966058B2 (en) Area-sound reproduction system and area-sound reproduction method
WO2022007239A1 (en) Sound quality adaptive adjustment method, related system and device, and storage medium
US20200296534A1 (en) Sound playback device and output sound adjusting method thereof
TWI757763B (en) Electronic apparatus and sound field balancing method thereof for dual-channel
WO2024037189A1 (en) Acoustic image calibration method and apparatus
CN113825086B (en) Electronic device and dual-track sound field balancing method thereof
TWI757873B (en) Electronic apparatus and sound field balancing method thereof for dual-channel
TW202147300A (en) Head-mounted apparatus and stereo effect controlling method thereof
TW202009927A (en) Sound reception processing apparatus and sound reception processing method thereof
TWI700004B (en) Method for decreasing effect upon interference sound of and sound playback device
US11740858B2 (en) Ultrasound-based audio playback method and ultrasound-based electronic device
TWI757729B (en) Balance method for two-channel sounds and electronic device using the same
TWI740206B (en) Correction system and correction method of signal measurement
TWI817177B (en) Audio playback system and method for adaptively adjusting sound field
WO2021129196A1 (en) Voice signal processing method and device
EP4338433A1 (en) Sound reproduction system and method
JP2021048553A (en) Fundamental tone frequency determination device, pseudo low-pitched sound processor, method for determining frequency of fundamental tone, and method for acoustic processing