TWI899642B - Circuit, method for audio signal processing with excursion estimation compensation, and non-transitory storage medium - Google Patents
Circuit, method for audio signal processing with excursion estimation compensation, and non-transitory storage mediumInfo
- Publication number
- TWI899642B TWI899642B TW112135523A TW112135523A TWI899642B TW I899642 B TWI899642 B TW I899642B TW 112135523 A TW112135523 A TW 112135523A TW 112135523 A TW112135523 A TW 112135523A TW I899642 B TWI899642 B TW I899642B
- Authority
- TW
- Taiwan
- Prior art keywords
- audio signal
- digital audio
- filter
- response
- compensation
- Prior art date
Links
Landscapes
- Circuit For Audible Band Transducer (AREA)
- Amplifiers (AREA)
Abstract
Description
本揭露係關於具有揚聲器衝程保護的音頻信號處理的電路和方法,特別是指具有衝程估計補償的音頻信號處理的電路、方法以及非暫態儲存媒體。 The present disclosure relates to a circuit and method for processing audio signals with speaker impulse protection, and more particularly to a circuit, method, and non-transitory storage medium for processing audio signals with impulse estimation compensation.
揚聲器根據電流的變化來運作,電流的變化會導致電磁鐵產生的磁場發生變化。這些變化導致揚聲器的錐盆(cone)移動。因此,錐盆的移動會在空氣中產生壓力變化並形成聲波。 Speakers operate by varying the flow of electric current, which causes variations in the magnetic field generated by an electromagnet. These variations cause the speaker's cone to move. The cone's movement, in turn, creates pressure variations in the air, which in turn creates sound waves.
衝程(excursion)描述它從正常靜止位置來回移動的距離。當揚聲器振膜的衝程極限超過其極限時,就會發生過度衝程,這可能會導致非線性阻尼、聲音失真,從而揚聲器損壞或揚聲器的使用壽命大大縮短。此外,當振膜發生過度衝程時,揚聲器發出的聲音會因非線性而失真,從而損壞揚聲器和音圈。 Excursion describes the distance a speaker travels from its normal resting position. Overexcursion occurs when the excursion limit of a speaker diaphragm is exceeded, which can lead to nonlinear damping, sound distortion, and ultimately speaker damage or a significantly shortened lifespan. Furthermore, when the diaphragm experiences overexcursion, the sound produced by the speaker becomes distorted due to nonlinearity, which can damage the speaker and voice coil.
本揭露的目的是提供具有揚聲器衝程保護的音頻信號處理的電路及方法,特別是具有衝程估計補償的音頻信號處理的電路及方法。 The present disclosure aims to provide a circuit and method for audio signal processing with speaker impulse protection, and in particular, a circuit and method for audio signal processing with impulse estimation compensation.
為了至少實現上述目的,本揭露提供了一種具有衝程估計補償的音頻信號處理的電路。此電路包括延遲電路、補償濾波器、衝程估計器、增益確定電路及增益調整電路。延遲電路用於延遲數位音頻信號以輸出延遲的數位音頻信號。補償濾波器用以根據數位音頻信號產生補償的數位音頻信號,以用於一種揚聲器類型的衝程估計補償。衝程估計器用於根據補償的數位音頻信號確定該揚聲器類型的估計的衝程信號。增益確定電路用於根據估計的衝程信號與閾值產生增益設定信號。增益調整電路用於根據增益設定信號及延遲的數位音頻信號產生調整後數位音頻信號。 To achieve at least the foregoing objectives, the present disclosure provides a circuit for processing audio signals with stroke estimation compensation. The circuit includes a delay circuit, a compensation filter, a stroke estimator, a gain determination circuit, and a gain adjustment circuit. The delay circuit is configured to delay a digital audio signal to output a delayed digital audio signal. The compensation filter is configured to generate a compensated digital audio signal based on the digital audio signal for use in stroke estimation compensation for a speaker type. The stroke estimator is configured to determine an estimated stroke signal for the speaker type based on the compensated digital audio signal. The gain determination circuit is used to generate a gain setting signal based on the estimated impulse signal and the threshold value. The gain adjustment circuit is used to generate an adjusted digital audio signal based on the gain setting signal and the delayed digital audio signal.
為了至少實現上述目的,本揭露提供了一種具有衝程估計補償的音頻信號處理的方法。該方法包括以下步驟。數位音頻信號被延遲以輸出延遲的數位音頻信號。補償濾波器根據數位音頻信號產生補償的數位音頻信號,以用於一種揚聲器類型的衝程估計補償。根據補償的數位音頻信號確定該揚聲器類型的估計的衝程信號。根據估計的衝程信號與閾值來產生增益設定信號。根據增益設定信號與延遲的數位音頻信號,產生調整後的數位音頻信號。 To achieve at least the foregoing objectives, the present disclosure provides a method for audio signal processing with stroke estimation compensation. The method comprises the following steps: a digital audio signal is delayed to output a delayed digital audio signal; a compensation filter generates a compensated digital audio signal based on the digital audio signal for use in stroke estimation compensation for a speaker type; an estimated stroke signal for the speaker type is determined based on the compensated digital audio signal; and a gain setting signal is generated based on the estimated stroke signal and a threshold value. Generates an adjusted digital audio signal based on the gain setting signal and the delayed digital audio signal.
在電路或方法的一些實施例中,補償濾波器具有用於該揚聲器類型的衝程估計補償的濾波器響應,並且被配置為根據數位音頻信號及濾波器響應來產生補償的數位音頻信號。 In some embodiments of the circuit or method, the compensation filter has a filter response for compensating for the range estimation of the speaker type and is configured to generate a compensated digital audio signal based on the digital audio signal and the filter response.
在電路或方法的一些實施例中,補償濾波器的濾波器響應與用於該揚聲器類型的衝程估計補償的特定頻帶相關聯,並且補償濾波器能夠針對特定頻帶來放大數位音頻信號的分量,以產生補償的數位音頻信號。 In some embodiments of the circuit or method, a filter response of the compensation filter is associated with a specific frequency band for range estimation compensation for the speaker type, and the compensation filter is capable of amplifying a component of the digital audio signal for the specific frequency band to produce a compensated digital audio signal.
在電路或方法的一些實施例中,補償濾波器的濾波器響應與特定頻帶相關聯,在該特定頻帶中該揚聲器類型的揚聲器可運作以得到最大衝程。 In some embodiments of the circuit or method, the filter response of the compensation filter is associated with a particular frequency band in which a speaker of the speaker type can operate to obtain maximum excursion.
在電路或方法的一些實施例中,補償濾波器能夠根據數位音頻信號和濾波器響應針對該特定頻帶來放大數位音頻信號的分量,以產生補償的數位音頻信號。 In some embodiments of the circuit or method, the compensation filter can amplify a component of the digital audio signal based on the digital audio signal and the filter response for the particular frequency band to generate a compensated digital audio signal.
在電路或方法的一些實施例中,補償濾波器基於無限脈衝響應(IIR)濾波器或有限脈衝響應(FIR)濾波器。 In some embodiments of the circuit or method, the compensation filter is based on an infinite impulse response (IIR) filter or a finite impulse response (FIR) filter.
在電路或方法的一些實施例中,補償濾波器基於擱架式濾波器,用於對具有擱架響應的揚聲器類型進行衝程估計補償。 In some embodiments of the circuit or method, the compensation filter is based on a shelf filter for performing impulse estimation compensation for speaker types having a shelf response.
在電路或方法的一些實施例中,補償濾波器基於峰值濾波器,用於對具有峰值響應的揚聲器類型進行衝程估計補償。 In some embodiments of the circuit or method, the compensation filter is based on a peak filter for performing range estimation compensation for speaker types with peak responses.
在電路的一些實施例中,增益確定電路包括峰值檢測器和增益計算電路。峰值檢測器用於根據估計的衝程信號來輸出峰值指示衝程信號。增益計算電路用於根據峰值指示衝程信號和閾值產生增益設定信號。 In some embodiments of the circuit, the gain determination circuit includes a peak detector and a gain calculation circuit. The peak detector is configured to output a peak-indicating excursion signal based on an estimated excursion signal. The gain calculation circuit is configured to generate a gain setting signal based on the peak-indicating excursion signal and a threshold value.
在方法的一些實施例中,根據估計的衝程信號和閾值產生增益設定信號包括:根據估計的衝程信號輸出峰值指示衝程信號;及根據峰值指示衝程信號產生增益設定信號。 In some embodiments of the method, generating a gain setting signal based on the estimated stroke signal and a threshold value includes: outputting a peak-indicating stroke signal based on the estimated stroke signal; and generating the gain setting signal based on the peak-indicating stroke signal.
100、100A:電路 100, 100A: Circuit
110:延遲電路 110: Delay circuit
120:補償濾波器 120: Compensation filter
130:衝程估計器 130: Stroke Estimator
140、140A:增益確定電路 140, 140A: Gain determination circuit
141:峰值檢測器 141: Peak Detector
145:增益計算電路 145: Gain calculation circuit
150:增益調整電路 150: Gain adjustment circuit
160:數位類比轉換器 160: Digital-to-Analog Converter
170:放大器 170: Amplifier
180:揚聲器 180: Speaker
501、503:估計位移 501, 503: Estimated displacement
502、504:實際位移 502, 504: Actual displacement
800:濾波器 800: Filter
DN:實際負位移 DN: Actual negative displacement
DM:衝程模型 DM: Process Model
DP:實際正位移 DP: Actual positive displacement
G(t):增益設定信號 G(t): Gain setting signal
OUT(t):調整後的數位音頻信號 OUT(t): Adjusted digital audio signal
S10、S20、S30:步驟 S10, S20, S30: Steps
S40、S50:步驟 S40, S50: Steps
X(t):數位音頻信號 X(t): digital audio signal
Xc(t):補償的數位音頻信號 Xc(t): Compensated digital audio signal
Xd(t):延遲的數位音頻信號 Xd(t): delayed digital audio signal
Xmax:衝程閾值 Xmax: stroke threshold
Y(t):估計的衝程信號 Y(t): Estimated impulse signal
Yp(t):峰值指示衝程信號 Yp(t): Peak indication impulse signal
α:係數 α: coefficient
ω:參數 ω: parameter
圖1是示出根據本揭露的一種實施例的具有衝程估計補償的音頻信號處理的電路的架構的示意圖。 FIG1 is a schematic diagram showing the architecture of a circuit for audio signal processing with stroke estimation compensation according to an embodiment of the present disclosure.
圖2A是示出第一類型的揚聲器的衝程響應的一種示例的圖。 FIG2A is a diagram showing an example of the impulse response of the first type of speaker.
圖2B是示出濾波器響應的一種示例的圖,根據本發明的一種實施例,圖1所示電路的補償濾波器可以被配置以實現該濾波器響應,來用於圖2A中示例的第一類型的揚聲器的衝程估計補償。 FIG2B is a diagram illustrating an example of a filter response that the compensation filter of the circuit shown in FIG1 may be configured to implement for use in compensating for impulse estimation of the first type of loudspeaker illustrated in FIG2A , according to one embodiment of the present invention.
圖3A是示出第二類型的揚聲器的衝程響應的一種示例的圖。 FIG3A is a diagram showing an example of the impulse response of the second type of speaker.
圖3B是示出濾波器響應的另一種示例的圖,根據本發明的一種實施例,圖1所示電路的補償濾波器可以被配置以實現該濾波器響應,來用於圖3A中示例的第二類型的揚聲器的衝程估計補償。 FIG3B is a diagram illustrating another example of a filter response that the compensation filter of the circuit shown in FIG1 can be configured to implement, according to one embodiment of the present invention, for use in compensating for the stroke estimation of the second type of loudspeaker illustrated in FIG3A .
圖4是示出第一類型的一個揚聲器的實際負位移(DN)、衝程模型(DM)和實際正位移(DP)的示例的圖。 FIG4 is a diagram showing an example of the actual negative displacement (DN), the stroke model (DM), and the actual positive displacement (DP) of a loudspeaker of the first type.
圖5A是示出音頻波形的示例的圖。 FIG5A is a diagram showing an example of an audio waveform.
圖5B是示出沒有衝程估計補償而回應於圖5A所示的音頻波形,根據衝程響應的估計位移及透過測量的實際位移的示例的圖。 FIG5B is a graph showing an example of the estimated displacement based on the stroke response and the actual displacement measured in response to the audio waveform shown in FIG5A without stroke estimation compensation.
圖5C是示出第二頻率音頻波形的示例的圖。 FIG5C is a diagram showing an example of a second-frequency audio waveform.
圖5D是示出沒有衝程估計補償而回應於圖5C所示的音頻波形,根據衝程響應的估計位移及透過測量的實際位移的示例的圖。 FIG5D is a graph showing an example of the estimated displacement based on the stroke response and the actual displacement measured in response to the audio waveform shown in FIG5C without stroke estimation compensation.
圖6是示出基於圖1所示架構的具有衝程估計補償的音頻信號處理的電路的一種實施例的示意圖。 FIG6 is a schematic diagram showing an embodiment of a circuit for audio signal processing with stroke estimation compensation based on the architecture shown in FIG1.
圖7是示出峰值檢測和增益計算的示例的圖。 Figure 7 is a diagram showing an example of peak detection and gain calculation.
圖8是示出用於峰值檢測的動態範圍壓縮的示例的圖。 FIG8 is a diagram showing an example of dynamic range compression for peak detection.
圖9是示出根據本揭露的一種實施例的具有衝程估計補償的音頻信號處理的方法的流程圖。 FIG9 is a flow chart illustrating a method for audio signal processing with range estimation compensation according to an embodiment of the present disclosure.
為促進理解本揭露的目的、特徵和效果,以下提供實施例並結合附圖對本揭露進行詳細說明。 To facilitate understanding of the purpose, features, and effects of the present disclosure, the following provides examples and accompanying drawings to illustrate the present disclosure in detail.
圖1示出了根據本揭露的一種實施例的具有衝程估計補償的音頻信號處理的電路的架構。如圖1所示,為了透過使用揚聲器180根據數位音頻信號(用X(t)表示)重現音頻,可以採用具有衝程估計補償的音頻信號處理的電路100根據數位音頻信號(用X(t)表示)來輸出調整後的數位音頻信號(用OUT(t)表示)。電路100能夠為揚聲器180執行具有衝程估計補償的過衝程保護的音頻信號處理。電路100可以被設置或組合在具有計算或數位音頻信號或資料處理功能的電子裝置中,以促進音頻再現,例如行動電話、平板電腦、筆記型電腦、桌上型電腦、多媒體播放器、數位音頻播放器或可擕式無線或有線揚聲器。在實際應用中,額外的電路或音頻信號處理裝置,例如用於將調整後的數位音頻信號OUT(t)轉換為類比信號的數位類比轉換器160,以及用於根據類比信號驅動揚聲器180的放大器170,如圖1所示,可以電性耦接在電路100和揚聲器180之間,以用於音頻再現。 FIG1 illustrates the architecture of a circuit for audio signal processing with range estimation compensation according to an embodiment of the present disclosure. As shown in FIG1 , to reproduce audio from a digital audio signal (denoted by X(t)) using a speaker 180, a circuit 100 for audio signal processing with range estimation compensation can be employed to output a conditioned digital audio signal (denoted by OUT(t)) based on the digital audio signal (denoted by X(t)). Circuit 100 can perform audio signal processing with overrange protection and range estimation compensation for speaker 180. Circuit 100 can be configured or incorporated into an electronic device with computing or digital audio signal or data processing capabilities to facilitate audio reproduction, such as a mobile phone, tablet computer, laptop computer, desktop computer, multimedia player, digital audio player, or portable wireless or wired speaker. In practical applications, additional circuitry or audio signal processing devices, such as a digital-to-analog converter 160 for converting the conditioned digital audio signal OUT(t) into an analog signal, and an amplifier 170 for driving a speaker 180 based on the analog signal, can be electrically coupled between circuit 100 and speaker 180, as shown in FIG. 1 , for audio reproduction.
電路100包括延遲電路110、補償濾波器120、衝程估計器130、增益確定電路140和增益調整電路150。從另一方面,電路100可以被視為包括信號路徑和衝程估計路徑。信號路徑包括從電路100的輸入端到輸出端的延遲電路110和增益調整電路150。衝程估計路徑包括輸入端與增益調整電路150之間的補償濾波器120、衝程估計器130增益確定電路140。 Circuit 100 includes a delay circuit 110, a compensation filter 120, an impulse estimator 130, a gain determination circuit 140, and a gain adjustment circuit 150. Alternatively, circuit 100 can be viewed as comprising a signal path and an impulse estimation path. The signal path includes the delay circuit 110 and the gain adjustment circuit 150 from the input to the output of circuit 100. The impulse estimation path includes the compensation filter 120, the impulse estimator 130, and the gain determination circuit 140 between the input and the gain adjustment circuit 150.
在信號路徑中,延遲電路110用於延遲數位音頻信號X(t),以輸出延遲的數位音頻信號Xd(t)。由於在估計衝程路徑中的音頻信號處理需要處理時間,延遲電路110可以被配置為以與處理時間一致的延遲時間來延遲數位音頻信號X(t),使得增益調整電路150可以根據延遲的數位音頻信號Xd(t)以及來自估計衝程路徑的增益設定信號G(t)產生調整後的數位音頻信號OUT(t)。 In the signal path, the delay circuit 110 is used to delay the digital audio signal X(t) to output a delayed digital audio signal Xd(t). Since audio signal processing in the estimated stroke path requires processing time, the delay circuit 110 can be configured to delay the digital audio signal X(t) by a delay time consistent with the processing time. This allows the gain adjustment circuit 150 to generate an adjusted digital audio signal OUT(t) based on the delayed digital audio signal Xd(t) and the gain setting signal G(t) from the estimated stroke path.
在估計衝程路徑中,補償濾波器120用於根據數位音頻信號X(t)產生補償的數位音頻信號(用Xc(t)表示),以用於揚聲器180的衝程估計補償。補償濾波器120可以實現以根據揚聲器180所屬的揚聲器的類型(或稱為揚聲器類型)產生補償的數位音頻信號Xc(t),以相應地補償揚聲器180的不對稱衝程。衝程估計器130用於根據補償的數位音頻信號Xc(t)來確定揚聲器180的估計的衝程信號Y(t)。衝程估計器130可以實現以使用揚聲器180的衝程響應來確定估計的衝程信號Y(t),估計的衝程信號Y(t)表示根據補償的數位音頻信號而變化的估計的揚聲器衝程。增益確定電路140用於根據估計的衝程信號Y(t)以及閾值產生增益設定信號G(t)。增益確定電路140可以實現以根據閾值確定估計的衝程信號Y(t)是否滿足判斷準則。舉例來說,若估計的衝程信號Y(t)滿足判斷準則,例如估計的衝程信號Y(t)是否大於閾值,例如預定衝程閾值或揚聲器180允許的最大衝程限制,則增益確定電路140產生具有降低的增益值的增益設定信號G(t),以防止揚聲器180過度衝程。 In the estimated range path, the compensation filter 120 is used to generate a compensated digital audio signal (denoted by Xc(t)) based on the digital audio signal X(t) for estimating the range of the speaker 180. The compensation filter 120 can generate the compensated digital audio signal Xc(t) based on the type of speaker 180 (also referred to as the speaker type) to compensate for the asymmetric range of the speaker 180. The range estimator 130 is configured to determine an estimated range signal Y(t) of the speaker 180 based on the compensated digital audio signal Xc(t). The range estimator 130 may be implemented to use the range response of the speaker 180 to determine the estimated range signal Y(t), where the estimated range signal Y(t) represents the estimated speaker range that varies according to the compensated digital audio signal. The gain determination circuit 140 is configured to generate a gain setting signal G(t) based on the estimated range signal Y(t) and a threshold. The gain determination circuit 140 may be implemented to determine whether the estimated range signal Y(t) meets a determination criterion based on the threshold. For example, if the estimated excursion signal Y(t) satisfies a determination criterion, such as whether the estimated excursion signal Y(t) is greater than a threshold, such as a predetermined excursion threshold or a maximum excursion limit allowed by the speaker 180, the gain determination circuit 140 generates a gain setting signal G(t) having a reduced gain value to prevent the speaker 180 from over-excursion.
增益調整電路150用於根據延遲的數位音頻信號Xd(t)和增益設定信號G(t)產生調整後的數位音頻信號OUT(t)。例如,可以根據增益設定信號G(t)和延遲的數位音頻信號Xd(t)產生調整後的數位音頻信號OUT(t),例如用方程式 OUT(t)=G(t).Xd(t)表示。增益調整電路150可以透過使用放大器、乘法器或混頻器或任何適當的電路來實現。 The gain adjustment circuit 150 is configured to generate an adjusted digital audio signal OUT(t) based on the delayed digital audio signal Xd(t) and the gain setting signal G(t). For example, the adjusted digital audio signal OUT(t) can be generated based on the gain setting signal G(t) and the delayed digital audio signal Xd(t), as expressed by the equation OUT(t) = G(t)·Xd(t). The gain adjustment circuit 150 can be implemented using an amplifier, a multiplier, a mixer, or any other suitable circuit.
如下文將舉例說明,電路100可以被實現為用於執行音頻信號處理,以針對特定揚聲器類型(例如,具有特定類型的特性(如衝程響應))進行具有衝程估計補償的過衝程保護。 As will be explained below by way of example, circuit 100 can be implemented to perform audio signal processing to provide over-range protection with range estimation compensation for specific speaker types (e.g., speakers having specific types of characteristics such as range response).
例如,揚聲器180可以是第一類型的揚聲器。圖2A示出第一類型的揚聲器的衝程響應的示例。如圖2A所示,由實線曲線表示的第一類型的揚聲器的衝程響應的示例表示低擱架(low shelving)響應,其中水平虛線表示第一類型的揚聲器的示例性衝程閾值(或最大位移)(用Xmax表示)。第一類型的揚聲器可以是各種低頻揚聲器,如低音揚聲器或超低音揚聲器。 For example, speaker 180 may be a first type of speaker. FIG2A illustrates an example of the excursion response of a first type of speaker. As shown in FIG2A , the example excursion response of the first type of speaker, represented by the solid curve, represents a low shelving response, wherein the horizontal dashed line represents an exemplary excursion threshold (or maximum displacement) (denoted by Xmax) of the first type of speaker. The first type of speaker may be various low-frequency speakers, such as a woofer or a subwoofer.
在另一個示例中,揚聲器180可以是第二類型的揚聲器。圖3A示出第二類型的揚聲器的衝程響應的示例。如圖3A所示,由實線曲線表示的第二類型的揚聲器的衝程響應的示例表示峰值響應,其中水平虛線表示第二類型的揚聲器的示例性衝程閾值(或最大位移)(用Xmax表示)。第二類型的揚聲器可以是各種中頻揚聲器。 In another example, speaker 180 may be a second type of speaker. FIG3A illustrates an example of the excursion response of the second type of speaker. As shown in FIG3A , the example of the excursion response of the second type of speaker, represented by the solid curve, represents a peak response, wherein the horizontal dashed line represents an exemplary excursion threshold (or maximum displacement) (denoted by Xmax) of the second type of speaker. The second type of speaker may be various mid-range speakers.
在一些實施例中,補償濾波器120具有用於特定類型的揚聲器180的衝程估計補償的濾波器響應,並且被配置為根據數位音頻信號X(t)和濾波器響應產生補償的數位音頻信號Xc(t)。在一些實施例中,補償濾波器120基於無限脈衝響應(infinite impulse response,IIR)濾波器或有限脈衝響應(finite impulse response,FIR)濾波器。 In some embodiments, compensation filter 120 has a filter response for compensating for impulse estimation of a specific type of speaker 180 and is configured to generate a compensated digital audio signal Xc(t) based on the digital audio signal X(t) and the filter response. In some embodiments, compensation filter 120 is based on an infinite impulse response (IIR) filter or a finite impulse response (FIR) filter.
例如,當揚聲器180屬於第一揚聲器類型並且具有如圖2A所示的擱架響應的衝程響應時,補償濾波器120可以基於低擱架式濾波器的濾波器響應來實現,如圖2B所示。 For example, when the speaker 180 belongs to the first speaker type and has a range response of a shelf response as shown in FIG2A , the compensation filter 120 can be implemented based on the filter response of a low shelf filter, as shown in FIG2B .
在另一個示例中,當揚聲器180屬於第二揚聲器類型並且具有如圖3A所示的峰值響應的衝程響應時,補償濾波器120可以基於峰值濾波器的濾波響應來實現,如圖3B所示。 In another example, when the speaker 180 belongs to the second speaker type and has a peak response as shown in FIG3A , the compensation filter 120 can be implemented based on the filter response of the peak filter, as shown in FIG3B .
在一些實施例中,補償濾波器120的濾波器響應與用於特定類型的揚聲器180的衝程估計補償的特定頻帶相關聯,並且補償濾波器120能夠針對該特定頻帶來放大數位音頻信號X(t)的分量,以產生補償的數位音頻信號Xc(t)。 In some embodiments, the filter response of the compensation filter 120 is associated with a specific frequency band for range estimation compensation for a specific type of speaker 180, and the compensation filter 120 can amplify the component of the digital audio signal X(t) for the specific frequency band to generate the compensated digital audio signal Xc(t).
此外,補償濾波器120的濾波器響應與特定頻帶相關聯,在此特定頻帶中揚聲器180可運作以得到最大衝程。 Furthermore, the filter response of the compensation filter 120 is associated with a specific frequency band in which the speaker 180 can operate to obtain maximum range.
舉例來說,當揚聲器180屬於第一揚聲器類型並且具有如圖2A中的擱架響應,且補償濾波器120基於如圖2B中的低擱架式濾波器的濾波器響應來實現時,補償濾波器120與頻率低於頻率值(例如30、40或50Hz)的特定頻帶相關聯,用於揚聲器180的衝程估計補償,針對特定頻帶來放大數位音頻信號X(t)的分量以產生補償的數位音頻信號Xc(t)。如圖2A所示,在上述特定頻帶中,揚聲器180可運作以具有最大衝程。 For example, when speaker 180 belongs to the first speaker type and has a shelf response as shown in FIG2A , and compensation filter 120 is implemented based on the filter response of a low-shelf filter as shown in FIG2B , compensation filter 120 is associated with a specific frequency band below a frequency value (e.g., 30, 40, or 50 Hz) and is used to compensate for the excursion of speaker 180 . Components of digital audio signal X(t) in the specific frequency band are amplified to generate compensated digital audio signal Xc(t). As shown in FIG2A , speaker 180 can operate to have maximum excursion in the specific frequency band.
在另一個示例中,當揚聲器180屬於第二揚聲器類型並且具有如圖3A中的峰值響應,並且補償濾波器120基於如圖3B中的峰值濾波器的濾波響應來實現時,補償濾波器120與從第一頻率值到第二頻率值(例如從400Hz到1400Hz)的特定頻帶相關聯,用於揚聲器180的衝程估計補償,針對特定頻帶來放 大數位音頻信號X(t)的分量以產生補償的數位音頻信號Xc(t)。如圖3A所示,在上述特定頻帶中,揚聲器180可運作以具有最大衝程。 In another example, when speaker 180 belongs to the second speaker type and has a peak response as shown in FIG3A , and compensation filter 120 is implemented based on the filter response of a peak filter as shown in FIG3B , compensation filter 120 is associated with a specific frequency band from a first frequency value to a second frequency value (e.g., from 400 Hz to 1400 Hz) for use in compensating for the excursion of speaker 180 . Components of digital audio signal X(t) are amplified for the specific frequency band to generate compensated digital audio signal Xc(t). As shown in FIG3A , speaker 180 can operate to have maximum excursion in the specific frequency band.
因此,補償濾波器120能夠根據數位音頻信號X(t)和濾波器響應針對該特定頻帶來放大數位音頻信號X(t)的分量,以產生補償的數位音頻信號Xc(t)。 Therefore, the compensation filter 120 can amplify the component of the digital audio signal X(t) for the specific frequency band according to the digital audio signal X(t) and the filter response to generate a compensated digital audio signal Xc(t).
以下提供示例說明電路100的架構如何透過使用衝程估計補償來解決由於不對稱衝程非線性而導致的過度衝程問題。圖4舉例說明了例如具有擱架響應的衝程響應的第一類型揚聲器的實際負位移(DN)、衝程模型(DM)和實際正位移(DP)。在圖4中,實線DM表示揚聲器的衝程響應。 The following example illustrates how the circuit 100 architecture can address the overexcursion problem caused by asymmetric excursion nonlinearity by using excursion estimation compensation. FIG4 illustrates the actual negative displacement (DN), the excursion model (DM), and the actual positive displacement (DP) of a first type of loudspeaker having an excursion response, such as a shelving response. In FIG4 , the solid line DM represents the excursion response of the loudspeaker.
理論上,如在習知方式中,可以根據基於揚聲器參數(其包括力因子(force factor,Bl)、機械阻尼因子(mechanical damping factor,Rms)、機械質量(mechanical mass,Mms)、機械順應性(mechanical compliance,Cms)和直流電阻(DC resistance,RE))的衝程建模,以對稱的方式獲得衝程響應,且無需考慮不對稱非線性,例如力因子相對於位移的變化。以這種方式獲得的衝程響應通常是揚聲器衝程或位移(單位為mm/V)相對於頻率的傳遞函數的形式。因此,可以根據基於衝程建模獲得的衝程響應來實現衝程估計器130。 Theoretically, as in a learned approach, the impulse response can be obtained symmetrically based on impulse modeling based on loudspeaker parameters (including force factor (Bl), mechanical damping factor (Rms), mechanical mass (Mms), mechanical compliance (Cms), and DC resistance (RE)), without considering asymmetric nonlinearities such as the variation of force factor with respect to displacement. The impulse response obtained in this manner is typically in the form of a transfer function of loudspeaker impulse or displacement (in mm/V) with respect to frequency. Therefore, the impulse estimator 130 can be implemented based on the impulse response obtained based on impulse modeling.
然而,在實際應用中,可以觀察到揚聲器180在可能出現最大衝程的頻帶(例如,頻率低於諸如60Hz的頻率值)中以不對稱的方式產生實際正衝程和實際負衝程。如圖4所示,虛線DN和點虛線DP分別表示透過測量獲得的揚聲器180的實際負衝程和實際正衝程,其中假設在本示例中揚聲器180的最大承受衝程約為0.72毫米(mm),如水平虛線所示。從圖4可以看出,在頻率為20Hz時,儘管根據衝程響應獲得的估計衝程(如實線DM所示)低於最大承受衝程(如 0.72mm),但實際負衝程(如虛線DN所示)超過了最大承受衝程(如0.72mm)。因此,假設在衝程估計路徑中沒有補償濾波器120所提供的衝程估計補償,則根據基於衝程建模獲得的衝程響應來實現的衝程估計器130可能會產生錯誤的估計。在較差的情況下,儘管增益確定電路140被配置為產生具有降低的增益值的增益設定信號,但仍可能發生過度衝程,特別是在揚聲器180可運作產生最大衝程的特定頻帶期間,由於估計的衝程錯誤,從而造成揚聲器180損壞。 However, in actual applications, it can be observed that the loudspeaker 180 produces an asymmetrical positive excursion and an actual negative excursion in the frequency band where the maximum excursion may occur (e.g., frequencies below, for example, 60 Hz). As shown in FIG4 , the dashed line DN and the dot-dashed line DP respectively represent the actual negative excursion and the actual positive excursion of the loudspeaker 180 obtained through measurement, assuming that the maximum excursion of the loudspeaker 180 in this example is approximately 0.72 millimeters (mm), as indicated by the horizontal dashed line. As shown in Figure 4, at a frequency of 20 Hz, although the estimated stroke (shown by the solid line DM) obtained based on the stroke response is lower than the maximum withstand stroke (e.g., 0.72 mm), the actual negative stroke (shown by the dashed line DN) exceeds the maximum withstand stroke (e.g., 0.72 mm). Therefore, if the stroke estimation path lacks the stroke estimation compensation provided by the compensation filter 120, the stroke estimator 130 implemented based on the stroke response obtained through stroke modeling may produce erroneous estimates. In a worse case scenario, even though the gain determination circuit 140 is configured to generate a gain setting signal having a reduced gain value, overexcursion may still occur, particularly during a specific frequency band where the speaker 180 can operate to generate maximum excursion, resulting in damage to the speaker 180 due to an error in the estimated excursion.
從圖4的示例,本揭露的發明人考慮到如上所述的關於不對稱衝程的應用場景,因此透過在衝程估計路徑中使用補償濾波器120引入衝程估計補償,如圖1所示。此後,如圖2B所示,補償濾波器120可以基於低擱架式濾波器的濾波響應來實現。以這種方式,參考圖2B和圖4,濾波器響應可以被配置為具有與第一類型的揚聲器180的擱架響應相關聯的特定頻帶(例如,低於諸如60Hz的頻率值的頻率)。據此,補償濾波器120能夠根據數位音頻信號X(t)及濾波器響應針對特定頻帶來放大數位音頻信號X(t)的分量,以產生補償的數位音頻信號Xc(t)。因此,衝程估計器130在補償濾波器120的支援下,能夠根據補償的數位音頻信號Xc(t)確定揚聲器180的估計的衝程信號Y(t),即使在特定頻帶,例如頻率為20Hz時,也不會低估衝程。 Based on the example of FIG. 4 , the inventors of the present disclosure considered the application scenario regarding asymmetric impulses as described above and therefore introduced impulse estimation compensation by using compensation filter 120 in the impulse estimation path, as shown in FIG. Subsequently, as shown in FIG. 2B , compensation filter 120 can be implemented based on the filter response of a low-shelf filter. In this way, referring to FIG. 2B and FIG. 4 , the filter response can be configured to have a specific frequency band associated with the shelf response of the first type of loudspeaker 180 (e.g., frequencies below a frequency value such as 60 Hz). Accordingly, the compensation filter 120 can amplify components of the digital audio signal X(t) for a specific frequency band based on the digital audio signal X(t) and the filter response to generate a compensated digital audio signal Xc(t). Consequently, with the support of the compensation filter 120, the impulse estimator 130 can determine the estimated impulse signal Y(t) of the speaker 180 based on the compensated digital audio signal Xc(t), without underestimating the impulse even in a specific frequency band, such as a frequency of 20 Hz.
此外,在實現時,例如,衝程估計器130可以利用從頻域中的揚聲器180的衝程響應(例如,用H(s)表示)導出的時域中的脈衝響應(例如,用H(t)表示),以便根據補償的數位音頻信號Xc(t)確定揚聲器180的估計的衝程信號Y(t)。脈衝響應可包括一系列脈衝響應係數。估計的衝程信號Y(t)可以透過補償的數位音頻信號Xc(t)和揚聲器180的脈衝響應的捲積來確定,例如,如方程式所示:Y(t)=Xc(t)*H(t)。 Furthermore, in implementation, for example, the range estimator 130 may utilize a time-domain impulse response (e.g., represented by H(t)) derived from the frequency-domain impulse response of the speaker 180 (e.g., represented by H(s)) to determine an estimated range signal Y(t) of the speaker 180 based on the compensated digital audio signal Xc(t). The impulse response may include a series of impulse response coefficients. The estimated range signal Y(t) may be determined by convolution of the compensated digital audio signal Xc(t) and the impulse response of the speaker 180, for example, as shown in the equation: Y(t)=Xc(t)*H(t).
以下示例顯示不對稱衝程對時域衝程估計的影響。圖5A示出第一頻率(例如20Hz)的音頻波形(例如正弦信號)。圖5B示出沒有從圖5A的輸入信號得出衝程估計補償,回應於圖5A中所示的音頻波形,根據揚聲器的衝程響應的估計位移(例如,如曲線501所示)及透過測量揚聲器的實際位移(例如,如虛線502所示)的示例。在圖5A和5B中,頻率為20Hz時,振幅為1V的音頻信號與振幅為0.675mm的估計衝程(例如揚聲器的振動)相關聯(或相對應)。例如,揚聲器的衝程閾值(Xmax)為0.675毫米。在圖5B中,實際衝程顯現出偏移量(offset),此偏移量可透過比較位移下半週期的實際振幅和理想振幅來確定。偏移量(offset)的計算為:offset=|-0.75|-|-0.675|=0.075毫米。以分貝(dB)為單位的偏移量的計算為:以dB為單位的offset=20*log(|-0.75|/|-0.675|)=+0.915dB。圖5C示出第二頻率(例如40Hz)的音頻波形的示例。圖5D示出沒有從圖5C的輸入信號得出衝程估計補償,回應於圖5C中所示的音頻波形,根據揚聲器的衝程響應的估計位移(例如,如曲線503所示)及透過測量揚聲器的實際位移(例如,如虛線504所示)的示例。 The following examples illustrate the effect of asymmetric impulse on time-domain impulse estimation. FIG5A illustrates an audio waveform (e.g., a sinusoidal signal) at a first frequency (e.g., 20 Hz). FIG5B illustrates an example of an estimated displacement of a loudspeaker based on its impulse response (e.g., as shown by curve 501) and measured actual displacement of the loudspeaker (e.g., as shown by dashed line 502) in response to the audio waveform shown in FIG5A without deriving an impulse estimate compensation from the input signal of FIG5A. In both FIG5A and FIG5B , an audio signal with an amplitude of 1 V at a frequency of 20 Hz is associated with (or corresponds to) an estimated impulse (e.g., vibration of the loudspeaker) with an amplitude of 0.675 mm. For example, the speaker's excursion threshold (Xmax) is 0.675 mm. In Figure 5B , the actual excursion exhibits an offset, which can be determined by comparing the actual amplitude of the second half-cycle of displacement to the ideal amplitude. The offset is calculated as: offset = |-0.75| - |-0.675| = 0.075 mm. The offset in decibels (dB) is calculated as: offset in dB = 20 * log (|-0.75| / |-0.675|) = +0.915 dB. Figure 5C shows an example of an audio waveform at a second frequency (e.g., 40 Hz). FIG5D shows an example of an estimated displacement of a loudspeaker based on its displacement response (e.g., as shown by curve 503) and an actual displacement of the loudspeaker measured (e.g., as shown by dashed line 504) in response to the audio waveform shown in FIG5C, without any displacement estimation compensation derived from the input signal of FIG5C.
在電路100的一些實施例中,增益確定電路140可以被實現為判定估計的衝程信號Y(t)是否大於或等於閾值,例如揚聲器180的預定衝程閾值或最大衝程限制,並根據判定結果產生具有降低的增益值的增益設定信號G(t),以防止揚聲器180過度衝程。若估計的衝程信號Y(t)(例如,其大小或絕對值)大於閾值,增益確定電路140將輸出具有降低的增益值(例如,小於1或0dB)的增益設定信號G(t),以降低延遲的數位音頻信號Xd(t)。若估計的衝程信號Y(t)(例如,其大小或其絕對值)小於或等於閾值,則增益確定電路140輸出具有表示延遲的數位音頻信號Xd(t)不會被修改的增益值(例如,值為1或0dB)的增益設定信號G(t)。 In some embodiments of the circuit 100, the gain determination circuit 140 may be implemented to determine whether the estimated excursion signal Y(t) is greater than or equal to a threshold, such as a predetermined excursion threshold or a maximum excursion limit of the speaker 180, and generate a gain setting signal G(t) having a reduced gain value based on the determination result to prevent over-excursion of the speaker 180. If the estimated excursion signal Y(t) (e.g., its magnitude or absolute value) is greater than the threshold, the gain determination circuit 140 outputs the gain setting signal G(t) having a reduced gain value (e.g., less than 1 or 0 dB) to reduce the delay of the digital audio signal Xd(t). If the estimated impulse signal Y(t) (e.g., its magnitude or its absolute value) is less than or equal to the threshold, the gain determination circuit 140 outputs a gain setting signal G(t) having a gain value (e.g., a value of 1 or 0 dB) indicating that the delayed digital audio signal Xd(t) will not be modified.
例如,使用擱架式濾波器作為補償濾波器120,當數位音頻信號X(t)的分量的頻率(例如用Fin表示)小於或等於特定頻率值(例如60Hz)時,增益確定電路140輸出增益值,以防止揚聲器180的衝程(或線圈位移)超過閾值。 For example, using a shelf filter as the compensation filter 120, when the frequency of a component of the digital audio signal X(t) (e.g., represented by Fin) is less than or equal to a specific frequency value (e.g., 60 Hz), the gain determination circuit 140 outputs a gain value to prevent the excursion (or coil displacement) of the speaker 180 from exceeding a threshold.
透過使用補償濾波器120,當Fin<60Hz時,振幅等於衝程閾值(Xmax)0.675(mm)的估計衝程的示例將被補償(例如,在此情況下,當Fin<60Hz時被放大)為振幅為0.75(mm/V)的補償預測衝程。 By using the compensation filter 120, an example of an estimated stroke with an amplitude equal to the stroke threshold (Xmax) of 0.675 (mm) when Fin < 60 Hz will be compensated (e.g., amplified in this case when Fin < 60 Hz) to a compensated predicted stroke with an amplitude of 0.75 (mm/V).
增益確定電路140確定增益值(例如,用Gv表示),以使補償預測衝程(振幅:0.75(mm/V))變得低於衝程閾值(例如,振幅為0.675(mm))。舉例來說,根據表示輸出衝程振幅(OUT_E)等於輸入衝程振幅(IN_E)乘以增益值(Gv)的公式,即OUT_E=IN_E*Gv,增益值Gv等於0.675/0.75=0.9或20*log(0.9/1)=-0.915dB。因此,可以根據增益值Gv確定增益設定信號G(t)。 Gain determination circuit 140 determines a gain value (e.g., represented by Gv) such that the compensated predicted stroke (amplitude: 0.75 (mm/V)) is lower than the stroke threshold (e.g., amplitude of 0.675 (mm)). For example, according to the formula representing that the output stroke amplitude (OUT_E) is equal to the input stroke amplitude (IN_E) multiplied by the gain value (Gv), i.e., OUT_E = IN_E * Gv, the gain value Gv is equal to 0.675/0.75 = 0.9, or 20 * log (0.9 / 1) = -0.915 dB. Therefore, the gain setting signal G(t) can be determined based on the gain value Gv.
透過計算,可以看出此增益值是如何解決不對稱衝程失真問題。由於實際衝程應在0.675(mm/V)的振幅範圍內,因此延遲的數位音頻信號Xd(t)乘以增益值Gv(例如0.9)對應的位移的振幅理想為0.6075(mm/V)。然後,即使揚聲器的不對稱衝程發生在50Hz以下,位移的實際負週期將為-0.675(mm/V),不會超過(負)衝程閾值(即-Xmax)。 Calculations show how this gain value addresses the issue of asymmetric excursion distortion. Since the actual excursion should be within an amplitude range of 0.675 (mm/V), the displacement amplitude corresponding to the delayed digital audio signal Xd(t) multiplied by the gain value Gv (e.g., 0.9) is ideally 0.6075 (mm/V). Consequently, even if the speaker's asymmetric excursion occurs below 50Hz, the actual negative period of the displacement will be -0.675 (mm/V), never exceeding the (negative) excursion threshold (i.e., -Xmax).
在具有基於峰值響應的衝程響應的另一類型的揚聲器(例如圖3A中示例的第二類型)的實施例中,使用峰值濾波器作為補償濾波器,並且具有補償濾波器120和增益確定電路140的電路100可以被配置為類似地以適當的判斷準則找到增益值Gv,例如,當頻率位於從第一頻率到第二頻率的特定頻帶(例如從400Hz到1400Hz)內時,用於揚聲器180的衝程估計補償。在更進一步的實施例中,電路100可以被配置或實現為透過在適當的時候將上述用於第一和第二類型 的揚聲器的衝程估計補償的上述示例組合起來,用於為其他類型的揚聲器(例如具有基於第一類型和第二類型的揚聲器的組合的衝程響應的揚聲器等)執行具有衝程估計補償的音頻信號處理。 In an embodiment of another type of loudspeaker having a range response based on a peak response (e.g., the second type illustrated in FIG. 3A ), a peak filter is used as a compensation filter, and circuit 100 having compensation filter 120 and gain determination circuit 140 can be configured to similarly find a gain value Gv with appropriate judgment criteria, for example, for range estimation compensation of loudspeaker 180 when the frequency is within a specific frequency band from a first frequency to a second frequency (e.g., from 400 Hz to 1400 Hz). In further embodiments, circuit 100 can be configured or implemented to perform audio signal processing with range estimation compensation for other types of speakers (e.g., speakers having a range response based on a combination of the first and second types of speakers, etc.) by combining the above examples of range estimation compensation for the first and second types of speakers as appropriate.
此外,在一些實施例中,圖1中的增益確定電路140可透過使用動態範圍控制及峰值與保持時間控制來實現。圖6示出基於圖1架構的具有衝程估計補償的音頻信號處理的電路100A的一個實施例。在圖6中,與電路100相比,具有衝程估計補償的音頻信號處理的電路100A的增益確定電路140A包括峰值檢測器141和增益計算電路145。峰值檢測器141用於根據估計的衝程信號Y(t)輸出峰值指示衝程信號(例如,用Yp(t)表示)。增益計算電路145用於根據峰值指示衝程信號Yp(t)和閾值(如衝程閾值或最大衝程限制)產生增益設定信號G(t)。 Furthermore, in some embodiments, gain determination circuit 140 in FIG. 1 can be implemented using dynamic range control and peak and hold time control. FIG. 6 illustrates an embodiment of a circuit 100A for audio signal processing with stroke estimation compensation based on the architecture of FIG. In FIG. 6 , gain determination circuit 140A of circuit 100A for audio signal processing with stroke estimation compensation, compared to circuit 100 , includes a peak detector 141 and a gain calculation circuit 145 . Peak detector 141 is configured to output a peak-indicating stroke signal (e.g., represented by Yp(t)) based on the estimated stroke signal Y(t). The gain calculation circuit 145 is used to generate a gain setting signal G(t) based on the peak indicating stroke signal Yp(t) and a threshold (such as a stroke threshold or a maximum stroke limit).
圖7示出峰值檢測和增益計算的示例。在圖7的上部分,為了方便說明,數位音頻信號X(t)以波形的形式顯示。在圖7的中間部分,顯示了與數位音頻信號X(t)相關聯的具有衝程估計補償的估計的衝程信號Y(t)(mm/V)(例如衝程的絕對值)與峰值指示衝程信號Yp(t)一起示出,其中水平線表示閾值,例如揚聲器的衝程閾值(Xmax)。峰值指示衝程信號Yp(t)例如可以根據估計的衝程信號Y(t)根據峰值檢測方法或平均處理來獲得。舉例來說,峰值檢測方法保留時間視窗中隨時間記錄的估計衝程的最大值;或者另一種峰值檢測方法是透過對時間視窗隨時間進行平均來獲得估計衝程的包絡線。在圖7的下部分顯示了增益設定信號G(t),指示用於調整相關聯的數位音頻信號X(t)(實際上是延遲的數位音頻信號Xd(t))的增益值。例如,當峰值指示衝程信號Yp(t)超過衝程閾值Xmax(例如0.2mm)時,增益設定信號G(t)具有以dB為單位的負值(或小於1的值),例如透過 使用G(t)=Xmax/Yp(t)的方程式。當峰值指示衝程信號Yp(t)低於或小於衝程閾值Xmax(例如0.2mm)時,例如增益設定信號G(t)的相關增益值為0dB(或值等於1)。 Figure 7 illustrates an example of peak detection and gain calculation. For ease of illustration, the upper portion of Figure 7 shows the digital audio signal X(t) as a waveform. The middle portion of Figure 7 shows an estimated range signal Y(t) (mm/V) (e.g., the absolute range value) associated with the digital audio signal X(t) with range estimation compensation, along with a peak-indicating range signal Yp(t). The horizontal line represents a threshold, such as the speaker's range threshold (Xmax). The peak-indicating range signal Yp(t) can be obtained, for example, from the estimated range signal Y(t) using peak detection or averaging. For example, a peak detection method retains the maximum value of the estimated impulse recorded over time within a time window; another peak detection method obtains the envelope of the estimated impulse by averaging the time window over time. The lower portion of Figure 7 shows the gain setting signal G(t), which indicates the gain value used to adjust the associated digital audio signal X(t) (actually, the delayed digital audio signal Xd(t)). For example, when the peak-indicating impulse signal Yp(t) exceeds the impulse threshold Xmax (e.g., 0.2 mm), the gain setting signal G(t) has a negative value (or a value less than 1) in dB, for example, using the equation G(t) = Xmax/Yp(t). When the peak indication stroke signal Yp(t) is lower than or less than the stroke threshold Xmax (e.g., 0.2mm), the corresponding gain value of the gain setting signal G(t) is 0dB (or equal to 1).
圖8示出用於峰值檢測方法的動態範圍壓縮的示例。在圖8中,濾波器800表示用於動態範圍壓縮的阿爾發濾波器(alpha filter)結構,其中係數阿爾發α可以被設定為"a"的值,然後參數奧米伽ω可以設定為1減"a"的值。根據用於平滑信號或變化資料的阿爾發濾波器結構的習知應用,峰值檢測器141可以使用用於峰值保持時間控制的濾波器800來實現,以便根據估計的衝程信號Y(t)平滑輸出峰值指示衝程信號Yp(t)(例如,如圖7中間部分所示)。 FIG8 illustrates an example of dynamic range compression using a peak detection method. In FIG8 , filter 800 represents an alpha filter structure for dynamic range compression, where the coefficient alpha α can be set to a value of "a," and the parameter omega ω can be set to 1 minus the value of "a." Based on the known application of alpha filter structures for smoothing signals or varying data, peak detector 141 can be implemented using filter 800 for peak hold time control, thereby smoothly outputting a peak-indicating impulse signal Yp(t) based on the estimated impulse signal Y(t) (e.g., as shown in the middle portion of FIG7 ).
此外,圖9示出根據本揭露的實施例的具有衝程估計補償的音頻信號處理的方法的流程圖。該方法包括以下步驟S10至S50。 In addition, FIG9 shows a flow chart of a method for audio signal processing with impulse estimation compensation according to an embodiment of the present disclosure. The method includes the following steps S10 to S50.
在步驟S10中,延遲數位音頻信號(例如X(t))以輸出延遲的數位音頻信號(例如Xd(t))。 In step S10, the digital audio signal (e.g., X(t)) is delayed to output a delayed digital audio signal (e.g., Xd(t)).
在步驟S20中,由補償濾波器(例如圖1中的120或相關示例)根據數位音頻信號(例如X(t))產生補償的數位音頻信號(例如Xc(t)),用於一種揚聲器類型(例如上述示例中的第一或第二揚聲器類型)的衝程估計補償。 In step S20, a compensation filter (e.g., 120 in FIG. 1 or related examples) generates a compensated digital audio signal (e.g., Xc(t)) based on a digital audio signal (e.g., X(t)) for use in compensating for the range estimation of a type of speaker (e.g., the first or second speaker type in the above examples).
在步驟S30中,根據補償的數位音頻信號確定該揚聲器類型的估計的衝程信號(例如Y(t))。 In step S30, an estimated impulse signal (e.g., Y(t)) of the speaker type is determined based on the compensated digital audio signal.
在步驟S40中,根據估計的衝程信號及閾值(例如衝程閾值(Xmax))產生增益設定信號(例如G(t))。 In step S40, a gain setting signal (e.g., G(t)) is generated based on the estimated stroke signal and a threshold (e.g., stroke threshold (Xmax)).
在步驟S50中,根據增益設定信號(例如G(t))及延遲的數位音頻信號(例如Xd(t))產生調整後的數位音頻信號(例如OUT(t))。 In step S50, an adjusted digital audio signal (e.g., OUT(t)) is generated based on the gain setting signal (e.g., G(t)) and the delayed digital audio signal (e.g., Xd(t)).
在該方法的一些實施例中,步驟S40可以包括:根據估計的衝程信號輸出峰值指示衝程信號;以及根據峰值指示衝程信號產生增益設定信號。 In some embodiments of the method, step S40 may include: outputting a peak indicating stroke signal based on the estimated stroke signal; and generating a gain setting signal based on the peak indicating stroke signal.
在圖9方法的一些實施例中,也可以應用上述電路100(或100A)的任何一個實施例,或在適當的情況下將其中兩個或多個實施例組合在一起。 In some embodiments of the method of FIG. 9 , any one of the embodiments of the circuit 100 (or 100A) described above may also be applied, or two or more of the embodiments may be combined where appropriate.
在本揭露的一些實施例中,電路100或100A或衝程估計路徑(或衝程估計路徑及信號路徑兩者)的架構可以由可程式電路實現,例如數位信號處理器(digital signal processor,DSP)、現場可程式化閘陣列(field programming gate array,FPGA)、專用積體電路(application specific integrated circuit,ASIC)等。在本揭露的一些實施例中,衝程估計路徑(或衝程估計路徑及信號路徑兩者)可由專用電路實現。電路100或100A也可以作為積體電路或在積體電路內部實現,例如音頻信號處理器或相關音頻晶片。 In some embodiments of the present disclosure, the architecture of circuit 100 or 100A or the pulse estimation path (or both the pulse estimation path and the signal path) can be implemented by a programmable circuit, such as a digital signal processor (DSP), a field programming gate array (FPGA), or an application-specific integrated circuit (ASIC). In some embodiments of the present disclosure, the pulse estimation path (or both the pulse estimation path and the signal path) can be implemented by a dedicated circuit. Circuit 100 or 100A can also be implemented as an integrated circuit or within an integrated circuit, such as an audio signal processor or related audio chip.
本揭露進一步提供一種電腦程式產品,其包括多個指令。這些指令使計算裝置能夠根據上述至少一個實施例執行如圖9所示的具有衝程估計補償的音頻信號處理的方法。在一個實施例中,電腦程式產品包括儲存媒體,例如非暫態儲存媒體,其儲存有電腦可讀指令,例如程式碼,其中所述指令在至少一個計算裝置(例如,具有計算或數位音頻信號或資料處理功能以促進音頻再現的電子裝置,例如行動電話、平板電腦、筆記型電腦、桌上型電腦、多媒體播放器、數位音頻播放器或可擕式無線或有線揚聲器)上執行,從而使至少一個計算裝置執行根據至少一個實施例的方法。該方法以圖9為示例,根據上述實施例中的任何一個或其任意組合來執行。例如,程式碼包括一個或多個程式或程式模組,用於按照圖9中的步驟S10至S50以任何適當的順序執行方法。當計算裝置執行程式碼時,計算裝置根據圖9所示的實施例執行方法。儲存媒體的實施例包括但不限 於光資訊儲存媒體、磁性資訊儲存媒體或記憶體(例如記憶卡、韌體、ROM或RAM)。例如,計算裝置包括通信電路、處理電路及儲存媒體。處理電路電性耦接到通信電路和儲存媒體。在另一個實例中,計算裝置可以包括可程式電路,例如數位信號處理器(DSP)、現場可程式化閘陣列(FPGA)、專用積體電路(ASIC)等,可配置為根據程式碼執行基於圖9的方法。 The present disclosure further provides a computer program product comprising a plurality of instructions that enable a computing device to execute the method for audio signal processing with impulse estimation compensation as shown in FIG9 according to at least one embodiment described above. In one embodiment, a computer program product includes a storage medium, such as a non-transitory storage medium, storing computer-readable instructions, such as program code, wherein the instructions are executed on at least one computing device (e.g., an electronic device having computing or digital audio signal or data processing capabilities to facilitate audio reproduction, such as a mobile phone, tablet computer, laptop computer, desktop computer, multimedia player, digital audio player, or portable wireless or wired speaker), thereby causing the at least one computing device to execute a method according to at least one embodiment. The method is illustrated in FIG. 9 and is executed according to any one or any combination of the above embodiments. For example, the program code includes one or more programs or program modules for executing the method according to steps S10 to S50 in FIG. 9 in any appropriate order. When a computing device executes the program code, the computing device performs the method according to the embodiment shown in FIG. Examples of storage media include, but are not limited to, optical information storage media, magnetic information storage media, or memory (e.g., a memory card, firmware, ROM, or RAM). For example, the computing device includes communication circuitry, processing circuitry, and storage media. The processing circuitry is electrically coupled to the communication circuitry and storage media. In another example, the computing device may include a programmable circuit, such as a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc., which may be configured to execute the method based on FIG. 9 according to a program code.
雖然本揭露內容已透過具體實施例進行了描述,但本領域技術人員可以在不脫離申請專利範圍中所闡述的本揭露內容的範圍和精神的前提下對其進行多種修改和變化。 Although the present disclosure has been described through specific embodiments, those skilled in the art may make various modifications and variations thereto without departing from the scope and spirit of the present disclosure as set forth in the patent application.
100:電路 110:延遲電路 120:補償濾波器 130:衝程估計器 140:增益確定電路 150:增益調整電路 160:數位類比轉換器 170:放大器 180:揚聲器 G(t):增益設定信號 OUT(t):調整後的數位音頻信號 X(t):數位音頻信號 Xc(t):補償的數位音頻信號 Xd(t):延遲的數位音頻信號 Y(t):估計的衝程信號 100: Circuit 110: Delay circuit 120: Compensation filter 130: Threshold estimator 140: Gain determination circuit 150: Gain adjustment circuit 160: Digital-to-analog converter 170: Amplifier 180: Speaker G(t): Gain setting signal OUT(t): Adjusted digital audio signal X(t): Digital audio signal Xc(t): Compensated digital audio signal Xd(t): Delayed digital audio signal Y(t): Estimated threshold signal
Claims (19)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW112135523A TWI899642B (en) | 2023-09-18 | 2023-09-18 | Circuit, method for audio signal processing with excursion estimation compensation, and non-transitory storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW112135523A TWI899642B (en) | 2023-09-18 | 2023-09-18 | Circuit, method for audio signal processing with excursion estimation compensation, and non-transitory storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202514599A TW202514599A (en) | 2025-04-01 |
| TWI899642B true TWI899642B (en) | 2025-10-01 |
Family
ID=96170106
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW112135523A TWI899642B (en) | 2023-09-18 | 2023-09-18 | Circuit, method for audio signal processing with excursion estimation compensation, and non-transitory storage medium |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI899642B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW201531112A (en) * | 2014-01-28 | 2015-08-01 | Htc Corp | Sound producing system and audio amplifying method thereof |
| TW201822544A (en) * | 2016-12-06 | 2018-06-16 | 英商思睿邏輯國際半導體有限公司 | Speaker protection excursion oversight |
| CN111492669A (en) * | 2017-11-29 | 2020-08-04 | 云加速360公司 | Crosstalk cancellation for opposite-facing trans-ear speaker systems |
| CN113132872A (en) * | 2019-12-30 | 2021-07-16 | 哈曼贝克自动系统股份有限公司 | System and method for adaptive control of on-line extraction of speaker parameters |
-
2023
- 2023-09-18 TW TW112135523A patent/TWI899642B/en active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW201531112A (en) * | 2014-01-28 | 2015-08-01 | Htc Corp | Sound producing system and audio amplifying method thereof |
| TW201822544A (en) * | 2016-12-06 | 2018-06-16 | 英商思睿邏輯國際半導體有限公司 | Speaker protection excursion oversight |
| CN111492669A (en) * | 2017-11-29 | 2020-08-04 | 云加速360公司 | Crosstalk cancellation for opposite-facing trans-ear speaker systems |
| CN113132872A (en) * | 2019-12-30 | 2021-07-16 | 哈曼贝克自动系统股份有限公司 | System and method for adaptive control of on-line extraction of speaker parameters |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202514599A (en) | 2025-04-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10734959B2 (en) | Sound processing device and method to suppress an excessive amplitude | |
| TWI521981B (en) | Control method of sound producing, sound producing apparatus, and portable apparatus | |
| US8223981B2 (en) | Wide dynamic range microphone | |
| US9014380B2 (en) | Control of a loudspeaker output | |
| CN101267223B (en) | Bass enhancing method, signal processing device, and audio reproducing system | |
| US20120051558A1 (en) | Method and apparatus for reproducing audio signal by adaptively controlling filter coefficient | |
| TWI651971B (en) | Hand-held electronic apparatus, sound producing system and control method of sound producing thereof | |
| US20130077795A1 (en) | Over-Excursion Protection for Loudspeakers | |
| JP6182869B2 (en) | Audio playback device | |
| NL2014251A (en) | Echo cancellation methodology and assembly for electroacoustic communication apparatuses. | |
| JPWO2013183102A1 (en) | Signal processing device | |
| CN111885476A (en) | System and method for magnetic flux-based compensation for nonlinear behavior of acoustic transducers | |
| CN111885475A (en) | System and method for compensating for nonlinear behavior of an acoustic transducer | |
| CN111741409A (en) | Method for compensating for non-linearity of speaker, speaker apparatus, device, and storage medium | |
| US10491179B2 (en) | Asymmetric multi-channel audio dynamic range processing | |
| US20030118193A1 (en) | Method and system for digitally controlling a speaker | |
| TWI899642B (en) | Circuit, method for audio signal processing with excursion estimation compensation, and non-transitory storage medium | |
| US20250097637A1 (en) | Circuit, method for audio signal processing with excursion estimation compensation, and non-transitory storage medium | |
| WO2022141404A1 (en) | Method for adjusting a loudspeaker, a loudspeaker and an electronics device | |
| CN120529231A (en) | Audio signal processing circuit, method and storage medium with stroke estimation compensation | |
| JP6102268B2 (en) | Audio playback device | |
| US12231860B2 (en) | Measurement-based loudspeaker excursion limiting | |
| JP2014090285A (en) | Audio reproduction device | |
| CN110431854A (en) | audio signal processing device | |
| JP2018207318A (en) | Voice processing device, control method therefor, program and storage medium |