CN114390406A - Method and device for controlling displacement of loudspeaker diaphragm - Google Patents
Method and device for controlling displacement of loudspeaker diaphragm Download PDFInfo
- Publication number
- CN114390406A CN114390406A CN202011111996.5A CN202011111996A CN114390406A CN 114390406 A CN114390406 A CN 114390406A CN 202011111996 A CN202011111996 A CN 202011111996A CN 114390406 A CN114390406 A CN 114390406A
- Authority
- CN
- China
- Prior art keywords
- displacement
- loudspeaker
- frequency
- prediction model
- frequency parameter
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R9/00—Transducers of moving-coil, moving-strip, or moving-wire type
- H04R9/02—Details
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R9/00—Transducers of moving-coil, moving-strip, or moving-wire type
- H04R9/06—Loudspeakers
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The embodiment of the application provides a method and a device for controlling loudspeaker diaphragm displacement, relates to the field of audio processing, and can play the potential of loudspeaker hardware and improve the loudspeaker external loudness. The method comprises the following steps: obtaining a first displacement prediction model comprising one or more correction coefficients, the correction coefficients being used to control the output of the first displacement prediction model; adjusting a correction coefficient in the first displacement prediction model to obtain a second displacement prediction model; the absolute value of the difference value between the predicted displacement output by the second displacement prediction model and the actual displacement of the diaphragm is smaller than the absolute value of the difference value between the predicted displacement output by the first displacement prediction model and the actual displacement; and controlling the gain of the input signal of the loudspeaker according to the displacement protection threshold value of the loudspeaker and the predicted displacement output by the second displacement prediction model, so that the diaphragm displacement of the loudspeaker playing the input signal is smaller than or equal to the displacement protection threshold value.
Description
Technical Field
The embodiment of the application relates to the field of audio processing, in particular to a method and a device for controlling the displacement of a loudspeaker diaphragm.
Background
In order to improve subjective experiences of the terminal device such as the volume of the loudspeaker, in an actual working scene, a large driving voltage is usually applied to the loudspeaker in the terminal device to enable the loudspeaker to work in a large-signal state, and a loudspeaker diaphragm working in the large-signal state has large displacement and even sometimes reaches a physical limit state of the loudspeaker diaphragm. Therefore, without applying displacement protection to the speaker, a large signal condition may cause a voice coil of the speaker to generate noise and even damage the entire speaker.
Currently, displacement protection is implemented in the industry by using a displacement prediction model to predict diaphragm displacement of a loudspeaker, input voltage into the displacement prediction model to obtain predicted displacement, and when the predicted displacement exceeds a corresponding threshold, integral attenuation is performed on the input voltage to perform displacement protection. In the process of implementing displacement protection, the actual voltage and current of the loudspeaker are collected to correct or update the displacement prediction model.
However, the current displacement protection influences the improvement of loudspeaker external loudness, and the potential of loudspeaker hardware cannot be developed to the maximum extent. For example, the displacement prediction models currently used for implementing displacement protection include a displacement transfer function obtained according to an impedance curve, or a linear (TS) parameter model, and both of the two displacement prediction models have large errors and cannot reflect the loudspeaker characteristics under complex conditions such as the change of working state, aging and the like, such as creep of a loudspeaker or leakage of an inverter box, so that the predicted displacement of the loudspeaker diaphragm is larger than the actual displacement of the loudspeaker diaphragm, and further, the gain of an input signal is controlled to be too large. Alternatively, for input signals of the same voltage magnitude, the displacement of the loudspeaker at different frequencies is different, but currently the input signal is gain-controlled in the time domain according to a threshold value, and the control degree is the same for all frequency components of the input signal. Moreover, in order to achieve loudspeaker displacement protection at all frequencies, the threshold is usually set to be small, which may result in not maximizing loudspeaker performance at some frequencies.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling loudspeaker diaphragm displacement, which can exert the potential of loudspeaker hardware and improve the external loudness of a loudspeaker.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, a method of controlling a displacement of a loudspeaker diaphragm may include: obtaining a first displacement prediction model comprising one or more correction coefficients, the first displacement prediction model being for simulating a performance of the loudspeaker to predict a displacement of a diaphragm of the loudspeaker, the correction coefficients being for controlling an output of the first displacement prediction model; adjusting a correction coefficient in the first displacement prediction model to obtain a second displacement prediction model; the absolute value of the difference value between the predicted displacement output by the second displacement prediction model and the actual displacement of the diaphragm is smaller than the absolute value of the difference value between the predicted displacement output by the first displacement prediction model and the actual displacement; the actual displacement of the diaphragm is an actual measurement value of the moving distance of the diaphragm relative to the initial position; controlling the gain of the input signal of the loudspeaker according to the displacement protection threshold value of the loudspeaker and the predicted displacement output by the second displacement prediction model, so that the diaphragm displacement of the loudspeaker playing the input signal is smaller than or equal to the displacement protection threshold value; the displacement protection threshold is the maximum displacement of the diaphragm.
According to the method for controlling the loudspeaker diaphragm displacement, provided by the embodiment of the application, the displacement prediction model of the loudspeaker is configured with the correction coefficients, different correction coefficients are used for controlling the output of the displacement prediction model at different frequency positions, and then the correction coefficients in the displacement prediction model are adjusted according to the actual displacement of the loudspeaker diaphragm until the difference between the prediction displacement output by the adjusted displacement prediction model and the actual displacement of the loudspeaker diaphragm is minimum. Therefore, the displacement prediction model can reflect the characteristics of the loudspeaker more truly, the output prediction displacement is more accurate, and further the displacement protection can be more accurately carried out, so that the hardware potential of the loudspeaker is maximally exerted on the premise of protecting the displacement of the diaphragm of the loudspeaker, and the loudspeaker loud-speaking degree is improved.
In a possible implementation manner, the first displacement prediction model and the second displacement prediction model may further include initial parameters, where the initial parameters are parameters related to hardware characteristics of the speaker in the displacement prediction model; the method for controlling the displacement of the loudspeaker diaphragm provided by the application can further comprise the following steps: collecting the current and the voltage of a loudspeaker to obtain an impedance curve; extracting direct current resistance Re and resonance frequency of loudspeaker in impedance curvef 0; calculating a real-time stiffness coefficient Kms of the loudspeaker, wherein the Kms satisfies the following expression: kms ═ (2. pi. f)0)2Mms, Mms is the vibrating mass of the loudspeaker. And updating the initial parameter Kms of the second displacement prediction model to the real-time Kms. The initial parameters in the currently used displacement prediction model are updated according to the real-time initial parameters, and the currently used displacement prediction model is dynamically corrected, so that the displacement prediction model reflects the characteristics of the loudspeaker more truly, the output predicted displacement is more accurate, and further, the displacement protection can be more accurately carried out.
In another possible implementation manner, the method for controlling the displacement of the loudspeaker diaphragm provided by the present application may further include: and acquiring an impedance curve of the loudspeaker, and determining initial parameters of the first displacement prediction model according to the impedance curve. When the displacement prediction model is initially established, the initial parameters are determined according to the impedance curve, and the modeling operation is completed.
In another possible implementation manner, obtaining an impedance curve of the speaker, and determining an initial parameter of the first displacement prediction model according to the impedance curve may specifically be implemented as: inputting a preset input signal into a loudspeaker, and collecting the voltage and the current of the loudspeaker; determining an impedance curve of the loudspeaker according to the voltage and the current; and determining initial parameters of the displacement prediction model through curve fitting or parameter identification according to the impedance curve.
In another possible implementation manner, adjusting the correction coefficient in the first displacement prediction model may specifically be implemented as: adjusting a correction coefficient in the first displacement prediction model by the first correction and/or the second correction. The first correction comprises repeatedly adjusting one or more correction coefficients in the displacement prediction model until the absolute value of the difference between the predicted displacement output by the displacement prediction model and the actual displacement of the diaphragm is minimum; the second correction includes adjusting correction coefficients in an Infinite Impulse Response (IIR) filter superimposed on the displacement prediction model until the absolute value of the difference between the predicted displacement output by the displacement prediction model and the actual displacement of the diaphragm is minimized. In the implementation mode, various modes for adjusting the correction parameters are provided, so that the feasibility of the scheme is increased, and the matching degree of the second displacement prediction model and the actual loudspeaker diaphragm characteristic is increased.
In another possible implementation manner, the first displacement prediction model and the second displacement prediction model satisfy the following expression:therein, ax0=1, d0=α*spk.Kms*spk.Re,bj=d0+d1+d2,bx2=bx3=-bx0。fsThe method comprises the following steps that a, alpha, beta, gamma and omega are correction coefficients, alpha is used for adjusting low-frequency output of a displacement prediction model, beta is used for adjusting output of a frequency interval containing the resonance frequency of a loudspeaker of the displacement prediction model, gamma is used for adjusting medium-frequency output of the displacement prediction model, and omega is used for adjusting full-frequency-band output of the displacement prediction model; bl is the coefficient of magnetic force of the loudspeaker in the initial parameters, spk kms is the coefficient of stiffness of the loudspeaker in the initial parameters, and spk rms is the power of the loudspeaker in the initial parameters. This implementation provides a filter-form expression of the displacement prediction model in the z-domain.
In another possible implementation, the IIR filter may satisfy the following expression:wherein, the correction coefficient in the IIR filter is a shape parameter q, a cut-off frequency parameter K and a gain parameter V0。K=tan(π*fc/fs),fsIs the sampling rate, fcThe cutoff frequency of the IIR filter. When the gain of the IIR filter is larger than or equal to 0, V0=10gain/20,b0=(1+V0*K/q+K*K)/Den,b1=2*(K*K-1)/Den,b2=(1-V0*K/q+K*K)/Den,a0=1,a1=b2,a2(1-K/q + K)/Den, Den ═ 1+ K/q + K. When gain of IIR filter is less than 0, V0=10-gain/20,b0=(1+K/q+K*K)/Den,b1=2*(K*K-1)/Den,b2=(1-K/q+K*K)/Den,a0=1,a1=b2,a2=(1-V0*K/q+K*K)/Den,Den=1+V0K/q + K. This implementation provides an expression in the z-domain of an IIR filter superimposed on a displacement prediction model.
In another possible implementation manner, the gain of the input signal of the speaker is controlled according to the displacement protection threshold of the speaker and the predicted displacement output by the second displacement prediction model, which may be specifically implemented as: determining a first frequency parameter, wherein the attenuation of the audio signals of different frequencies is different by the first frequency parameter, and a high-pass filter indicated by the first frequency parameter is used for suppressing low-frequency signals with the frequency outside a passband and medium-high frequency signals with the frequency inside the passband; after the predicted displacement output by the second displacement prediction model is filtered by the first frequency parameter, the absolute value of the difference value between the predicted displacement and the displacement protection threshold value of the loudspeaker is minimum; and filtering the input signal of the loudspeaker by adopting the first frequency parameter, so that the displacement of a diaphragm of the loudspeaker playing the input signal is less than or equal to a displacement protection threshold value. The low-frequency signal is suppressed through the determined frequency coefficient, the audio signals with different frequencies are attenuated through the medium-high frequency signals, and because the vibration diaphragm displacement of the loudspeaker is mainly generated by the low-frequency signals, the influence of the gain of the input signal on the vibration diaphragm displacement can be effectively controlled, the loudness of the sound signal can not be reduced obviously, and the output of the loudspeaker is restrained to the lowest degree. The gain of the input signal of the loudspeaker is controlled through a high-pass filtering mode, namely different displacement protection thresholds are set at different frequencies, so that the potential of hardware of the loudspeaker at different frequencies is ensured to be exerted, and the external loudness of the loudspeaker is improved.
In another possible implementation manner, determining the first frequency parameter may specifically be implemented as: filtering the predicted displacement output by the second displacement prediction model by adopting n groups of frequency parameters; wherein, the passbands of the n groups of frequency parameters are different; n is greater than 2; a set of frequency parameters attenuates audio signals differently for different frequencies; selecting two groups of frequency parameters of which the filtering output values are positioned on two sides of the displacement protection threshold value and the absolute value of the difference value between the filtering output values and the displacement protection threshold value is minimum; a first frequency parameter is selected within a frequency parameter interval comprising two sets of frequency parameters.
In another possible implementation manner, selecting a first frequency parameter in a frequency parameter interval including two sets of frequency parameters includes: interpolating between the two groups of frequency parameters to obtain a plurality of groups of frequency parameters to be selected; and selecting the frequency parameter to be selected with the smallest absolute value of the difference between the filtering output value of the prediction displacement output by the second displacement prediction model and the displacement protection threshold value from the multiple groups of frequency parameters to be selected as the first frequency parameter. The candidate frequency parameters are generated through interpolation, the candidate frequency parameter with the minimum absolute value of the difference value between the filtering output value of the prediction displacement output by the second displacement prediction model and the displacement protection threshold value is selected, and the displacement of the vibrating diaphragm is smaller than or equal to the displacement protection threshold value after the selected frequency parameter filters the input signal of the loudspeaker, so that the maximum signal is input on the basis of displacement protection, and the loudness of the loudspeaker is improved.
In another possible implementation manner, the candidate frequency parameters, of which the filter output value of the predicted displacement output by the second displacement prediction model is equal to the displacement protection threshold, are selected from multiple groups of candidate frequency parameters as the first frequency parameters.
In another possible implementation manner, filtering the input signal of the speaker by using the first frequency parameter may specifically be implemented as: modifying the first frequency parameter into a second frequency parameter, wherein the second frequency parameter and the current filtering frequency parameter meet the smoothing coefficient; and filtering the input signal of the loudspeaker by adopting a second frequency parameter, so that the displacement of a vibrating diaphragm of the loudspeaker playing the input signal is less than or equal to a displacement protection threshold value. And the transition is carried out through the smoothing coefficient, so that sudden loudness change of the loudspeaker playing is avoided.
In another possible implementation manner, the method for controlling the displacement of the loudspeaker diaphragm provided by the present application may further include: determining the real-time temperature of the loudspeaker according to the impedance of the loudspeaker, wherein the real-time temperature T of the loudspeaker meets the following expression:sigma is the temperature rise coefficient, Re is the impedance of the loudspeaker, Re0Impedance of loudspeaker at room temperature, T0Is a preset room temperature; determining a frequency correction coefficient according to the real-time temperature, wherein the frequency correction coefficient Coeff meets the following expression:Thotis a thermal state temperature threshold, TcoldFor cold state temperature threshold, Coeff0The initial frequency correction coefficient; and correcting the frequency parameter of the filtering according to the Coeff, and filtering the input signal of the loudspeaker by using the corrected frequency parameter.
In a second aspect, another method of controlling displacement of a loudspeaker diaphragm is provided, which may include: determining a first frequency parameter, wherein the attenuation of the audio signals of different frequencies is different by the first frequency parameter, and a high-pass filter indicated by the first frequency parameter is used for suppressing low-frequency signals with the frequency outside a passband and medium-high frequency signals with the frequency inside the passband; after the predicted displacement output by the displacement prediction model is filtered by the first frequency parameter, the absolute value of the difference value between the predicted displacement and the displacement protection threshold value of the loudspeaker is minimum; the displacement protection threshold value is the maximum displacement of the diaphragm; and filtering the input signal of the loudspeaker by adopting the first frequency parameter, so that the displacement of a vibrating diaphragm of the loudspeaker playing the input signal is less than or equal to the displacement protection threshold of the loudspeaker.
According to the method for controlling the loudspeaker diaphragm displacement, the low-frequency signal is suppressed through the determined frequency coefficient, different attenuations are carried out on the audio signals with different frequencies through the medium-high frequency signals, and the influence of the input signal gain on the diaphragm displacement can be effectively controlled due to the fact that the diaphragm displacement of the loudspeaker is mainly generated by the low-frequency signals, the loudness of the sound signals cannot be obviously reduced, and the output of the loudspeaker is restrained to the lowest degree. The gain of the input signal of the loudspeaker is controlled through a high-pass filtering mode, namely different displacement protection thresholds are set at different frequencies, so that the potential of hardware of the loudspeaker at different frequencies is ensured to be exerted, and the external loudness of the loudspeaker is improved.
In a possible implementation manner, determining the first frequency parameter may specifically be implemented as: filtering the predicted displacement output by the second displacement prediction model by adopting n groups of frequency parameters; wherein, the passbands of the n groups of frequency parameters are different; n is greater than 2; a set of frequency parameters attenuates audio signals differently for different frequencies; selecting two groups of frequency parameters of which the filtering output values are positioned on two sides of the displacement protection threshold value and the absolute value of the difference value between the filtering output values and the displacement protection threshold value is minimum; a first frequency parameter is selected within a frequency parameter interval comprising two sets of frequency parameters.
In another possible implementation manner, selecting a first frequency parameter in a frequency parameter interval including two sets of frequency parameters includes: interpolating between the two groups of frequency parameters to obtain a plurality of groups of frequency parameters to be selected; and selecting the frequency parameter to be selected with the smallest absolute value of the difference between the filtering output value of the prediction displacement output by the second displacement prediction model and the displacement protection threshold value from the multiple groups of frequency parameters to be selected as the first frequency parameter. The candidate frequency parameters are generated through interpolation, the candidate frequency parameter with the minimum absolute value of the difference value between the filtering output value of the prediction displacement output by the second displacement prediction model and the displacement protection threshold value is selected, and the displacement of the vibrating diaphragm is smaller than or equal to the displacement protection threshold value after the selected frequency parameter filters the input signal of the loudspeaker, so that the maximum signal is input on the basis of displacement protection, and the loudness of the loudspeaker is improved.
In another possible implementation manner, the candidate frequency parameters, of which the filter output value of the predicted displacement output by the second displacement prediction model is equal to the displacement protection threshold, are selected from multiple groups of candidate frequency parameters as the first frequency parameters.
In another possible implementation manner, filtering the input signal of the speaker by using the first frequency parameter may specifically be implemented as: modifying the first frequency parameter into a second frequency parameter, wherein the second frequency parameter and the current filtering frequency parameter meet the smoothing coefficient; and filtering the input signal of the loudspeaker by adopting a second frequency parameter, so that the displacement of a vibrating diaphragm of the loudspeaker playing the input signal is less than or equal to a displacement protection threshold value. And the transition is carried out through the smoothing coefficient, so that sudden loudness change of the loudspeaker playing is avoided.
In another possible implementation manner, the method for controlling the displacement of the loudspeaker diaphragm provided by the present application may further include: determining the real-time temperature of the loudspeaker according to the impedance of the loudspeaker, wherein the real-time temperature T of the loudspeaker meets the following expression:sigma is the temperature rise coefficient, Re is the impedance of the loudspeaker, Re0Impedance of loudspeaker at room temperature, T0Is a preset room temperature; determining a frequency correction coefficient according to the real-time temperature, wherein the frequency correction coefficient Coeff meets the following expression:Thotis a thermal state temperature threshold, TcoldFor cold state temperature threshold, Coeff0The initial frequency correction coefficient; and correcting the frequency parameter of the filtering according to the Coeff, and filtering the input signal of the loudspeaker by using the corrected frequency parameter.
In a third aspect, an apparatus for controlling a displacement of a loudspeaker diaphragm is provided, the apparatus comprising a first obtaining unit, an adjusting unit, and a control unit. Wherein:
a first obtaining unit configured to obtain a first displacement prediction model including one or more correction coefficients, the first displacement prediction model being configured to simulate a performance of a loudspeaker to predict a displacement of a diaphragm of the loudspeaker, the correction coefficients being configured to control an output of the first displacement prediction model.
The adjusting unit is used for adjusting the correction coefficient in the first displacement prediction model to obtain a second displacement prediction model; the absolute value of the difference value between the predicted displacement output by the second displacement prediction model and the actual displacement of the diaphragm is smaller than the absolute value of the difference value between the predicted displacement output by the first displacement prediction model and the actual displacement; the actual displacement is an actual measurement of the distance of movement of the diaphragm relative to the initial position.
The control unit is used for controlling the gain of the input signal of the loudspeaker according to the displacement protection threshold value of the loudspeaker and the predicted displacement output by the second displacement prediction model, so that the diaphragm displacement of the loudspeaker playing the input signal is smaller than or equal to the displacement protection threshold value; the displacement protection threshold is the maximum displacement of the diaphragm.
According to the device for controlling the loudspeaker diaphragm displacement, provided by the embodiment of the application, the correction coefficients are configured for the displacement prediction model of the loudspeaker, different correction coefficients are used for controlling the output of the displacement prediction model at different frequency positions, and then the correction coefficients in the displacement prediction model are adjusted according to the actual displacement of the loudspeaker diaphragm until the difference between the prediction displacement output by the adjusted displacement prediction model and the actual displacement of the loudspeaker diaphragm is minimum. Therefore, the displacement prediction model can reflect the characteristics of the loudspeaker more truly, the output prediction displacement is more accurate, and further the displacement protection can be more accurately carried out, so that the hardware potential of the loudspeaker is maximally exerted on the premise of protecting the displacement of the diaphragm of the loudspeaker, and the loudspeaker loud-speaking degree is improved.
In a possible implementation manner, the first displacement prediction model and the second displacement prediction model further include initial parameters, and the initial parameters are parameters related to hardware characteristics of the loudspeaker in the displacement prediction models. The device can also comprise a collecting unit, an extracting unit, a calculating unit and an updating unit. The acquisition unit is used for acquiring current and voltage of the loudspeaker and acquiring an impedance curve; the extracting unit is used for extracting the direct current resistance Re and the resonance frequency f0 of the loudspeaker in the impedance curve; the calculation unit is used for calculating a real-time stiffness coefficient Kms of the loudspeaker, and the Kms satisfies the following expression: kms ═ (2. pi. f)0)2Mms, wherein Mms is the vibration mass of the loudspeaker; furthermore, the utility modelThe new unit is used for updating the initial parameter Kms of the second displacement prediction model into the real-time Kms. The initial parameters in the currently used displacement prediction model are updated according to the real-time initial parameters, and the currently used displacement prediction model is dynamically corrected, so that the displacement prediction model reflects the characteristics of the loudspeaker more truly, the output predicted displacement is more accurate, and further, the displacement protection can be more accurately carried out.
In another possible implementation manner, the apparatus may further include: a second acquisition unit and a first determination unit. The second acquisition unit is used for acquiring an impedance curve of the loudspeaker; the first determination unit is used for determining initial parameters of the first displacement prediction model according to the impedance curve. When the displacement prediction model is initially established, the initial parameters are determined according to the impedance curve, and the modeling operation is completed.
In another possible implementation manner, the second obtaining unit is specifically configured to: inputting a preset input signal into a loudspeaker, and collecting the voltage and the current of the loudspeaker; determining an impedance curve of the loudspeaker according to the voltage and the current; and determining initial parameters of the displacement prediction model through curve fitting or parameter identification according to the impedance curve.
In another possible implementation manner, the adjusting unit is specifically configured to: adjusting a correction coefficient in the first displacement prediction model by the first correction and/or the second correction. The first correction comprises repeatedly adjusting one or more correction coefficients in the displacement prediction model until the absolute value of the difference between the predicted displacement output by the displacement prediction model and the actual displacement of the diaphragm is minimum; the second correction includes adjusting correction coefficients in an Infinite Impulse Response (IIR) filter superimposed on the displacement prediction model until the absolute value of the difference between the predicted displacement output by the displacement prediction model and the actual displacement of the diaphragm is minimized. In the implementation mode, various modes for adjusting the correction parameters are provided, so that the feasibility of the scheme is increased, and the matching degree of the second displacement prediction model and the actual loudspeaker diaphragm characteristic is increased.
In another possible implementation manner, the first displacement prediction model and the second displacement prediction modelThe type satisfies the following expression:therein, ax0=1, d0=α*spk.Kms*spk.Re,bj=d0+d1+d2,bx2=bx3=-bx0。fsThe method comprises the following steps that a, alpha, beta, gamma and omega are correction coefficients, alpha is used for adjusting low-frequency output of a displacement prediction model, beta is used for adjusting output of a frequency interval containing the resonance frequency of a loudspeaker of the displacement prediction model, gamma is used for adjusting medium-frequency output of the displacement prediction model, and omega is used for adjusting full-frequency-band output of the displacement prediction model; bl is the coefficient of magnetic force of the loudspeaker in the initial parameters, spk kms is the coefficient of stiffness of the loudspeaker in the initial parameters, and spk rms is the power of the loudspeaker in the initial parameters. This implementation provides a filter-form expression of the displacement prediction model in the z-domain.
In another possible implementation, the IIR filter may satisfy the following expression:wherein, the correction coefficient in the IIR filter is a shape parameter q, a cut-off frequency parameter K and a gain parameter V0。K=tan(π*fc/fs),fsIs the sampling rate, fcThe cutoff frequency of the IIR filter. When the gain of the IIR filter is larger than or equal to 0, V0=10gain/20,b0=(1+V0*K/q+K*K)/Den,b1=2*(K*K-1)/Den,b2=(1-V0*K/q+K*K)/Den,a0=1,a1=b2,a2(1-K/q + K)/Den, Den ═ 1+ K/q + K. When gain of IIR filter is less than 0, V0=10-gain/20,b0=(1+K/q+K*K)/Den,b1=2*(K*K-1)/Den,b2=(1-K/q+K*K)/Den,a0=1,a1=b2,a2=(1-V0*K/q+K*K)/Den,Den=1+V0K/q + K. This implementation provides an expression in the z-domain of an IIR filter superimposed on a displacement prediction model.
In another possible implementation manner, the control unit is specifically configured to: determining a first frequency parameter, wherein the attenuation of the audio signals of different frequencies is different by the first frequency parameter, and a high-pass filter indicated by the first frequency parameter is used for suppressing low-frequency signals with the frequency outside a passband and medium-high frequency signals with the frequency inside the passband; after the predicted displacement output by the second displacement prediction model is filtered by the first frequency parameter, the absolute value of the difference value between the predicted displacement and the displacement protection threshold value of the loudspeaker is minimum; and filtering the input signal of the loudspeaker by adopting the first frequency parameter, so that the displacement of a diaphragm of the loudspeaker playing the input signal is less than or equal to a displacement protection threshold value. The low-frequency signal is suppressed through the determined frequency coefficient, the audio signals with different frequencies are attenuated through the medium-high frequency signals, and because the vibration diaphragm displacement of the loudspeaker is mainly generated by the low-frequency signals, the influence of the gain of the input signal on the vibration diaphragm displacement can be effectively controlled, the loudness of the sound signal can not be reduced obviously, and the output of the loudspeaker is restrained to the lowest degree. The gain of the input signal of the loudspeaker is controlled through a high-pass filtering mode, namely different displacement protection thresholds are set at different frequencies, so that the potential of hardware of the loudspeaker at different frequencies is ensured to be exerted, and the external loudness of the loudspeaker is improved.
In another possible implementation, the determining, by the control unit, the first frequency parameter includes: filtering the predicted displacement output by the second displacement prediction model by adopting n groups of frequency parameters; wherein, the passbands of the n groups of frequency parameters are different; n is greater than 2; a set of frequency parameters attenuates audio signals differently for different frequencies; selecting two groups of frequency parameters of which the filtering output values are positioned on two sides of the displacement protection threshold value and the absolute value of the difference value between the filtering output values and the displacement protection threshold value is minimum; a first frequency parameter is selected within a frequency parameter interval comprising two sets of frequency parameters.
In another possible implementation manner, the selecting, by the control unit, the first frequency parameter in a frequency parameter interval including the two sets of frequency parameters includes: interpolating between the two groups of frequency parameters to obtain a plurality of groups of frequency parameters to be selected; and selecting the frequency parameter to be selected with the smallest absolute value of the difference between the filtering output value of the prediction displacement output by the second displacement prediction model and the displacement protection threshold value from the multiple groups of frequency parameters to be selected as the first frequency parameter. The candidate frequency parameters are generated through interpolation, the candidate frequency parameter with the minimum absolute value of the difference value between the filtering output value of the prediction displacement output by the second displacement prediction model and the displacement protection threshold value is selected, and the displacement of the vibrating diaphragm is smaller than or equal to the displacement protection threshold value after the selected frequency parameter filters the input signal of the loudspeaker, so that the maximum signal is input on the basis of displacement protection, and the loudness of the loudspeaker is improved.
In another possible implementation manner, the candidate frequency parameters, of which the filter output value of the predicted displacement output by the second displacement prediction model is equal to the displacement protection threshold, are selected from multiple groups of candidate frequency parameters as the first frequency parameters.
In another possible implementation, the control unit filters the input signal of the speaker using the first frequency parameter, including: modifying the first frequency parameter into a second frequency parameter, wherein the second frequency parameter and the current filtering frequency parameter meet the smoothing coefficient; and filtering the input signal of the loudspeaker by adopting a second frequency parameter, so that the displacement of a vibrating diaphragm of the loudspeaker playing the input signal is less than or equal to a displacement protection threshold value. And the transition is carried out through the smoothing coefficient, so that sudden loudness change of the loudspeaker playing is avoided.
In another possible implementation manner, the apparatus may further include: a second determination unit and a correction unit. Wherein the second determination unit is used for determining the loudspeaker according to the loudspeakerThe impedance of the device determines the real-time temperature of the loudspeaker, and the real-time temperature T of the loudspeaker meets the following expression:sigma is the temperature rise coefficient, Re is the impedance of the loudspeaker, Re0Impedance of loudspeaker at room temperature, T0Is a preset room temperature; determining a frequency correction coefficient according to the real-time temperature, wherein the frequency correction coefficient Coeff meets the following expression:Thotis a thermal state temperature threshold, TcoldFor cold state temperature threshold, Coeff0Is the initial frequency correction factor. And the correcting unit is used for correcting the frequency parameter of the filtering according to the Coeff. Correspondingly, the control unit is also used for filtering the input signal of the loudspeaker by the corrected frequency parameter.
It should be noted that, the apparatus for controlling displacement of a loudspeaker diaphragm provided in the third aspect is used to perform the method for controlling displacement of a loudspeaker diaphragm provided in the first aspect or any one of the possible implementations of the first aspect, and specific implementations thereof may refer to any one of the possible implementations of the first aspect or the first aspect.
In a fourth aspect, an apparatus for controlling a displacement of a loudspeaker diaphragm may include a first determining unit and a filtering unit. Wherein:
the first determining unit is used for determining a first frequency parameter, the attenuation of the first frequency parameter is different for audio signals with different frequencies, and a high-pass filter indicated by the first frequency parameter is used for suppressing low-frequency signals with frequencies outside a passband and medium-high-frequency signals with frequencies inside the passband; after the predicted displacement output by the displacement prediction model is filtered by the first frequency parameter, the absolute value of the difference value between the predicted displacement and the displacement protection threshold value of the loudspeaker is minimum; the displacement protection threshold is the maximum displacement of the diaphragm.
And the filtering unit is used for filtering the input signal of the loudspeaker by adopting the first frequency parameter, so that the displacement of the diaphragm of the loudspeaker playing the input signal is smaller than or equal to the displacement protection threshold of the loudspeaker.
Through the device of control speaker vibrating diaphragm displacement that this application embodiment provided, through the frequency coefficient who confirms restraines low frequency signal, through well high frequency signal, carry out different attenuations to the audio signal attenuation of different frequencies, because the vibrating diaphragm displacement of speaker mainly produces by low frequency signal, just so can effectively control the influence of input signal gain to the vibrating diaphragm displacement, and the loudness of the reduction sound signal that can not be too obvious, the output of minimum restraint speaker. The gain of the input signal of the loudspeaker is controlled through a high-pass filtering mode, namely different displacement protection thresholds are set at different frequencies, so that the potential of hardware of the loudspeaker at different frequencies is ensured to be exerted, and the external loudness of the loudspeaker is improved.
In a possible implementation manner, the first determining unit is specifically configured to: filtering the predicted displacement output by the second displacement prediction model by adopting n groups of frequency parameters; wherein, the passbands of the n groups of frequency parameters are different; n is greater than 2; a set of frequency parameters attenuates audio signals differently for different frequencies; selecting two groups of frequency parameters of which the filtering output values are positioned on two sides of the displacement protection threshold value and the absolute value of the difference value between the filtering output values and the displacement protection threshold value is minimum; a first frequency parameter is selected within a frequency parameter interval comprising two sets of frequency parameters.
In another possible implementation manner, the selecting, by the first determining unit, a first frequency parameter in a frequency parameter interval including two sets of frequency parameters includes: interpolating between the two groups of frequency parameters to obtain a plurality of groups of frequency parameters to be selected; and selecting the frequency parameter to be selected with the smallest absolute value of the difference between the filtering output value of the prediction displacement output by the second displacement prediction model and the displacement protection threshold value from the multiple groups of frequency parameters to be selected as the first frequency parameter. The candidate frequency parameters are generated through interpolation, the candidate frequency parameter with the minimum absolute value of the difference value between the filtering output value of the prediction displacement output by the second displacement prediction model and the displacement protection threshold value is selected, and the displacement of the vibrating diaphragm is smaller than or equal to the displacement protection threshold value after the selected frequency parameter filters the input signal of the loudspeaker, so that the maximum signal is input on the basis of displacement protection, and the loudness of the loudspeaker is improved.
In another possible implementation manner, the candidate frequency parameters, of which the filter output value of the predicted displacement output by the second displacement prediction model is equal to the displacement protection threshold, are selected from multiple groups of candidate frequency parameters as the first frequency parameters.
In another possible implementation manner, the filtering unit is specifically configured to: modifying the first frequency parameter into a second frequency parameter, wherein the second frequency parameter and the current filtering frequency parameter meet the smoothing coefficient; and filtering the input signal of the loudspeaker by adopting a second frequency parameter, so that the displacement of a vibrating diaphragm of the loudspeaker playing the input signal is less than or equal to a displacement protection threshold value. And the transition is carried out through the smoothing coefficient, so that sudden loudness change of the loudspeaker playing is avoided.
In another possible implementation manner, the apparatus may further include a second determining unit and a correcting unit. The second determining unit is used for determining the real-time temperature of the loudspeaker according to the impedance of the loudspeaker, and the real-time temperature T of the loudspeaker meets the following expression:sigma is the temperature rise coefficient, Re is the impedance of the loudspeaker, Re0Impedance of loudspeaker at room temperature, T0Is a preset room temperature; determining a frequency correction coefficient according to the real-time temperature, wherein the frequency correction coefficient Coeff meets the following expression:Thotis a thermal state temperature threshold, TcoldFor cold state temperature threshold, Coeff0Is the initial frequency correction factor. And the correcting unit is used for correcting the frequency parameter of the filtering according to the Coeff. Correspondingly, the filtering unit is also used for filtering the input signal of the loudspeaker with the corrected frequency parameter.
It should be noted that, the apparatus for controlling loudspeaker diaphragm displacement provided by the fourth aspect is used to execute the method for controlling loudspeaker diaphragm displacement provided by any one of the above-mentioned second aspect or any one of the above-mentioned possible implementations of the second aspect, and its specific implementation may refer to any one of the foregoing second aspect or any one of the above-mentioned possible implementations of the second aspect.
In a fifth aspect, the present application provides an apparatus for controlling diaphragm displacement of a loudspeaker, where the apparatus for controlling diaphragm displacement of a loudspeaker can implement the functions in the method examples described in the first aspect or the second aspect, and the functions can be implemented by hardware or by hardware executing corresponding software. The hardware or software comprises one or more modules corresponding to the functions.
In one possible implementation, the means for controlling the displacement of the loudspeaker diaphragm may include a processor and a transmission interface. Wherein, the transmission interface is used for receiving and sending data. The processor is configured to invoke program instructions stored in the memory to cause the apparatus for controlling loudspeaker diaphragm displacement to perform the functions in the method examples described in the first or second aspect above.
In a sixth aspect, an electronic device is provided, which includes the apparatus for controlling the displacement of a loudspeaker diaphragm provided in the fifth aspect.
A seventh aspect provides a computer-readable storage medium, in which program instructions are stored, and when the program instructions are executed on a computer or a processor, the computer or the processor is caused to execute the method for controlling the displacement of the loudspeaker diaphragm provided in the first aspect or the second aspect or any possible implementation manner thereof.
In an eighth aspect, a computer program product is provided, which comprises program instructions that, when run on a computer or a processor, cause the computer or the processor to execute the method for controlling loudspeaker diaphragm displacement as provided in the first or second aspect or any possible implementation manner thereof.
In a ninth aspect, a chip system is provided, where the chip system includes a processor and may further include a memory, and is configured to implement corresponding functions in the foregoing method. The chip system may be formed by a chip, and may also include a chip and other discrete devices.
It should be noted that, all possible implementation manners of any one of the above aspects may be combined without departing from the scope of the claims.
Drawings
Fig. 1 is a schematic diagram of a speaker system frame according to an embodiment of the present application;
fig. 2 is a schematic diagram of another speaker system frame according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a mobile phone according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an exemplary apparatus for controlling diaphragm displacement of a loudspeaker according to an embodiment of the present disclosure;
FIG. 5 is a schematic flowchart of an exemplary method for controlling diaphragm displacement of a loudspeaker according to an embodiment of the present disclosure;
FIG. 6 is a schematic flowchart of another exemplary method for controlling diaphragm displacement of a loudspeaker according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a further exemplary loudspeaker system frame provided by an embodiment of the present application;
FIG. 8 is a schematic diagram of yet another exemplary speaker system frame provided by an embodiment of the present application;
fig. 9 is a schematic diagram of a further exemplary loudspeaker system frame provided by an embodiment of the present application;
fig. 10 is a schematic diagram of a further exemplary loudspeaker system frame provided by an embodiment of the present application;
FIG. 11 is a schematic flowchart of another exemplary method for controlling diaphragm displacement of a loudspeaker according to an embodiment of the present disclosure;
FIG. 12 is a schematic flow chart illustrating a further exemplary method for controlling diaphragm displacement of a loudspeaker according to an embodiment of the present disclosure;
FIG. 13 is a schematic diagram illustrating a structure of yet another exemplary apparatus for controlling diaphragm displacement for a loudspeaker according to an embodiment of the present disclosure;
FIG. 14 is a schematic diagram illustrating a structure of yet another exemplary apparatus for controlling diaphragm displacement for a loudspeaker according to an embodiment of the present disclosure;
FIG. 15 is a schematic diagram illustrating a structure of yet another exemplary apparatus for controlling diaphragm displacement for a loudspeaker according to an embodiment of the present disclosure;
FIG. 16 is a schematic diagram illustrating a structure of yet another exemplary apparatus for controlling diaphragm displacement in a loudspeaker according to an embodiment of the present disclosure;
fig. 17 is a schematic structural diagram of another exemplary apparatus for controlling diaphragm displacement of a loudspeaker according to an embodiment of the present disclosure.
Detailed Description
In the embodiments of the present application, for convenience of clearly describing the technical solutions of the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and actions. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance. The technical features described in the first and second descriptions have no sequence or magnitude order.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion for ease of understanding.
In the description of the present application, a "/" indicates a relationship in which the objects associated before and after are an "or", for example, a/B may indicate a or B; in the present application, "and/or" is only an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. Also, in the description of the present application, "a plurality" means two or more than two unless otherwise specified. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
In the embodiments of the present application, at least one may also be described as one or more, and a plurality may be two, three, four or more, which is not limited in the present application.
In addition, the network architecture and the scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not constitute a limitation to the technical solution provided in the embodiment of the present application, and it is known by a person of ordinary skill in the art that the technical solution provided in the embodiment of the present application is also applicable to similar technical problems along with the evolution of the network architecture and the appearance of new service scenarios.
Before describing the embodiments of the present application, the terms referred to in the present application are explained herein in a unified manner, and are not explained any more.
The input signal of the speaker may be referred to as an input voltage signal, which includes M (M is a positive integer greater than or equal to 1) digital signals corresponding to n voltage values (may be referred to as n points). For example, the input signal Uin ═ Uin (1), Uin (2), …, Uin (n), …, Uin (m) ].
The displacement of the loudspeaker refers to the moving distance of the diaphragm of the loudspeaker in the working process.
The displacement prediction model refers to a mathematical model for predicting the displacement of the diaphragm of the loudspeaker. The displacement prediction model is used for simulating the working characteristics of the loudspeaker, the input signal of the loudspeaker is input into the displacement prediction model, and the output is the predicted displacement of the loudspeaker.
The displacement protection threshold is an upper limit value of a loudspeaker diaphragm displacement preset for protecting the diaphragm of the loudspeaker. The displacement protection threshold for a speaker may be configured according to the type, performance, or other influencing factors of the speaker.
The vibrating diaphragm displacement of the loudspeaker has influence on the tone quality of the loudspeaker, and the vibrating diaphragm of the loudspeaker working under a large signal state has large displacement, so that the vibrating diaphragm of the loudspeaker is probably topped or wiped to generate noise, and even the loudspeaker is damaged mechanically. Therefore, it is necessary to protect the diaphragm of the speaker from displacement.
At present, the displacement protection is implemented by generally predicting the diaphragm displacement of a loudspeaker by using a model and attenuating an input signal by a certain gain when the predicted diaphragm displacement exceeds a corresponding threshold, but certain problems exist in the industry.
For example, one current loudspeaker diaphragm displacement protection scheme is: and obtaining a displacement transfer function of the loudspeaker as a displacement prediction model through the actually measured impedance curve, calculating the transient input voltage of the loudspeaker through the displacement transfer function to obtain a predicted displacement, and if the predicted displacement is larger than a displacement protection threshold, attenuating the whole input signal to perform displacement protection. Fig. 1 illustrates a loudspeaker system frame, and with reference to fig. 1, the working process of the loudspeaker diaphragm displacement protection scheme is described as follows:
(1) the modeling unit collects voltages at two ends of a standard resistor connected with the loudspeaker in series, the voltages are processed (the voltages are divided by impedance) to serve as feedback current signals I, and voltage signals V at two ends of the loudspeaker are collected.
(2) And the modeling unit calculates an impedance curve according to the collected I, V signals, and calculates the displacement transfer function of the loudspeaker through the impedance curve and the magnetic force coefficient of the loudspeaker.
Wherein the displacement transfer function is a function of frequency and displacement.
(3) And predicting the input signal IN of the loudspeaker by a displacement transfer function (which can be regarded as displacement model prediction) IN a displacement protection unit to obtain predicted displacement, comparing the predicted displacement with a set displacement protection threshold, and if the predicted displacement is greater than the displacement protection threshold, integrally attenuating the input signal IN so that the predicted displacement is less than or equal to the displacement protection threshold.
(4) And inputting the attenuated input signal IN into a digital-to-analog conversion unit for converting a digital signal into an analog signal.
(5) And the analog signal is input into a power amplification unit, amplified and input into a loudspeaker through a standard resistor for playing.
(6) And in the working process of the loudspeaker, the modeling unit can update the displacement transfer function according to the real-time impedance curve.
For example, fig. 2 illustrates another loudspeaker system framework in which a TS model is configured as a displacement prediction model. With reference to fig. 2, the operation of the speaker system is described as follows:
(1) and obtaining a first predicted displacement X by the input signal IN of the loudspeaker through a displacement prediction model, and multiplying the first predicted displacement X by the correction factor gcorr to obtain a corrected displacement Xcorr.
(2) The input signal IN of the speaker is delayed and aligned to obtain a voltage signal Vd.
(3) And inputting the voltage signal Vd and the corrected displacement Xcorr into a displacement protection unit, comparing the Xcorr with a set displacement protection threshold value by the displacement protection unit, and if the Xcorr is greater than the displacement protection threshold value, attenuating the voltage signal Vd to the extent that the Xcorr is less than or equal to the displacement protection threshold value.
(4) And inputting the attenuated voltage signal Vd into a loudspeaker through a standard resistor for playing.
(5) In the working process of the loudspeaker, the direct displacement estimation unit collects voltages at two ends of the standard resistor, the voltages are processed to serve as feedback current signals I, voltage signals V at two ends of the loudspeaker are collected, direct current resistance Re of the loudspeaker is obtained according to I, V signals, speed V is obtained according to a magnetic force coefficient Bl and an electrical state equation V-Re I + Bl V, and the second prediction displacement Xdd is obtained by integrating the speed.
(6) The determination unit adjusts the current correction factor gcorr according to the second predicted displacement Xdd.
In the working process of the speaker system illustrated in fig. 1 and 2, a displacement transfer function obtained based on an actually measured impedance curve and a magnetic force coefficient Bl, or a displacement prediction function of a TS model is adopted, errors of the two displacement prediction models are large and cannot reflect the complex situation of hardware changes (such as creep, leakage or aging of an inverter box) of the speaker, and compared with an actually measured result, the error of the predicted displacement is large, which results in a low control gain and affects the improvement of loudspeaker external loudness. In addition, because the displacement transfer function simulates the performance of the loudspeaker, the displacements predicted for input signals of different frequencies are different, but threshold control based on the time domain can result in that the performance of the loudspeaker cannot be maximized under certain frequencies, and the improvement of the loudspeaker external loudness is influenced. Moreover, the feedback I, V method for model modification requires a certain delay for feedback I, V, which results in poor real-time control, and the acquisition chip will cause a certain error, and will also cause an additional error for displacement prediction. Therefore, the current displacement protection influence has the defects that the loudspeaker external radiation degree is improved, and the potential of loudspeaker hardware cannot be exerted to the maximum extent.
Based on this, embodiments of the present application provide a method and an apparatus for controlling a loudspeaker diaphragm displacement, which may configure correction coefficients for a displacement prediction model of a loudspeaker, where different correction coefficients are used to control outputs of different frequency positions of the displacement prediction model, and then adjust the correction coefficients in the displacement prediction model according to an actual displacement of the loudspeaker diaphragm until a difference between a predicted displacement output by the adjusted displacement prediction model and the actual displacement of the loudspeaker diaphragm is minimum. Therefore, the displacement prediction model can reflect the characteristics of the loudspeaker more truly, the output prediction displacement is more accurate, and further the displacement protection can be more accurately carried out, so that the hardware potential of the loudspeaker is maximally exerted on the premise of protecting the displacement of the diaphragm of the loudspeaker, and the loudspeaker loud-speaking degree is improved.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
The method and the device for controlling the displacement of the loudspeaker diaphragm provided by the embodiment of the application can be applied to electronic equipment with an audio play function, such as mobile phones, tablet computers, notebook computers, intelligent sound boxes, televisions and other electronic equipment with loudspeakers. Exemplarily, in scenes such as play-out music and movies (including mono-channel, two-channel and four-channel play), hands-free calls (including operator phones, internet phones and the like), mobile phone ring tones (including a play-out mode and an earphone insertion mode), game play-out and the like, the technical scheme provided by the embodiment of the application can be adopted, so that the hardware potential of the loudspeaker is maximally exerted, the play-out loudness of the loudspeaker is improved, and the subjective experience of a user is improved.
Taking the above-mentioned electronic device as a mobile phone as an example, fig. 3 shows a schematic structural diagram of the mobile phone 100. The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the mobile phone 100. In other embodiments of the present application, the handset 100 may include more or fewer components than shown, or some components may be combined, some components may be separated, or a different arrangement of components may be used. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The controller may be a neural center and a command center of the cell phone 100, among others. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the mobile phone 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the camera function of the handset 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the mobile phone 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the mobile phone 100, and may also be used to transmit data between the mobile phone 100 and peripheral devices. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is only an exemplary illustration, and does not constitute a limitation on the structure of the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the cell phone 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the handset 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the handset 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication applied to the mobile phone 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, the antenna 1 of the handset 100 is coupled to the mobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160 so that the handset 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The mobile phone 100 implements the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the cell phone 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The mobile phone 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the handset 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals (such as audio signals and the like). For example, when the handset 100 is in frequency bin selection, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. Handset 100 may support one or more video codecs. Thus, the handset 100 can play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can realize applications such as intelligent recognition of the mobile phone 100, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the cellular phone 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area may store data (e.g., audio data, a phonebook, etc.) created during use of the handset 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The mobile phone 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The cellular phone 100 can listen to music through the speaker 170A or listen to a hands-free call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the cellular phone 100 receives a call or voice information, it is possible to receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The handset 100 may be provided with at least one microphone 170C. In other embodiments, the handset 100 may be provided with two microphones 170C to achieve noise reduction functions in addition to collecting sound signals. In other embodiments, the mobile phone 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The handset 100 determines the intensity of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the mobile phone 100 detects the intensity of the touch operation according to the pressure sensor 180A. The cellular phone 100 can also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the cellular phone 100. In some embodiments, the angular velocity of the handpiece 100 about three axes (i.e., the x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the mobile phone 100, calculates the distance to be compensated for the lens module according to the shake angle, and allows the lens to counteract the shake of the mobile phone 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the handset 100 calculates altitude, aiding in positioning and navigation, from the barometric pressure measured by the barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The handset 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the handset 100 is a flip phone, the handset 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E can detect the magnitude of acceleration of the cellular phone 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the handset 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The handset 100 may measure distance by infrared or laser. In some embodiments, taking a picture of a scene, the cell phone 100 may utilize the range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The cellular phone 100 emits infrared light to the outside through the light emitting diode. The handset 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the cell phone 100. When insufficient reflected light is detected, the cell phone 100 can determine that there are no objects near the cell phone 100. The mobile phone 100 can detect that the mobile phone 100 is held by the user and close to the ear for communication by using the proximity light sensor 180G, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. The handset 100 may adaptively adjust the brightness of the display 194 according to the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the mobile phone 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The mobile phone 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a photograph of the fingerprint, answer an incoming call with the fingerprint, and the like.
The temperature sensor 180J is used to detect temperature. In some embodiments, the handset 100 implements a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile phone 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the cell phone 100 heats the battery 142 when the temperature is below another threshold to avoid an abnormal shutdown of the cell phone 100 due to low temperatures. In other embodiments, when the temperature is lower than a further threshold, the mobile phone 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the mobile phone 100, different from the position of the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The cellular phone 100 may receive a key input, and generate a key signal input related to user setting and function control of the cellular phone 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be attached to and detached from the cellular phone 100 by being inserted into the SIM card interface 195 or being pulled out from the SIM card interface 195. The handset 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The mobile phone 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the handset 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100.
It should be understood that fig. 3 is only illustrated by taking a mobile phone as an example, and does not specifically limit the structure of the electronic device. In practical applications, the electronic device may include more components in fig. 3 or fewer components than those illustrated in fig. 3, which is not limited in this embodiment of the present application.
It is understood that, in the embodiments of the present application, an electronic device (for example, the above-mentioned mobile phone) may perform some or all of the steps in the embodiments of the present application, and these steps or operations are merely examples, and the embodiments of the present application may also perform other operations or various modifications of the operations. Further, the various steps may be performed in a different order presented in the embodiments of the application, and not all operations in the embodiments of the application may be performed. The embodiments of the present application may be implemented individually or in any combination, and the present application is not limited to these.
In one aspect, embodiments of the present application provide an apparatus for controlling the displacement of a loudspeaker diaphragm, and fig. 4 shows an apparatus 40 for controlling the displacement of a loudspeaker diaphragm according to various embodiments of the present application. As shown in fig. 4, the apparatus 40 for controlling displacement of a loudspeaker diaphragm may include a processor 401, a memory 402, and a transceiver 403.
The following describes in detail the components of the device 40 for controlling the displacement of a loudspeaker diaphragm with reference to fig. 4:
the memory 402 may be a volatile memory (volatile memory), such as a random-access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD); or a combination of the above types of memories, for storing program code, configuration files, or other content that may implement the methods of the present application.
The processor 401 is the control center of the device 40 for controlling the displacement of the loudspeaker diaphragm. For example, the processor 401 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as: one or more microprocessors (digital signal processors, DSPs), or one or more Field Programmable Gate Arrays (FPGAs).
The transceiver 403 is used to communicate with other devices. The transceiver 403 may be a communication port or the like.
In one possible implementation, the processor 401, by running or executing software programs and/or modules stored in the memory 402 and invoking data stored in the memory 402, performs the following functions:
a first displacement prediction model is obtained comprising one or more correction coefficients for simulating the performance of the loudspeaker to predict the displacement of the diaphragm of the loudspeaker, the correction coefficients being used to control the output of the first displacement prediction model. Adjusting a correction coefficient in the first displacement prediction model to obtain a second displacement prediction model; the absolute value of the difference between the predicted displacement output by the second displacement prediction model and the actual displacement of the loudspeaker diaphragm is smaller than the absolute value of the difference between the predicted displacement output by the first displacement prediction model and the actual displacement. The actual displacement is an actual measurement value of the moving distance of the loudspeaker diaphragm relative to the initial position; and controlling the gain of the input signal of the loudspeaker according to the displacement protection threshold of the loudspeaker and the predicted displacement output by the second displacement prediction model, so that the displacement of the diaphragm of the loudspeaker playing the input signal is smaller than or equal to the displacement protection threshold of the loudspeaker, and the displacement protection threshold is the maximum displacement of the diaphragm of the loudspeaker.
In another possible implementation, the processor 401, by running or executing software programs and/or modules stored in the memory 402 and invoking data stored in the memory 402, performs the following functions:
determining a first frequency parameter, wherein the attenuation of the audio signals of different frequencies is different by the first frequency parameter, and a high-pass filter indicated by the first frequency parameter is used for suppressing low-frequency signals with the frequency outside a passband and medium-high frequency signals with the frequency inside the passband; after the predicted displacement output by the displacement prediction model is filtered by the first frequency parameter, the absolute value of the difference value between the predicted displacement and the displacement protection threshold value of the loudspeaker is minimum; the displacement protection threshold value is the maximum displacement of the loudspeaker diaphragm; and filtering the input signal of the loudspeaker according to the first frequency parameter, so that the diaphragm displacement of the loudspeaker playing the input signal is less than or equal to the displacement protection threshold of the loudspeaker.
On the other hand, an embodiment of the present application provides a method for controlling displacement of a loudspeaker diaphragm, where the method is performed by a device for controlling displacement of a loudspeaker diaphragm, and the device for controlling displacement of a loudspeaker diaphragm may be used in cooperation with an electronic device in which a loudspeaker is deployed, or the device for controlling displacement of a loudspeaker diaphragm may be deployed inside the electronic device.
It should be understood that the method for controlling the displacement of the loudspeaker diaphragm provided in the embodiments of the present application may be applied to various scenarios for protecting the displacement of the loudspeaker diaphragm.
For example, the method for controlling loudspeaker diaphragm displacement provided by the embodiment of the present application may be applied to a scenario in which loudspeaker diaphragm displacement is protected in an electronic device development or production debugging stage, a displacement prediction model is configured for a loudspeaker deployed in an electronic device, and the configured displacement prediction model is adjusted to be most matched with the performance of the loudspeaker.
For example, the method for controlling the displacement of the loudspeaker diaphragm according to the embodiment of the present application may be applied to a scenario in which the displacement of the loudspeaker diaphragm is protected during a use stage after the electronic device leaves a factory, and the method for controlling the displacement of the loudspeaker diaphragm according to the embodiment of the present application is periodically or at a preset time, and a displacement prediction model configured in the electronic device is dynamically adjusted, and the configured displacement prediction model is adjusted to be most matched with the performance of the loudspeaker.
As shown in fig. 5, a method for controlling a displacement of a loudspeaker diaphragm according to an embodiment of the present application may include:
s501, the apparatus for controlling loudspeaker diaphragm displacement obtains a first displacement prediction model including one or more correction coefficients.
Wherein the first displacement prediction model is used to simulate the performance of the loudspeaker to predict the displacement of the diaphragm of the loudspeaker, and the correction coefficients are used to control the output of the first displacement prediction model.
Illustratively, the first displacement prediction model may satisfy the following expression (1):
fsFor the sampling rate, α, β, γ, and Ω are correction coefficients, α may be used to adjust the low-frequency output of the displacement prediction model, β is used to adjust the output of the frequency interval of the displacement prediction model containing the resonance frequency of the speaker, γ is used to adjust the medium-frequency output of the displacement prediction model, and Ω is used to adjust the full-frequency-band output of the displacement prediction model. Bl is the coefficient of magnetic force of the loudspeaker in the initial parameters, spk kms is the coefficient of stiffness of the loudspeaker in the initial parameters, and spk rms is the power of the loudspeaker in the initial parameters. ax, bx are the coefficients of the generated IIR filter.
It should be noted that equation (1) is merely an example, and the expression of the displacement prediction model, the number of correction coefficients included in the displacement prediction model, and the content of each correction coefficient control may be configured according to actual needs, which is not specifically limited in the embodiment of the present application.
Specifically, when the scenarios of the diaphragm displacement of the loudspeaker to be protected are different, the contents of the first displacement prediction model may be different, and include but are not limited to the following cases:
in case 1, the scheme provided in the embodiment of the present application is applied to a scenario in which a loudspeaker diaphragm is protected from displacement during development or production debugging of an electronic device, a displacement prediction model is not configured in the electronic device, and an initial model is configured as a first displacement prediction model in S501 by a device for controlling loudspeaker diaphragm displacement.
In case 1, the correction coefficient in the initial model may be 1.
Further, the displacement prediction model may further include initial parameters, where the initial parameters are parameters related to hardware characteristics of the speaker in the displacement prediction model. Correspondingly, in case 1, the method provided in the embodiment of the present application may further include: and acquiring an impedance curve of the loudspeaker, and determining initial parameters of the motion prediction model according to the impedance curve. The initial parameters are parameters related to the hardware characteristics of the loudspeaker in the displacement prediction model.
For example, the initial parameters may be the magnetic coefficient spk.bl of the loudspeaker, the stiffness coefficient spk.kms of the loudspeaker, and the power spk.rms of the loudspeaker as illustrated in equation (1).
Illustratively, obtaining an impedance curve of the speaker and determining initial parameters of the motion prediction model based on the impedance curve includes: inputting a preset input signal into a loudspeaker, and collecting the voltage and the current of the loudspeaker; determining an impedance curve of the loudspeaker according to the voltage and the current; and determining initial parameters of the motion prediction model through curve fitting or parameter identification according to the impedance curve.
The preset input signal may be a specific noise signal or other signals, which is not limited. The voltage and current of the loudspeaker can be collected by collecting the current signal and the voltage signal of the loudspeaker as illustrated in fig. 1.
For example, the voltage and corresponding current signals of the speaker over a period of time may be collected, fourier transformed, and the voltage spectrum divided by the current spectrum to obtain an impedance curve.
In case 2, the scheme provided in the embodiment of the present application is applied to a scenario in which a loudspeaker diaphragm is protected from displacement during development or production debugging of an electronic device, an initial model is configured in the electronic device but a correction coefficient is not yet adjusted, and in S501, the device for controlling loudspeaker diaphragm displacement acquires the configured initial model as a first displacement prediction model.
In case 3, the scheme provided in this embodiment of the present application is applied to a scenario in which the displacement of the loudspeaker diaphragm is protected in a use stage after the electronic device leaves a factory, and the first displacement prediction model may be a displacement prediction model stored in the electronic device and used for predicting the displacement of the loudspeaker diaphragm when S501 is executed. The first displacement prediction model configured in the electronic device may be a displacement prediction model obtained after correction by the scheme provided by the application in case 1 or case 2.
S502, adjusting a correction coefficient in the first displacement prediction model by the device for controlling the displacement of the loudspeaker diaphragm to obtain a second displacement prediction model; the absolute value of the difference between the predicted displacement output by the second displacement prediction model and the actual displacement of the loudspeaker diaphragm is smaller than the absolute value of the difference between the predicted displacement output by the first displacement prediction model and the actual displacement of the loudspeaker diaphragm.
Wherein the second displacement prediction model is for simulating a behavior of the loudspeaker for predicting a displacement of a diaphragm of the loudspeaker, the second displacement prediction model comprising one or more correction coefficients for controlling an output of the second displacement prediction model. The second displacement prediction model is obtained by adjusting the correction coefficient by the first displacement prediction model, and the expression of the second displacement prediction model is the same as that of the first displacement prediction model, and can be expressed by the above expression (1).
It should be understood that the absolute value of the difference between the predicted displacement output by the second displacement prediction model and the actual displacement of the loudspeaker diaphragm, which is smaller than the absolute value of the difference between the predicted displacement output by the first displacement prediction model and the actual displacement of the loudspeaker diaphragm, means that the absolute value of the difference between the predicted displacement output by the second displacement prediction model and the actual displacement of the loudspeaker diaphragm, for the same input signal, is smaller than the absolute value of the difference between the predicted displacement output by the first displacement prediction model and the actual displacement of the loudspeaker diaphragm.
Specifically, in S502, the actual displacement of the speaker may be measured, and then the correction coefficient in the first displacement prediction model is repeatedly adjusted according to the correction coefficient adjustment rule, so as to obtain the second displacement prediction model.
For example, the actual displacement of the diaphragm of the speaker may be measured by using laser, or the actual displacement of the diaphragm of the speaker may also be measured by using other methods, which is not limited in this embodiment of the present application.
It should be understood that the content of the correction coefficient adjustment rule may be configured according to actual requirements, and this is not specifically limited in the embodiment of the present application.
For example, the correction coefficient adjustment rule may be: and configuring an adjustment step length for each correction coefficient, and sequentially adjusting each correction coefficient according to the adjustment step length according to a preset adjustment sequence of the correction coefficients until a second displacement prediction model is obtained.
For example, the correction coefficient adjustment rule may be: and comparing the predicted displacement output by the first displacement prediction model with the actual displacement of the diaphragm when the loudspeaker plays and inputs the input signal of the first displacement prediction model, searching a preset corresponding relation according to the size relation of the predicted displacement and the actual displacement, and acquiring the content of the adjusted correction coefficient and an adjusted value. The prediction corresponding relation stores the magnitude relation between different prediction displacements and actual displacements, and correction coefficients and adjustment values which are required to be adjusted and correspond to the different magnitude relations.
For example, table 1 illustrates the content of a preset correspondence relationship, but the content is only an example and is not limited to the specific limitation.
TABLE 1
Magnitude relationship | Correction coefficient to be adjusted | Adjustment value |
Predicted displacement-actual displacement ∈ (x, y) | α | +1 |
Predicted displacement-actual displacement ∈ (z, q) | β | -1 |
…… | …… | …… |
Further, the displacement prediction model may further superimpose an IIR filter in a form illustrated by equation (1), where an expression of the IIR filter may satisfy the following equation (2):
specifically, the correction coefficients in the superimposed IIR filter are a shape parameter q, a cutoff frequency parameter K, and a gain parameter V0。
Wherein K ═ tan (pi ═ f)c/fs),fsIs the sampling rate, fcThe cutoff frequency of the IIR filter.
When the gain of the IIR filter is larger than or equal to 0, V0=10gain/20,b0=(1+V0*K/q+K*K)/Den,b1=2*(K*K-1)/Den,b2=(1-V0*K/q+K*K)/Den,a0=1,a1=b2,a2=(1-K/q+K*K)/Den,Den=1+K/q+K*K。
When gain of IIR filter is less than 0, V0=10-gain/20,b0=(1+K/q+K*K)/Den,b1=2*(K*K-1)/Den,b2=(1-K/q+K*K)/Den,a0=1,a1=b2,a2=(1-V0*K/q+K*K)/Den,Den=1+V0*K/q+K*K。
It should be noted that equation (1) is merely an example, and the expression of the IIR filter superimposed on the displacement prediction model, the number of correction coefficients included in the IIR filter, and the content of each correction coefficient control may be configured according to actual requirements, which is not specifically limited in the embodiment of the present application.
Accordingly, the correction coefficient in the IIR filter superimposed on the first displacement prediction model may also be adjusted in S502. The adjustment method may refer to the aforementioned method for adjusting the correction coefficient in the first displacement prediction model, for example, configuring a correction coefficient adjustment rule, which is not described herein again.
In a possible implementation manner, the adjusting the correction coefficient in the first displacement prediction model in S502 specifically includes: adjusting a correction coefficient in the first displacement prediction model by the first correction and/or the second correction.
Wherein the first correction comprises repeatedly adjusting one or more correction coefficients in the displacement prediction model until the absolute value of the difference between the predicted displacement output by the displacement prediction model and the actual displacement of the diaphragm of the loudspeaker is minimal. The second correction includes adjusting correction coefficients in an IIR filter superimposed on the displacement prediction model until the absolute value of the difference between the predicted displacement output by the displacement prediction model and the actual displacement of the diaphragm of the loudspeaker is minimized.
For example, the first correction may adjust a correction coefficient in the displacement prediction model indicated by the above equation (1), and the second correction may adjust a correction coefficient in an IIR filter superimposed on the displacement prediction model indicated by the above equation (2).
S503, the device for controlling the loudspeaker diaphragm displacement controls the gain of the input signal of the loudspeaker according to the displacement protection threshold value of the loudspeaker and the predicted displacement output by the second displacement prediction model, so that the diaphragm displacement of the loudspeaker playing the input signal is smaller than or equal to the displacement protection threshold value of the loudspeaker.
In a possible implementation manner, in S503, in a manner of controlling the gain of the input signal in the speaker system illustrated in fig. 1 or fig. 2, when the predicted displacement is greater than or equal to the displacement protection threshold, the input signal is entirely attenuated, so that the diaphragm displacement of the speaker playing the input signal is less than or equal to the displacement protection threshold of the speaker.
In another possible implementation manner, based on the principle that the displacement of the speaker is mainly generated by the low-frequency signal, when the displacement is predicted to be greater than or equal to the displacement protection threshold, in S503, the low-frequency signal may be suppressed in a high-pass filter manner, and the gain of the input signal of the speaker is controlled through the medium-high frequency signal, so that the loudness of the speaker is ensured while the displacement of the speaker is reduced. In this implementation, as shown in fig. 6, the controlling the gain of the input signal of the speaker by the displacement protection threshold of the speaker and the predicted displacement output by the second displacement prediction model in S503 may specifically include S5031 and S5032.
S5031, determining a first frequency parameter by a device for controlling the displacement of the loudspeaker diaphragm.
Wherein the first frequency parameter is indicative of a high pass filter, the first frequency parameter attenuating audio signals of different frequencies differently. The high pass filter is indicated by the first frequency parameter for rejecting low frequency signals having a frequency outside the passband and passing medium and high frequency signals having a frequency within the passband.
It should be understood that the frequency parameters described in the embodiments of the present application are used to indicate high pass filters, and a set of frequency parameters indicates that the high pass filters attenuate different frequencies of the audio signal differently. A set of frequency parameters indicates a high pass filter for rejecting low frequency signals having frequencies outside of the passband and passing medium and high frequency signals having frequencies within the passband.
Specifically, the absolute value of the difference between the predicted displacement output by the second displacement prediction model and the displacement protection threshold of the loudspeaker is the minimum after the predicted displacement is filtered by the first frequency parameter.
Illustratively, the predicted displacement output by the second displacement prediction model is filtered by the first frequency parameter and is equal to the displacement protection threshold of the loudspeaker.
For example, the apparatus for controlling the displacement of the loudspeaker diaphragm in S5031 determines the first frequency parameter, which may be specifically implemented as: filtering the predicted displacement output by the second displacement prediction model by adopting n groups of frequency parameters; selecting two groups of frequency parameters of which the filtering output values are positioned on two sides of the displacement protection threshold value and the absolute value of the difference value between the filtering output values and the displacement protection threshold value is minimum; and selecting a first frequency parameter in a frequency parameter interval comprising the two groups of frequency parameters. Wherein, the passbands of the n groups of frequency parameters are different; n is greater than 2.
Specific values of the n groups of frequency parameters can be configured according to practical application experience, and details are not repeated in the embodiments of the present application.
It is to be understood that within the frequency parameter interval including the two sets of frequency parameters, the first frequency parameter is selected, which may be the pass band of the high-pass filter indicated by the first frequency parameter, between the channels of the high-pass filter indicated by the frequency parameters of the two sets of frequency parameters.
In one possible implementation manner, selecting the first frequency parameter in the frequency parameter interval including the two sets of frequency parameters may be implemented as: and selecting the intermediate value of the two groups of frequency parameters as a first frequency parameter in the frequency parameter interval comprising the two groups of frequency parameters.
For example, in a frequency parameter interval including the two sets of frequency parameters, selecting a middle value of the two sets of frequency parameters as a first frequency parameter may specifically be implemented as: and selecting the average value of the central frequencies of the two groups of frequency parameters as the central frequency of the first frequency parameter to obtain the first frequency parameter. Or selecting the average value of the initial frequencies of the two groups of frequency parameters as the initial frequency of the first frequency parameter to obtain the first frequency parameter. Or selecting the average value of the cut-off frequencies of the two groups of frequency parameters as the cut-off frequency of the first frequency parameter to obtain the first frequency parameter.
In another possible implementation manner, in the frequency parameter interval including the two sets of frequency parameters, selecting the first frequency parameter may be implemented as: interpolating between the two groups of frequency parameters to obtain a plurality of groups of frequency parameters to be selected; and selecting the frequency parameter to be selected with the smallest absolute value of the difference between the filtering output value of the prediction displacement output by the second displacement prediction model and the displacement protection threshold value from the multiple groups of frequency parameters to be selected as the first frequency parameter.
Optionally, interpolating between the two sets of frequency parameters may be implemented as: interpolating a center frequency of the two sets of frequency parameters, or interpolating a start frequency of the two sets of frequency parameters, or interpolating a cut-off frequency of the two sets of frequency parameters.
In a possible implementation manner, when performing interpolation between the two sets of frequency parameters, a preset number of values may be interpolated, or interpolation may be performed according to a preset frequency interval, or interpolation may be performed according to other manners, which is not specifically limited in this embodiment of the present application.
In another possible implementation manner, when interpolation is performed between the two sets of frequency parameters, the interpolation may be repeated until the candidate frequency parameter having the same difference between the filter output value of the prediction displacement output by the second displacement prediction model and the displacement protection threshold is obtained as the first frequency parameter.
S5032, the device for controlling the displacement of the diaphragm of the speaker filters the input signal of the speaker by using the first frequency parameter, so that the displacement of the diaphragm of the speaker playing the input signal is less than or equal to a displacement protection threshold of the speaker.
Specifically, in S5032, the means for controlling the displacement of the diaphragm of the speaker filters the input signal of the speaker with a high-pass filter indicated by the first frequency parameter. Because the absolute value of the difference between the predicted displacement output by the second displacement prediction model and the displacement protection threshold of the loudspeaker is the minimum after the predicted displacement output by the second displacement prediction model is filtered by the first frequency parameter, the predicted displacement output by the second displacement prediction model is close to or equal to the displacement protection threshold of the loudspeaker when the signal obtained by filtering the input signal of the loudspeaker by the first frequency parameter is adopted, and the diaphragm displacement of the loudspeaker playing the input signal is smaller than or equal to the displacement protection threshold of the loudspeaker.
In one possible implementation manner, the means for controlling the displacement of the diaphragm of the loudspeaker in S5032 directly filters the input signal of the loudspeaker with the first frequency parameter.
In a possible implementation manner, the means for controlling the loudspeaker diaphragm displacement in S5032 modifies the first frequency parameter into a second frequency parameter, where a smoothing coefficient is satisfied between the second frequency parameter and the currently filtered frequency parameter; and filtering the input signal of the loudspeaker by adopting a second frequency parameter, so that the displacement of a vibrating diaphragm of the loudspeaker playing the input signal is less than or equal to the displacement protection threshold of the loudspeaker.
The smoothing coefficient is preset content, and its value is not limited in the embodiments of the present application. The frequency parameter of the current filtering refers to a frequency parameter for filtering the input signal of the speaker when S5032 is performed.
According to the method for controlling the loudspeaker diaphragm displacement, provided by the embodiment of the application, the displacement prediction model of the loudspeaker is configured with the correction coefficients, different correction coefficients are used for controlling the output of the displacement prediction model at different frequency positions, and then the correction coefficients in the displacement prediction model are adjusted according to the actual displacement of the loudspeaker diaphragm until the difference between the prediction displacement output by the adjusted displacement prediction model and the actual displacement of the loudspeaker diaphragm is minimum. Therefore, the displacement prediction model can reflect the characteristics of the loudspeaker more truly, the output prediction displacement is more accurate, and further the displacement protection can be more accurately carried out, so that the hardware potential of the loudspeaker is maximally exerted on the premise of protecting the displacement of the diaphragm of the loudspeaker, and the loudspeaker loud-speaking degree is improved.
For example, fig. 7 illustrates a frame of a speaker system provided in an embodiment of the present application. As shown in fig. 7, the speaker system includes a displacement prediction model (a second displacement prediction model after adjustment of the correction parameter), a gain control unit, a power amplifier unit, and a speaker unit. Inputting an input signal of the loudspeaker into a displacement prediction model, outputting a predicted displacement, controlling the gain of the input signal by a gain control unit according to the predicted displacement and a displacement protection threshold value, and inputting the input signal into a power amplification unit; and the power amplification unit converts the digital signal into an analog signal and then inputs the analog signal into a loudspeaker for playing.
Here, the gain control unit may perform gain control on the input signal in various manners described in S503. When the gain control unit performs gain control by means of a high-pass filter, the loudspeaker system further comprises a determination unit on the basis of the illustration of fig. 7, as shown in the framework of the loudspeaker system shown in fig. 8. The determining unit determines the first frequency parameter to input to the gain control unit using the processes of S5031 and S5032.
Furthermore, the method for controlling the displacement of the diaphragm of the loudspeaker provided by the embodiment of the application can update the initial parameters in the displacement prediction model according to the real-time current and voltage of the loudspeaker. As shown in fig. 6, the method for controlling the displacement of the loudspeaker diaphragm according to the embodiment of the present application further includes S504 to S507.
S504, the device for controlling the loudspeaker diaphragm displacement collects the current and the voltage of the loudspeaker, and an impedance curve is obtained.
The specific implementation of obtaining the impedance curve is described in the foregoing, and is not described herein again.
And S505, the device for controlling the displacement of the loudspeaker diaphragm extracts the direct current resistance Re and the resonant frequency f 0.
S506, the device for controlling the loudspeaker diaphragm to displace calculates the real-time Kms through the resonance frequency f0 and the vibration mass Mms.
Wherein Kms satisfies the following expression: kms ═ (2. pi. f)0)2Mms. Mms is an inherent hardware parameter of the speaker.
And S507, updating Kms in the currently used displacement prediction model into real-time Kms by the device for controlling the displacement of the loudspeaker diaphragm.
Of course, the device for controlling the displacement of the loudspeaker diaphragm may refer to the processes from S504 to S507, and update other initial parameters in the displacement prediction model, which is not described in detail.
Exemplarily, when the method for controlling the displacement of the loudspeaker diaphragm provided in the embodiment of the present application further includes S504 to S507, as shown in the loudspeaker system frame shown in fig. 9, the loudspeaker system further includes an updating unit based on the illustration in fig. 7. The updating unit updates the initial parameters in the displacement prediction model for predicting the displacement of the diaphragm of the loudspeaker by adopting the processes from S504 to S507.
Furthermore, along with the temperature rise, the displacement of the vibrating diaphragm of the same signal loudspeaker can be increased, the method for controlling the displacement of the vibrating diaphragm of the loudspeaker also corrects the frequency parameter of a high-pass filter for filtering the input signal of the loudspeaker according to the temperature, the control of the input signal is ensured to be in accordance with the current characteristic of the loudspeaker, and the loudspeaker external-radiation degree is further ensured to be improved. As shown in fig. 6, the method for controlling the displacement of the loudspeaker diaphragm according to the embodiment of the present application may further include S508 to S510, so as to implement the correction of the frequency parameter of the high-pass filter according to the temperature.
And S508, determining the real-time temperature of the loudspeaker according to the impedance of the loudspeaker by the device for controlling the displacement of the loudspeaker diaphragm.
Wherein the real-time temperature T of the speaker may satisfy the following expression:sigma is the temperature rise coefficient, Re is the impedance of the loudspeaker, Re0Impedance of loudspeaker at room temperature, T0Is a preset room temperature. σ and Re are intrinsic parameters of the loudspeaker.
It should be noted that the expression of the real-time temperature T may be configured according to actual requirements, which is not limited in the embodiment of the present application.
And S509, determining a frequency correction coefficient according to the real-time temperature by the device for controlling the displacement of the loudspeaker diaphragm.
the parameters in the expression in which the frequency correction coefficient Coeff satisfies the following expression are all preset values, for example, ThotIs a thermal state temperature threshold, TcoldFor cold state temperature threshold, Coeff0Is the initial frequency correction factor. The embodiment of the present application does not limit the specific value of the preset value.
It should be noted that the expression of the frequency correction coefficient Coeff may be configured according to actual requirements, which is not limited in the embodiment of the present application.
Further, the frequency correction coefficient Coeff is a frequency offset, or a passband offset.
S510, the device for controlling the loudspeaker diaphragm displacement corrects the frequency parameter of the filtering according to the frequency correction coefficient, and the input signal of the loudspeaker is filtered by the corrected frequency parameter.
Here, the frequency parameter of the filtering refers to a frequency parameter of filtering the input signal of the speaker when S510 is performed.
Specifically, in S510, the frequency parameter of the filtering is corrected according to the frequency correction coefficient, which means that the channel of the high-pass filter indicated by the frequency parameter of the filtering is shifted by the value of the frequency correction coefficient, so as to obtain the corrected frequency parameter.
Exemplarily, when the method for controlling the displacement of the loudspeaker diaphragm provided in the embodiment of the present application further includes S508 to S510, as shown in the loudspeaker system frame shown in fig. 10, the loudspeaker system further includes a temperature calculating unit and a temperature correcting unit based on the schematic diagram of fig. 7. The temperature calculating unit calculates the real-time temperature of the loudspeaker by adopting the process of S508, the temperature correcting unit determines a frequency correction coefficient by adopting the process of S509 and inputs the frequency correction coefficient into the gain control unit, and the gain control unit corrects the frequency parameter of the filtering by adopting the process of S510 so as to filter the input signal of the loudspeaker by the corrected frequency parameter.
In another aspect, an embodiment of the present application provides another method for controlling displacement of a diaphragm of a speaker, where the method is performed by a device for controlling displacement of a diaphragm of a speaker, and the device for controlling displacement of a diaphragm of a speaker may be used in cooperation with an electronic device in which the speaker is deployed, or the device for controlling displacement of a diaphragm of a speaker may be deployed inside the electronic device. According to the method, after the displacement prediction model outputs the predicted displacement, gain control is carried out on an input signal. The displacement prediction model may be the displacement prediction model in the loudspeaker system illustrated in fig. 1 or fig. 2, or may be the second displacement prediction model described in the embodiment of the present application (the scheme illustrated in fig. 5). As shown in fig. 11, a method for controlling a displacement of a loudspeaker diaphragm according to an embodiment of the present application may include:
s1101, the device for controlling the displacement of the loudspeaker diaphragm determines a first frequency parameter.
The first frequency parameter has different attenuation to the audio signals with different frequencies, and the high-pass filter indicated by the first frequency parameter is used for suppressing the low-frequency signals with the frequencies outside the passband and the medium-high frequency signals with the frequencies inside the passband.
It should be noted that, for a specific implementation of S1101, reference may be made to the implementation of S5031, and details are not described here.
S1102, the device for controlling the displacement of the loudspeaker diaphragm filters the input signal of the loudspeaker by adopting the first frequency parameter, so that the displacement of the diaphragm of the loudspeaker playing the input signal is smaller than or equal to the displacement protection threshold of the loudspeaker.
It should be noted that, for a specific implementation of S1102, reference may be made to the implementation of S5032, which is not described herein again.
According to the method for controlling the loudspeaker diaphragm displacement, the low-frequency signal is suppressed through the determined frequency coefficient, different attenuations are carried out on the audio signals with different frequencies through the medium-high frequency signals, and the influence of the input signal gain on the diaphragm displacement can be effectively controlled due to the fact that the diaphragm displacement of the loudspeaker is mainly generated by the low-frequency signals, the loudness of the sound signals cannot be obviously reduced, and the output of the loudspeaker is restrained to the lowest degree. The gain of the input signal of the loudspeaker is controlled through a high-pass filtering mode, namely different displacement protection thresholds are set at different frequencies, so that the potential of hardware of the loudspeaker at different frequencies is ensured to be exerted, and the external loudness of the loudspeaker is improved.
Furthermore, along with the temperature rise, the displacement of the same signal loudspeaker can be increased, the method for controlling the loudspeaker diaphragm displacement provided by the application also corrects the frequency parameter of the high-pass filter according to the temperature, the control of the input signal is ensured to accord with the current characteristic of the loudspeaker, and the loudspeaker external loudness is further ensured to be improved. As shown in fig. 12, the method for controlling the displacement of the loudspeaker diaphragm according to the embodiment of the present application may further include S1103 to S1105, so as to implement the correction of the frequency parameter of the high-pass filter according to the temperature.
S1103, the device for controlling the displacement of the loudspeaker diaphragm determines the real-time temperature of the loudspeaker according to the impedance of the loudspeaker.
It should be noted that, for a specific implementation of S1103, reference may be made to the implementation of S508, which is not described herein again.
And S1104, determining a frequency correction coefficient according to the real-time temperature by the device for controlling the displacement of the loudspeaker diaphragm.
It should be noted that, for a specific implementation of S1104, reference may be made to the implementation of S509, and details are not described here.
S1105, the device for controlling the loudspeaker diaphragm displacement corrects the frequency parameter of the filtering according to the frequency correction coefficient, and the input signal of the loudspeaker is filtered by the corrected frequency parameter.
It should be noted that, for a specific implementation of S1105, reference may be made to the implementation of S510 described above, and details are not described here.
It should be noted that, the execution sequence of the steps included in the method provided in the embodiment of the present application may be configured according to actual requirements, and fig. 5, fig. 6, fig. 11, or fig. 12 are only schematic and are not limited.
The above-mentioned scheme provided by the embodiments of the present application has been introduced mainly from the viewpoint of the working principle of the apparatus for controlling the displacement of a diaphragm of a loudspeaker. It will be understood that the above-described means for controlling the displacement of a loudspeaker diaphragm may comprise corresponding hardware structures and/or software modules for performing the respective functions, in order to carry out the functions described above. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the device for controlling diaphragm displacement of a loudspeaker provided by the present application may be divided into functional modules according to the above method examples, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
Fig. 13 shows a schematic diagram of a possible structure of a device 130 for controlling the displacement of a loudspeaker diaphragm according to the above embodiment, in the case of dividing each functional module according to each function. The means for controlling diaphragm displacement 130 of the speaker may be a functional module or a chip, and the means for controlling diaphragm displacement 130 of the speaker may be used with an electronic device in which the speaker is disposed, for example, may be disposed in the electronic device. As shown in fig. 13, the means 130 for controlling the displacement of the loudspeaker diaphragm may include: a first acquisition unit 1301, an adjustment unit 1302, and a control unit 1303. The first obtaining unit 1301 is configured to perform the process S501 in fig. 5 or fig. 6. The adjusting unit 1302 is configured to execute the process S502 in fig. 5 or fig. 6. The control unit 1303 is configured to execute the process S503 in fig. 5 or fig. 6. All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
Further, as shown in fig. 14, the apparatus 130 for controlling the displacement of the diaphragm of the loudspeaker may further include a collecting unit 1304, an extracting unit 1305, a calculating unit 1306, and an updating unit 1307. The acquisition unit 1304 is configured to execute the process S504 in fig. 6. The extraction unit 1305 is configured to execute the process S505 in fig. 6. The calculation unit 1306 is configured to execute the process S506 in fig. 6. The updating unit 1307 is used to execute the procedure S507 in fig. 6.
Further, as shown in fig. 14, the apparatus 130 for controlling the displacement of the loudspeaker diaphragm may further include a second determining unit 1308 and a correcting unit 1309. The second determining unit 1308 is configured to perform the processes S508 and S509 in fig. 6. The correcting unit 1309 is used to execute the process S510 in fig. 6.
Fig. 15 shows a schematic diagram of a possible structure of another device 150 for controlling the displacement of a loudspeaker diaphragm according to the above embodiment, in the case of dividing each functional module according to each function. The means 150 for controlling the displacement of the loudspeaker diaphragm may be a functional module or a chip, and the means 150 for controlling the displacement of the loudspeaker diaphragm may be used with an electronic device in which the loudspeaker is disposed, for example, may be disposed in the electronic device. As shown in fig. 15, the means 150 for controlling the displacement of the loudspeaker diaphragm may include: a first determination unit 1501, a filtering unit 1502. Here, the first determination unit 1501 is configured to execute the process S1101 in fig. 11 or fig. 12. The filtering unit 1502 is configured to perform the process S1102 in fig. 11 or fig. 12. All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
Further, as shown in fig. 16, the apparatus 150 for controlling displacement of a loudspeaker diaphragm may further include a second determining unit 1503 and a correcting unit 1504. The second determination unit 1503 is configured to execute the processes S1103 and S1104 in fig. 12. The correcting unit 1504 is configured to execute the process S1105 in fig. 12.
Fig. 17 shows another possible structural diagram of the device for controlling the displacement of a loudspeaker diaphragm according to the above-described embodiment, in the case of an integrated unit. As shown in fig. 17, the means 170 for controlling the displacement of the diaphragm of the loudspeaker may include: a processing module 1701, and a communication module 1702. The processing module 1701 is used for controlling and managing the action of the device 170 for controlling the displacement of the loudspeaker diaphragm, and the communication module 1702 is used for communicating with other devices. For example, the processing module 1701 is configured to execute any one of the processes S501 to S503 in fig. 5 or 6, or the processing module 1701 is configured to execute any one of the processes S504 to S510 in fig. 6, or the processing module 1701 is configured to execute the process S1101 or S1102 in fig. 11 or 12, or the processing module 1701 is configured to execute any one of the processes S1103 to S1105 in fig. 12. The means 170 for controlling the displacement of the loudspeaker diaphragm may further comprise a memory module 1703 for storing program code and data for the means 170 for controlling the displacement of the loudspeaker diaphragm.
The processing module 1701 may be the processor 110 in the physical structure of the electronic device shown in fig. 3, or may be the processor 401 in the apparatus 40 for controlling the displacement of a loudspeaker diaphragm illustrated in fig. 4, and the processing module 1701 may be a processor or a controller. For example, it may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processing module 1701 may also be a combination of modules implementing computing functionality, e.g., including one or more microprocessor combinations, combinations of DSPs and microprocessors, and the like. The communication module 1702 may be the mobile communication module 150 or the wireless communication module 160 in the physical structure of the electronic device shown in fig. 3, or may be the transceiver 403 in the apparatus 40 for controlling the displacement of a loudspeaker diaphragm illustrated in fig. 4, and the communication module 1702 may be a communication port, or may be a transceiver, a transceiver circuit, a communication interface, or the like. Alternatively, the communication interface may be configured to communicate with another device through the element having the transmission/reception function. The above-mentioned elements with transceiving functions may be implemented by antennas and/or radio frequency devices. The storage module 1703 may be the internal memory 121 in the physical structure of the electronic device shown in fig. 3, or may be the memory 402 in the apparatus 40 for controlling diaphragm displacement of a loudspeaker illustrated in fig. 4.
As mentioned above, the apparatus 130 for controlling displacement of a loudspeaker diaphragm or the apparatus 150 for controlling displacement of a loudspeaker diaphragm or the apparatus 170 for controlling displacement of a loudspeaker diaphragm provided in the embodiments of the present application may be used to implement the corresponding functions of the apparatus for controlling displacement of a loudspeaker diaphragm in the methods implemented in the embodiments of the present application.
As another form of this embodiment, a computer-readable storage medium is provided, on which instructions are stored, which when executed perform the method of controlling loudspeaker diaphragm displacement in the above-described method embodiment.
As another form of the present embodiment, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of controlling loudspeaker diaphragm displacement in the above-described method embodiment.
The embodiment of the present invention further provides a chip system, which includes a processor and is used for implementing the technical method of the embodiment of the present invention. In one possible design, the system-on-chip further includes a memory for storing program instructions and/or data necessary for an embodiment of the present invention. In one possible design, the system-on-chip further includes a memory for the processor to call application code stored in the memory. The chip system may be composed of one or more chips, and may also include a chip and other discrete devices, which is not specifically limited in this embodiment of the present application.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied in hardware or in software instructions executed by a processor. The software instructions may consist of corresponding software modules that may be stored in RAM, flash memory, ROM, Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), registers, a hard disk, a removable hard disk, a compact disc read only memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in a core network interface device. Of course, the processor and the storage medium may reside as discrete components in a core network interface device. Alternatively, the memory may be coupled to the processor, for example, the memory may be separate and coupled to the processor via a bus. The memory may also be integral to the processor. The memory can be used for storing application program codes for executing the technical scheme provided by the embodiment of the application, and the processor is used for controlling the execution. The processor is used for executing the application program codes stored in the memory, so as to realize the technical scheme provided by the embodiment of the application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented using a software program, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produce, in whole or in part, the processes or functions described in the embodiments of the application. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy disk, magnetic tape), an optical medium (e.g., Digital Video Disk (DVD)), or a semiconductor medium (e.g., Solid State Drive (SSD)), among others.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (39)
1. A method of controlling displacement of a loudspeaker diaphragm, the method comprising:
obtaining a first displacement prediction model comprising one or more correction coefficients, the first displacement prediction model being for simulating the performance of the loudspeaker to predict a displacement of a diaphragm of the loudspeaker, the correction coefficients being for controlling an output of the first displacement prediction model;
adjusting a correction coefficient in the first displacement prediction model to obtain a second displacement prediction model; the absolute value of the difference value between the predicted displacement output by the second displacement prediction model and the actual displacement of the diaphragm is smaller than the absolute value of the difference value between the predicted displacement output by the first displacement prediction model and the actual displacement; the actual displacement is an actual measurement value of the moving distance of the diaphragm relative to the initial position;
controlling the gain of the input signal of the loudspeaker according to the displacement protection threshold value of the loudspeaker and the predicted displacement output by the second displacement prediction model, so that the diaphragm displacement of the loudspeaker playing the input signal is smaller than or equal to the displacement protection threshold value; the displacement protection threshold is the maximum displacement of the diaphragm.
2. The method of claim 1, wherein the first displacement prediction model and the second displacement prediction model further comprise initial parameters, and the initial parameters are parameters related to the hardware characteristics of the loudspeaker in the displacement prediction models; the method further comprises the following steps:
collecting the current and the voltage of the loudspeaker to obtain an impedance curve;
extracting the direct current resistance Re and the resonant frequency f0 of the loudspeaker from the impedance curve;
calculating a real-time stiffness coefficient Kms of the loudspeaker, the Kms satisfying the following expression: kms ═ (2. pi. f)0)2Mms, the Mms being a vibrating mass of the speaker;
updating the initial parameter Kms of the second displacement prediction model to the real-time Kms.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and acquiring an impedance curve of the loudspeaker, and determining initial parameters of the first displacement prediction model according to the impedance curve.
4. The method of claim 3, wherein obtaining an impedance curve for the loudspeaker from which initial parameters of the first displacement prediction model are determined comprises:
inputting a preset input signal into the loudspeaker, and collecting the voltage and the current of the loudspeaker;
determining an impedance curve of the loudspeaker according to the voltage and the current;
and determining initial parameters of the first displacement prediction model through curve fitting or parameter identification according to the impedance curve.
5. The method according to any of claims 1-4, wherein said adjusting correction coefficients in said first displacement prediction model comprises:
adjusting correction coefficients in the first displacement prediction model by a first correction and/or a second correction;
the first correction comprises repeatedly adjusting one or more correction coefficients in a displacement prediction model until the absolute value of the difference between the predicted displacement output by the displacement prediction model and the actual displacement of the diaphragm is minimum;
and the second correction comprises adjusting correction coefficients in an Infinite Impulse Response (IIR) filter superposed on the displacement prediction model until the absolute value of the difference between the predicted displacement output by the displacement prediction model and the actual displacement of the diaphragm is minimum.
6. The method of claim 5, wherein the first displacement prediction model and the second displacement prediction model satisfy the following expression:
F issFor the sampling rate, the alpha, the beta, the gamma and the omega are correction coefficients, the alpha is used for adjusting the low-frequency output of the displacement prediction model, the beta is used for adjusting the output of a frequency interval containing the resonance frequency of the loudspeaker of the displacement prediction model, the gamma is used for adjusting the medium-frequency output of the displacement prediction model, and the omega is used for adjusting the positionMoving the full-band output of the prediction model; bl is the coefficient of magnetism of the loudspeaker in the initial parameters, Kms is the coefficient of stiffness of the loudspeaker in the initial parameters, and rms is the power of the loudspeaker in the initial parameters.
7. The method of claim 5 or 6, wherein the IIR filter satisfies the following expression:
wherein the correction coefficients in the IIR filter are a shape parameter q, a cut-off frequency parameter K and a gain parameter V0;
The K ═ tan (pi ═ f)c/fs),fsIs the sampling rate, fcIs the cutoff frequency of the IIR filter;
when the gain of the IIR filter is larger than or equal to 0, V0=10gain/20,b0=(1+V0*K/q+K*K)/Den,b1=2*(K*K-1)/Den,b2=(1-V0*K/q+K*K)/Den,a0=1,a1=b2,a2=(1-K/q+K*K)/Den,Den=1+K/q+K*K;
When the gain of the IIR filter is less than 0, V0=10-gain/20,b0=(1+K/q+K*K)/Den,b1=2*(K*K-1)/Den,b2=(1-K/q+K*K)/Den,a0=1,a1=b2,a2=(1-V0*K/q+K*K)/Den,Den=1+V0*K/q+K*K。
8. The method of any one of claims 1-7, wherein controlling the gain of the input signal to the loudspeaker based on the displacement protection threshold of the loudspeaker and the predicted displacement output by the second displacement prediction model comprises:
determining a first frequency parameter, wherein the attenuation of the audio signals of different frequencies is different by the first frequency parameter, and the high-pass filter indicated by the first frequency parameter is used for suppressing low-frequency signals with the frequency outside a pass band and medium-high frequency signals with the frequency inside the pass band; after the predicted displacement output by the second displacement prediction model is filtered by the first frequency parameter, the absolute value of the difference value between the predicted displacement and the displacement protection threshold value of the loudspeaker is minimum;
and filtering the input signal of the loudspeaker by adopting the first frequency parameter, so that the displacement of the diaphragm of the loudspeaker playing the input signal is less than or equal to the displacement protection threshold value.
9. The method of claim 8, wherein determining the first frequency parameter comprises:
filtering the predicted displacement output by the second displacement prediction model by adopting n groups of frequency parameters; wherein the passbands of the n sets of frequency parameters are different; the n is greater than 2; a set of said frequency parameters attenuating audio signals differently for different frequencies;
selecting two groups of frequency parameters of which the filtering output values are positioned on two sides of the displacement protection threshold value and the absolute value of the difference value between the filtering output values and the displacement protection threshold value is minimum;
and selecting the first frequency parameter in a frequency parameter interval comprising the two groups of frequency parameters.
10. The method of claim 9, wherein selecting the first frequency parameter in a frequency parameter interval comprising the two sets of frequency parameters comprises:
interpolating between the two groups of frequency parameters to obtain a plurality of groups of frequency parameters to be selected;
and selecting the frequency parameter to be selected with the smallest absolute value of the difference between the filtering output value of the prediction displacement output by the second displacement prediction model and the displacement protection threshold value from the multiple groups of frequency parameters to be selected as the first frequency parameter.
11. The method according to any of claims 8-10, wherein said filtering the input signal to the loudspeaker with the first frequency parameter comprises:
correcting the first frequency parameter into a second frequency parameter, wherein a smoothing coefficient is satisfied between the second frequency parameter and the current filtering frequency parameter;
and filtering the input signal of the loudspeaker by adopting the second frequency parameter, so that the displacement of the diaphragm of the loudspeaker playing the input signal is less than or equal to the displacement protection threshold value.
12. The method according to any one of claims 8-11, further comprising:
determining the real-time temperature of the loudspeaker according to the impedance of the loudspeaker, wherein the real-time temperature T of the loudspeaker meets the following expression:σ is a temperature rise coefficient, Re is an impedance of the speaker, Re0The impedance of the loudspeaker at room temperature, T0Is a preset room temperature;
determining a frequency correction coefficient according to the real-time temperature, wherein the frequency correction coefficient Coeff meets the following expression:the T ishotIs a thermal state temperature threshold, TcoldFor cold state temperature threshold, the Coeff0The initial frequency correction coefficient;
and correcting the frequency parameter of the filtering according to the Coeff, and filtering the input signal of the loudspeaker by using the corrected frequency parameter.
13. A method of controlling displacement of a loudspeaker diaphragm, the method comprising:
determining a first frequency parameter, wherein the attenuation of the audio signals of different frequencies is different by the first frequency parameter, and the high-pass filter indicated by the first frequency parameter is used for suppressing low-frequency signals with the frequency outside a pass band and medium-high frequency signals with the frequency inside the pass band; after the predicted displacement output by the displacement prediction model is filtered by the first frequency parameter, the absolute value of the difference value between the predicted displacement and the displacement protection threshold value of the loudspeaker is minimum; the displacement protection threshold value is the maximum displacement of the diaphragm;
and filtering the input signal of the loudspeaker by adopting the first frequency parameter, so that the displacement of a diaphragm of the loudspeaker playing the input signal is less than or equal to a displacement protection threshold value of the loudspeaker.
14. The method of claim 13, wherein determining the first frequency parameter comprises:
filtering the predicted displacement output by the displacement prediction model by adopting n groups of frequency parameters; wherein the passbands of the n sets of frequency parameters are different; the n is greater than 2; a set of said frequency parameters attenuating audio signals differently for different frequencies; the displacement prediction model is used for simulating the performance of the loudspeaker to predict the displacement of the loudspeaker;
selecting two groups of frequency parameters of which the filtering output values are positioned on two sides of the displacement protection threshold value and the absolute value of the difference value between the filtering output values and the displacement protection threshold value is minimum;
and selecting the first frequency parameter in a frequency parameter interval comprising the two groups of frequency parameters.
15. The method of claim 14, wherein selecting the first frequency parameter in a frequency parameter interval comprising the two sets of frequency parameters comprises:
interpolating between the two groups of frequency parameters to obtain a plurality of groups of frequency parameters to be selected;
and selecting the frequency parameter to be selected with the smallest absolute value of the difference between the filtering output value of the prediction displacement output by the displacement prediction model and the displacement protection threshold value from the multiple groups of frequency parameters to be selected as the first frequency parameter.
16. The method of claim 14 or 15, wherein said filtering the input signal of the loudspeaker with the first frequency parameter comprises:
correcting the first frequency parameter into a second frequency parameter, wherein a smoothing coefficient is satisfied between the second frequency parameter and the current filtering frequency parameter;
and filtering the input signal of the loudspeaker by adopting the second frequency parameter to ensure that the displacement of the diaphragm of the loudspeaker playing the input signal is less than or equal to the displacement protection threshold value.
17. The method according to any one of claims 13-16, further comprising:
determining the real-time temperature of the loudspeaker according to the impedance of the loudspeaker, wherein the real-time temperature T of the loudspeaker meets the following expression:σ is a temperature rise coefficient, Re is an impedance of the speaker, Re0The impedance of the loudspeaker at room temperature, T0Is a preset room temperature;
determining a frequency correction coefficient according to the real-time temperature, wherein the frequency correction coefficient Coeff meets the following expression:the T ishotIs a thermal state temperature threshold, TcoldFor cold state temperature threshold, the Coeff0The initial frequency correction coefficient;
and correcting the frequency parameter of the filtering according to the Coeff, and filtering the input signal of the loudspeaker by using the corrected frequency parameter.
18. An apparatus for controlling displacement of a loudspeaker diaphragm, the apparatus comprising:
a first obtaining unit configured to obtain a first displacement prediction model including one or more correction coefficients for controlling an output of the first displacement prediction model, the first displacement prediction model being configured to simulate a performance of the speaker to predict a displacement of a diaphragm of the speaker;
the adjusting unit is used for adjusting the correction coefficient in the first displacement prediction model to obtain a second displacement prediction model; the absolute value of the difference value between the predicted displacement output by the second displacement prediction model and the actual displacement of the diaphragm is smaller than the absolute value of the difference value between the predicted displacement output by the first displacement prediction model and the actual displacement; the actual displacement is an actual measurement value of the moving distance of the diaphragm relative to the initial position;
the control unit is used for controlling the gain of the input signal of the loudspeaker according to the displacement protection threshold value of the loudspeaker and the predicted displacement output by the second displacement prediction model, so that the diaphragm displacement of the loudspeaker playing the input signal is smaller than or equal to the displacement protection threshold value; the displacement protection threshold is the maximum displacement of the diaphragm.
19. The apparatus of claim 18, wherein the first displacement prediction model and the second displacement prediction model further comprise initial parameters, and the initial parameters are parameters related to the hardware characteristics of the loudspeaker in the displacement prediction models; the device further comprises:
the acquisition unit is used for acquiring the current and the voltage of the loudspeaker and acquiring an impedance curve;
an extraction unit for extracting the direct current resistance Re and the resonance frequency f0 of the speaker in the impedance curve;
a calculating unit, configured to calculate a real-time stiffness coefficient Kms of the speaker, where Kms satisfies the following expression: kms ═ (2. pi. f)0)2Mms, the Mms being a vibrating mass of the speaker;
and the updating unit is used for updating the initial parameter Kms of the second displacement prediction model into the real-time Kms.
20. The apparatus of claim 18 or 19, further comprising:
the second acquisition unit is used for acquiring an impedance curve of the loudspeaker;
a first determination unit for determining initial parameters of the first displacement prediction model from the impedance curve.
21. The apparatus according to claim 20, wherein the second obtaining unit is specifically configured to:
inputting a preset input signal into the loudspeaker, and collecting the voltage and the current of the loudspeaker;
determining an impedance curve of the loudspeaker according to the voltage and the current;
and determining initial parameters of the first displacement prediction model through curve fitting or parameter identification according to the impedance curve.
22. The apparatus according to any one of claims 18 to 21, wherein the adjusting unit is specifically configured to:
adjusting correction coefficients in the first displacement prediction model by a first correction and/or a second correction;
the first correction comprises repeatedly adjusting one or more correction coefficients in a displacement prediction model until the absolute value of the difference between the predicted displacement output by the displacement prediction model and the actual displacement of the diaphragm is minimum;
and the second correction comprises adjusting correction coefficients in an Infinite Impulse Response (IIR) filter superposed on the displacement prediction model until the absolute value of the difference between the predicted displacement output by the displacement prediction model and the actual displacement of the diaphragm is minimum.
23. The apparatus of claim 22, wherein the first displacement prediction model and the second displacement prediction model satisfy the following expression:
F issThe alpha, the beta, the gamma and the omega are correction coefficients, the alpha is used for adjusting the low-frequency output of a displacement prediction model, the beta is used for adjusting the output of a frequency interval containing the resonance frequency of the loudspeaker of the displacement prediction model, the gamma is used for adjusting the medium-frequency output of the displacement prediction model, and the omega is used for adjusting the full-frequency-band output of the displacement prediction model; bl is the coefficient of magnetism of the loudspeaker in the initial parameters, Kms is the coefficient of stiffness of the loudspeaker in the initial parameters, and rms is the power of the loudspeaker in the initial parameters.
24. The apparatus of claim 22 or 23, wherein the IIR filter satisfies the following expression:
wherein the correction coefficients in the IIR filter are a shape parameter q, a cut-off frequency parameter K and a gain parameter V0;
The K ═ tan (pi ═ f)c/fs),fsIs the sampling rate, fcIs the cutoff frequency of the IIR filter;
when the gain of the IIR filter is larger than or equal to 0, V0=10gain/20,b0=(1+V0*K/q+K*K)/Den,b1=2*(K*K-1)/Den,b2=(1-V0*K/q+K*K)/Den,a0=1,a1=b2,a2=(1-K/q+K*K)/Den,Den=1+K/q+K*K;
When the gain of the IIR filter is less than 0, V0=10-gain/20,b0=(1+K/q+K*K)/Den,b1=2*(K*K-1)/Den,b2=(1-K/q+K*K)/Den,a0=1,a1=b2,a2=(1-V0*K/q+K*K)/Den,Den=1+V0*K/q+K*K。
25. The device according to any of claims 18-24, wherein the control unit is specifically configured to:
determining a first frequency parameter, wherein the attenuation of the audio signals of different frequencies is different by the first frequency parameter, and the high-pass filter indicated by the first frequency parameter is used for suppressing low-frequency signals with the frequency outside a pass band and medium-high frequency signals with the frequency inside the pass band; after the predicted displacement output by the second displacement prediction model is filtered by the first frequency parameter, the absolute value of the difference value between the predicted displacement and the displacement protection threshold value of the loudspeaker is minimum;
and filtering the input signal of the loudspeaker by adopting the first frequency parameter, so that the displacement of the diaphragm of the loudspeaker playing the input signal is less than or equal to the displacement protection threshold value.
26. The apparatus of claim 25, wherein the control unit determines a first frequency parameter comprising:
filtering the predicted displacement output by the second displacement prediction model by adopting n groups of frequency parameters; wherein the passbands of the n sets of frequency parameters are different; the n is greater than 2; a set of said frequency parameters attenuating audio signals differently for different frequencies;
selecting two groups of frequency parameters of which the filtering output values are positioned on two sides of the displacement protection threshold value and the absolute value of the difference value between the filtering output values and the displacement protection threshold value is minimum;
and selecting the first frequency parameter in a frequency parameter interval comprising the two groups of frequency parameters.
27. The apparatus of claim 26, wherein the control unit selects the first frequency parameter within a frequency parameter interval comprising the two sets of frequency parameters, comprising:
interpolating between the two groups of frequency parameters to obtain a plurality of groups of frequency parameters to be selected;
and selecting the frequency parameter to be selected with the smallest absolute value of the difference between the filtering output value of the prediction displacement output by the second displacement prediction model and the displacement protection threshold value from the multiple groups of frequency parameters to be selected as the first frequency parameter.
28. The apparatus according to any of claims 25-27, wherein the control unit filters the input signal to the loudspeaker using the first frequency parameter, comprising:
correcting the first frequency parameter into a second frequency parameter, wherein a smoothing coefficient is satisfied between the second frequency parameter and the current filtering frequency parameter;
and filtering the input signal of the loudspeaker by adopting the second frequency parameter, so that the displacement of the diaphragm of the loudspeaker playing the input signal is less than or equal to the displacement protection threshold value.
29. The apparatus of any one of claims 25-28, further comprising:
the second determining unit is used for determining the real-time temperature of the loudspeaker according to the impedance of the loudspeaker; determining a frequency correction coefficient according to the real-time temperature; the real-time temperature T of the loudspeaker satisfies the following expression:σ is a temperature rise coefficient, Re is an impedance of the speaker, Re0The impedance of the loudspeaker at room temperature, T0Is a preset room temperature; the frequency correction coefficient Coeff satisfies the following expression:the T ishotIs a thermal state temperature threshold, TcoldFor cold state temperature threshold, the Coeff0The initial frequency correction coefficient;
the correcting unit is used for correcting the frequency parameter of the filtering according to the Coeff;
the control unit is further configured to filter the input signal of the loudspeaker with the modified frequency parameter.
30. An apparatus for controlling displacement of a loudspeaker diaphragm, the apparatus comprising:
a first determining unit, configured to determine a first frequency parameter, where the first frequency parameter attenuates audio signals of different frequencies differently, and the first frequency parameter indicates a high-pass filter for suppressing low-frequency signals whose frequencies are outside a passband and middle-high frequency signals whose frequencies are inside the passband; after the predicted displacement output by the displacement prediction model is filtered by the first frequency parameter, the absolute value of the difference value between the predicted displacement and the displacement protection threshold value of the loudspeaker is minimum; the displacement protection threshold value is the maximum displacement of the diaphragm;
and the filtering unit is used for filtering the input signal of the loudspeaker by adopting the first frequency parameter, so that the displacement of a diaphragm of the loudspeaker playing the input signal is smaller than or equal to a displacement protection threshold value of the loudspeaker.
31. The apparatus according to claim 30, wherein the first determining unit is specifically configured to:
filtering the predicted displacement output by the displacement prediction model by adopting n groups of frequency parameters; wherein the passbands of the n sets of frequency parameters are different; the n is greater than 2; a set of said frequency parameters attenuating audio signals differently for different frequencies; the displacement prediction model is used for simulating the performance of the loudspeaker to predict the displacement of the loudspeaker;
selecting two groups of frequency parameters of which the filtering output values are positioned on two sides of the displacement protection threshold value and the absolute value of the difference value between the filtering output values and the displacement protection threshold value is minimum;
and selecting the first frequency parameter in a frequency parameter interval comprising the two groups of frequency parameters.
32. The apparatus of claim 31, wherein the first determining unit selects the first frequency parameter in a frequency parameter interval including the two sets of frequency parameters, comprising:
interpolating between the two groups of frequency parameters to obtain a plurality of groups of frequency parameters to be selected;
and selecting the frequency parameter to be selected with the smallest absolute value of the difference between the filtering output value of the prediction displacement output by the displacement prediction model and the displacement protection threshold value from the multiple groups of frequency parameters to be selected as the first frequency parameter.
33. The apparatus according to claim 31 or 32, wherein the filtering unit is specifically configured to:
correcting the first frequency parameter into a second frequency parameter, wherein a smoothing coefficient is satisfied between the second frequency parameter and the current filtering frequency parameter;
and filtering the input signal of the loudspeaker by adopting the second frequency parameter to ensure that the displacement of the diaphragm of the loudspeaker playing the input signal is less than or equal to the displacement protection threshold value.
34. The apparatus of any one of claims 30-33, further comprising:
the second determining unit is used for determining the real-time temperature of the loudspeaker according to the impedance of the loudspeaker and determining a frequency correction coefficient according to the real-time temperature; the real-time temperature T of the loudspeaker satisfies the following expression:σ is a temperature rise coefficient, Re is an impedance of the speaker, Re0The impedance of the loudspeaker at room temperature, T0Is a preset room temperature; the frequency correction coefficient Coeff satisfies the following expression:the T ishotIs a thermal state temperature threshold, TcoldFor cold state temperature threshold, the Coeff0The initial frequency correction coefficient;
the correcting unit is used for correcting the frequency parameter of the filtering according to the Coeff;
the filtering unit is further configured to filter the input signal of the loudspeaker with the modified frequency parameter.
35. An apparatus for controlling displacement of a loudspeaker diaphragm, the apparatus comprising: a processor and a transmission interface;
the transmission interface is used for receiving and transmitting data;
the processor is configured to invoke program instructions stored in the memory to cause the apparatus to perform a method of controlling loudspeaker diaphragm displacement according to any one of claims 1 to 17.
36. An electronic device comprising an apparatus for controlling the displacement of a loudspeaker diaphragm according to claim 35.
37. A computer-readable storage medium having stored therein program instructions which, when run on a computer or processor, cause the computer or processor to carry out the method of controlling loudspeaker diaphragm displacement according to any one of claims 1 to 17.
38. A computer program product comprising program instructions which, when run on a computer or processor, cause the computer or processor to carry out the method of controlling loudspeaker diaphragm displacement according to any one of claims 1 to 17.
39. A chip system, comprising: a processor, a memory;
the memory is configured to store computer readable instructions or a computer program, and the processor is configured to read the computer readable instructions to implement the method for controlling the displacement of a loudspeaker diaphragm according to any one of claims 1 to 17.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011111996.5A CN114390406B (en) | 2020-10-16 | 2020-10-16 | Method and device for controlling displacement of loudspeaker diaphragm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011111996.5A CN114390406B (en) | 2020-10-16 | 2020-10-16 | Method and device for controlling displacement of loudspeaker diaphragm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114390406A true CN114390406A (en) | 2022-04-22 |
CN114390406B CN114390406B (en) | 2023-04-07 |
Family
ID=81194403
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011111996.5A Active CN114390406B (en) | 2020-10-16 | 2020-10-16 | Method and device for controlling displacement of loudspeaker diaphragm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114390406B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024087050A1 (en) * | 2022-10-26 | 2024-05-02 | Qualcomm Incorporated | Machine-learning-based diaphragm excursion prediction for speaker protection |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050207584A1 (en) * | 2004-03-19 | 2005-09-22 | Andrew Bright | System for limiting loudspeaker displacement |
CN104640051A (en) * | 2013-11-06 | 2015-05-20 | 亚德诺半导体股份有限公司 | Method of estimating diaphragm excursion of a loudspeaker |
CN105103568A (en) * | 2012-09-24 | 2015-11-25 | Actiwave公司 | Control and protection of loudspeakers |
CN106454679A (en) * | 2016-11-17 | 2017-02-22 | 矽力杰半导体技术(杭州)有限公司 | Loudspeaker diaphragm state estimation method, and loudspeaker drive circuit using the same |
US20180192192A1 (en) * | 2017-01-04 | 2018-07-05 | Samsung Electronics Co., Ltd. | Displacement limiter for loudspeaker mechanical protection |
CN208850060U (en) * | 2018-11-16 | 2019-05-10 | 泉州昆泰芯微电子科技有限公司 | A kind of speaker drive protection system |
US10542361B1 (en) * | 2018-08-07 | 2020-01-21 | Samsung Electronics Co., Ltd. | Nonlinear control of loudspeaker systems with current source amplifier |
CN111448804A (en) * | 2018-01-17 | 2020-07-24 | 三星电子株式会社 | Method and system for non-linear control of motion of speaker driver |
CN111741407A (en) * | 2020-06-12 | 2020-10-02 | 瑞声科技(新加坡)有限公司 | Loudspeaker compensation method, device, storage medium and equipment |
-
2020
- 2020-10-16 CN CN202011111996.5A patent/CN114390406B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050207584A1 (en) * | 2004-03-19 | 2005-09-22 | Andrew Bright | System for limiting loudspeaker displacement |
CN105103568A (en) * | 2012-09-24 | 2015-11-25 | Actiwave公司 | Control and protection of loudspeakers |
CN104640051A (en) * | 2013-11-06 | 2015-05-20 | 亚德诺半导体股份有限公司 | Method of estimating diaphragm excursion of a loudspeaker |
CN106454679A (en) * | 2016-11-17 | 2017-02-22 | 矽力杰半导体技术(杭州)有限公司 | Loudspeaker diaphragm state estimation method, and loudspeaker drive circuit using the same |
US20180192192A1 (en) * | 2017-01-04 | 2018-07-05 | Samsung Electronics Co., Ltd. | Displacement limiter for loudspeaker mechanical protection |
CN110100455A (en) * | 2017-01-04 | 2019-08-06 | 三星电子株式会社 | Displacement limiter for loudspeaker mechanical protection |
CN111448804A (en) * | 2018-01-17 | 2020-07-24 | 三星电子株式会社 | Method and system for non-linear control of motion of speaker driver |
US10542361B1 (en) * | 2018-08-07 | 2020-01-21 | Samsung Electronics Co., Ltd. | Nonlinear control of loudspeaker systems with current source amplifier |
CN208850060U (en) * | 2018-11-16 | 2019-05-10 | 泉州昆泰芯微电子科技有限公司 | A kind of speaker drive protection system |
CN111741407A (en) * | 2020-06-12 | 2020-10-02 | 瑞声科技(新加坡)有限公司 | Loudspeaker compensation method, device, storage medium and equipment |
Non-Patent Citations (1)
Title |
---|
韦峻峰等: "一种改进的扬声器Volterra模型研究", 《振动与冲击》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024087050A1 (en) * | 2022-10-26 | 2024-05-02 | Qualcomm Incorporated | Machine-learning-based diaphragm excursion prediction for speaker protection |
Also Published As
Publication number | Publication date |
---|---|
CN114390406B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112533115B (en) | Method and device for improving tone quality of loudspeaker | |
CN114422340A (en) | Log reporting method, electronic device and storage medium | |
CN113496708A (en) | Sound pickup method and device and electronic equipment | |
CN110968247B (en) | Electronic equipment control method and electronic equipment | |
CN113225661A (en) | Loudspeaker identification method and device and electronic equipment | |
CN113467735A (en) | Image adjusting method, electronic device and storage medium | |
CN113132532B (en) | Ambient light intensity calibration method and device and electronic equipment | |
CN112527220B (en) | Electronic equipment display method and electronic equipment | |
CN114390406B (en) | Method and device for controlling displacement of loudspeaker diaphragm | |
CN110806994B (en) | Signal transmission method and device | |
CN113129916B (en) | Audio acquisition method, system and related device | |
US20240135946A1 (en) | Method and apparatus for improving sound quality of speaker | |
CN109285563B (en) | Voice data processing method and device in online translation process | |
CN114661258A (en) | Adaptive display method, electronic device, and storage medium | |
CN115412678B (en) | Exposure processing method and device and electronic equipment | |
CN114120950B (en) | Human voice shielding method and electronic equipment | |
CN113674258B (en) | Image processing method and related equipment | |
CN115706755A (en) | Echo cancellation method, electronic device, and storage medium | |
KR20230039715A (en) | Echo canceling method by filtering means, electronic device and computer readable storage medium | |
CN115393676A (en) | Gesture control optimization method and device, terminal and storage medium | |
CN113467747A (en) | Volume adjustment method, electronic device, storage medium, and computer program product | |
CN116320123B (en) | Voice signal output method and electronic equipment | |
CN113364067B (en) | Charging precision calibration method and electronic equipment | |
CN115712368A (en) | Volume display method, electronic device and storage medium | |
CN113325992A (en) | Sliding operation processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |