The present disclosure relates to circuits and methods for audio signal processing with speaker excursion protection, and in particular to circuits, methods for audio signal processing with excursion estimation compensation and non-transitory storage medium.
Loudspeakers operate according to variations in electric current which causes variations in the magnetic field produced by an electromagnet. These variations cause the cone of the speaker to move. As a result, the cone movement creates pressure variation in the air and forms sound waves.
Excursion describes the distance it travels back and forth from its normal resting position. Over-excursion occurs when excursion limit of the diaphragm of a speaker is exceeded beyond its limits which can exhibit nonlinear damping, distorted sound in damage to the loudspeaker or a much shorter lifetime for the loudspeaker. Additionally, when over-excursion of a diaphragm occurs, the sound emitted by the speaker is distorted due to nonlinearity which can damage the speaker and voice-coil.
An objective of the present disclosure is to provide circuits and methods for audio signal processing with speaker excursion protection, and in particular to circuits and methods for audio signal processing with excursion estimation compensation.
To achieve at least the above objective, the present disclosure provides a circuit for audio signal processing with excursion estimation compensation. The circuit comprises a delay circuit, a compensation filter, an excursion estimator, a gain determination circuit, and a gain adjustment circuit. The delay circuit is for delaying a digital audio signal to output a delayed digital audio signal. The compensation filter is for generating a compensated digital audio signal according to the digital audio signal for excursion estimation compensation for a speaker type. The excursion estimator is for determining an estimated excursion signal for the speaker type according to the compensated digital audio signal. The gain determination circuit is for generating a gain setting signal according to the estimated excursion signal and a threshold value. The gain adjustment circuit is for generating an adjusted digital audio signal according to the gain setting signal and the delayed digital audio signal.
To achieve at least the above objective, the present disclosure provides a method for audio signal processing with excursion estimation compensation. The method comprises the following steps. A digital audio signal is delayed to output a delayed digital audio signal. A compensated digital audio signal is generated by a compensation filter according to the digital audio signal for excursion estimation compensation for a speaker type. An estimated excursion signal for the speaker type is determined according to the compensated digital audio signal. A gain setting signal is generated according to the estimated excursion signal and a threshold value. An adjusted digital audio signal is generated according to the gain setting signal and the delayed digital audio signal.
In some embodiments of the circuit or the method, the compensation filter has a filter response for excursion estimation compensation for the speaker type and is configured to generate the compensated digital audio signal according to the digital audio signal and the filter response.
In some embodiments of the circuit or the method, the filter response of the compensation filter is associated with a specific frequency band for excursion estimation compensation for the speaker type and the compensation filter is capable of amplifying components of the digital audio signal with respect to the specific frequency band to generate the compensated digital audio signal.
In some embodiments of the circuit or the method, the filter response of the compensation filter is associated with a specific frequency band in which a speaker of the speaker type is operable to have a maximum excursion.
In some embodiments of the circuit or the method, the compensation filter is capable of amplifying components of the digital audio signal with respect to the specific frequency band to generate the compensated digital audio signal according to the digital audio signal and the filter response.
In some embodiments of the circuit or the 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 the method, the compensation filter is based on a shelving filter for excursion estimation compensation for a speaker type having a shelving response.
In some embodiments of the circuit or the method, the compensation filter is based on a peaking filter for excursion estimation compensation for a speaker type having a peaking response.
In some embodiments of the circuit, the gain determination circuit comprises a peak detector and a gain calculation circuit. The peak detector is for outputting a peak indication excursion signal according to the estimated excursion signal. The gain calculation circuit is for generating the gain setting signal according to the peak indication excursion signal and the threshold value.
In some embodiments of the method, generating the gain setting signal according to the estimated excursion signal and a threshold value comprises: outputting a peak indication excursion signal according to the estimated excursion signal; and generating the gain setting signal according to the peak indication excursion signal.
To facilitate understanding of the object, characteristics and effects of this present disclosure, embodiments together with the attached drawings for the detailed description of the present disclosure are provided.
The circuit 100 comprises a delay circuit 110, a compensation filter 120, an excursion estimator 130, a gain determination circuit 140, and a gain adjustment circuit 150. From another aspect, the circuit 100 can be regarded as including a signal path and an excursion estimation path. The signal path includes the delay circuit 110 and gain adjustment circuit 150 from an input terminal to an output terminal of the circuit 100. The excursion estimation path includes the compensation filter 120, excursion estimator 130, and gain determination circuit 140 between the input terminal and gain adjustment circuit 150.
In the signal path, the delay circuit 110 is for delaying the digital audio signal X(t) to output a delayed digital audio signal Xd(t). Since the audio signal processing in the estimated excursion path requires a processing time, the delay circuit 110 can be configured to delay the digital audio signal X(t) with a delay time in line with the processing time so that the gain adjustment circuit 150 can generate an adjusted digital audio signal OUT(t) according to the delayed digital audio signal Xd(t) and a gain setting signal G(t) from the estimated excursion path.
In the estimated excursion path, the compensation filter 120 is for generating a compensated digital audio signal (denoted by Xc(t)) according to the digital audio signal X(t) for excursion estimation compensation for the speaker 180. The compensation filter 120 can be implemented to generate the compensated digital audio signal Xc(t) with respect to a type of speaker (or referred to as a speaker type) to which the speaker 180 belongs so as to compensate for asymmetry excursion of the speaker 180 correspondingly. The excursion estimator 130 is for determining an estimated excursion signal Y(t) for the speaker 180 according to the compensated digital audio signal Xc(t). The excursion estimator 130 can be implemented to use an excursion response for the speaker 180 to determine the estimated excursion signal Y(t), which represents estimated loudspeaker excursion being variable according to the compensated digital audio signal. The gain determination circuit 140 is for generating a gain setting signal G(t) according to the estimated excursion signal Y(t) and a threshold value. The gain determination circuit 140 can be realized to determine whether the estimated excursion signal Y(t) satisfies a criterion based on the threshold value. For example, if the estimated excursion signal Y(t) satisfies the criterion, such as whether the estimated excursion signal Y(t) is greater than the threshold value, such as a predetermined excursion threshold value or a maximum excursion limit allowable for the speaker 180, then the gain determination circuit 140 generates the gain setting signal G(t) having a reduced gain value to prevent over-excursion of the speaker 180.
The gain adjustment circuit 150 is for generating an adjusted digital audio signal OUT(t) according to 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), such as expressed by an equation OUT(t)=G(t)·Xd(t). The gain adjustment circuit 150 can be implemented by using an amplifier, a multiplier, or a mixer, or any appropriate circuit.
As will be exemplified below, the circuit 100 can be implemented to perform audio signal processing for over-excursion protection with excursion estimation compensation for a specific speaker type, for example, with a specific type of characteristic, such as excursion responses.
For example, the speaker 180 may be of a first type of speakers.
In another example, the speaker 180 may be of a second type of speakers.
In some embodiments, the compensation filter 120 has a filter response for excursion estimation compensation for a specific type of the speaker 180 and is configured to generate the compensated digital audio signal Xc(t) according to the digital audio signal X(t) and the filter response. In some embodiments, the compensation filter 120 is based on an infinite impulse response (IIR) filter, or a finite impulse response (FIR) filter.
For example, the compensation filter 120 can be implemented based on a filter response of a low shelving filter, as illustrated in
In another example, the compensation filter 120 can be implemented based on a filter response of a peaking filter, as illustrated in
In some embodiments, the filter response of the compensation filter 120 is associated with a specific frequency band for excursion estimation compensation for a specific type of the speaker 180 and the compensation filter 120 is capable of amplifying components of the digital audio signal X(t) with respect to the specific frequency band to generate the compensated digital audio signal Xc(t).
In addition, the filter response of the compensation filter 120 is associated with a specific frequency band in which the speaker 180 is operable to have a maximum excursion.
For example, when the speaker 180 is of the first speaker type and has a shelving response as in
In another example, when the speaker 180 is of the second speaker type and has a peaking response as in
Accordingly, the compensation filter 120 is capable of amplifying components of the digital audio signal X(t) with respect to a specific frequency band to generate the compensated digital audio signal Xc(t) according to the digital audio signal X(t) and the filter response.
The following provides examples for illustrating how the architecture of the circuit 100 addresses an issue of over-excursion due to asymmetry excursion nonlinearity by using excursion estimation compensation.
In theory, the excursion response can be obtained according to excursion modeling based on speaker parameters, including force factor (B1), mechanical damping factor (Rms), mechanical mass (Mms), mechanical compliance (Cms), and DC resistance (RE), in a symmetrical manner and regardless of asymmetrical nonlinearity, such as variation of force factor with respect to displacement, as in conventional approaches. The excursion response obtained in this manner is generally in form of a transfer function of loudspeaker excursion or displacement (unit as mm/V) with respect to frequency. Thus, the excursion estimator 130 can be implemented according to an excursion response obtained based on the excursion modeling.
However, in practical applications, the speaker 180 can be observed to produce real positive excursions and real negative excursions in an asymmetrical manner in a frequency band (e.g., frequencies lower than a frequency value such as 60 Hz) in which the maximum excursion may occur, in particular. As shown in
From the examples of
Further, in implementation, for example, the excursion estimator 130 can utilize an impulse response (e.g., denoted by H(t)) in time domain derived from the excursion response of the speaker 180 (e.g., denoted by H(s)) in frequency domain in order to determine an estimated excursion signal Y(t) for the speaker 180 according to the compensated digital audio signal Xc(t). The impulse response may include a series of impulse response coefficients. The estimated excursion signal Y(t) can be determined by convolution of the compensated digital audio signal Xc(t) and impulse response of the speaker 180, for example, as expressed by an equation: Y(t)=Xc(t)*H(t).
The following examples demonstrate the impacts of asymmetrical excursion on excursion estimation in time domain.
In some embodiment of the circuit 100, the gain determination circuit 140 can be realized to determine whether the estimated excursion signal Y(t) is greater than or equal to a threshold value, such as a predetermined excursion threshold value or a maximum excursion limit for the speaker 180 and to generate a gain setting signal G(t) having a reduced gain value according to the results of the determination so as to prevent over-excursion of the speaker 180. If the estimated excursion signal Y(t) (e.g., its magnitude or its absolute value) is greater than the threshold value, the gain determination circuit 140 outputs the gain setting signal G(t) with a reduced gain value (e.g., a value less than 1 or 0 dB) to reduce the delayed digital audio signal Xd(t). If the estimated excursion signal Y(t) (e.g., its magnitude or its absolute value) is less than or equal to the threshold value, the gain determination circuit 140 outputs the gain setting signal G(t) with a gain value (e.g., a value of 1 or 0 dB) which indicates the delayed digital audio signal Xd(t) will not be modified.
For example, using a shelving filter as the compensation filter 120, when the frequency (e.g., denoted by Fin) of a component of the digital audio signal X(t) is less than or equal to a specific frequency value (e.g., 60 Hz), the gain determination circuit 140 outputs a gain value so as to prevent excursion (or coil displacement) of the speaker 180 over the threshold value.
By using the compensation filter 120, when Fin<60 Hz, the example of estimated excursion with an amplitude equal to the excursion threshold (Xmax) 0.675 (mm) will be compensated (e.g., amplified in this case when Fin<60 Hz) to a compensated predicted excursion with an amplitude of 0.75 (mm/V).
The gain determination circuit 140 determines a gain value (e.g., denoted by Gv) to make the compensated predicted excursion (amplitude: 0.75 (mm/V)) become under the excursion threshold (e.g., an amplitude of 0.675 (mm)). For example, according to an equation indicating an output excursion amplitude (OUT_E) is equal to an input excursion 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. Accordingly, the gain setting signal G(t) can be determined according to the gain value Gv.
By calculation, it can be seen how this gain value serves to resolve the asymmetrical excursion distortion issue. Because the actual excursion should be within an amplitude of 0.675 (mm/V), the delayed digital audio signal Xd(t) multiplied by the gain value Gv (e.g., 0.9) corresponds to a displacement with an amplitude of 0.6075 (mm/V) ideally. Then, the actual negative cycle of the displacement will be −0.675 (mm/V), without exceeding a (negative) excursion threshold (i.e., −Xmax) even though asymmetry excursion of the speaker occurs under 50 Hz.
In an embodiment for another type of speakers (e.g., the second type as exemplified in
Further, in some embodiments, the gain determination circuit in
Further,
In step S10, a digital audio signal (e.g., X(t)) is delayed to output a delayed digital audio signal (e.g., Xd(t)).
In step S20, a compensated digital audio signal (e.g., Xc(t)) is generated by a compensation filter (e.g., 120 in
In step S30, an estimated excursion signal (e.g., Y(t)) for the speaker type is determined according to the compensated digital audio signal.
In step S40, a gain setting signal (e.g., G(t)) is generated according to the estimated excursion signal and a threshold value, such as an excursion threshold (Xmax).
In step S50, an adjusted digital audio signal (e.g., OUT(t)) is generated according to the gain setting signal (e.g., G(t)) and the delayed digital audio signal (e.g., Xd(t)).
In some embodiments of the method, step S40 may comprise: outputting a peak indication excursion signal according to the estimated excursion signal; and generating the gain setting signal according to the peak indication excursion signal.
In some embodiments of the method in
In some embodiments of the present disclosure, the architecture of the circuit 100 or 100A, or the excursion estimation path (or both excursion estimation path and the signal path), can be implemented by a programmable circuit, such as digital signal processor (DSP), field programming gate array (FPGA), application specific integrated circuit (ASIC), and so on. In some embodiments of the present disclosure, the excursion estimation path (or both the excursion estimation path and signal path) can be implemented by dedicated circuitry. The circuit 100 or 100A can also be implemented as or inside an integrated circuit, such as an audio signal processor or related audio chip.
The present disclosure further provides a computer program product which comprises multiple instructions. The instructions enable a computing device to execute a method for audio signal processing with excursion estimation compensation, as illustrated in
While the present disclosure has been described by using specific embodiments, numerous modifications and variations could be made thereto by those skilled in the art without departing from the scope and spirit of the present disclosure set forth in the claims.