Loudspeaker amplitude model updating method and device, loudspeaker control method, electronic equipment and storage medium

By using the voltage and current data of the speaker voice coil to determine the actual impedance model parameters and update the amplitude model, the problem that the speaker diaphragm amplitude exceeds the safe range under low air pressure is solved, and the stable operation of the speaker at different air pressures is achieved and the sound quality improvement of the speaker is achieved.

CN119865741APending Publication Date: 2025-04-22WUHAN JUXIN MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311368934.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

When the prior art uses static amplitude protection algorithm at low air pressure, the amplitude of the speaker diaphragm is prone to exceed the safety range, resulting in damage to sound quality and shortening of equipment life.

Method used

By obtaining the voltage data and current data of the speaker's voice coil, determine the actual impedance model parameters of the speaker, and update the speaker amplitude model based on the actual impedance model parameters and the original model parameters, adjusting the amplitude in real time to avoid hypervibration.

Benefits of technology

It can effectively predict and adjust the speaker amplitude under different air pressures, avoid the risk of ultravibration, extend the operating life of the speaker and improve the sound quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865741A_ABST
    Figure CN119865741A_ABST
Patent Text Reader

Abstract

The invention provides a loudspeaker amplitude model updating method and device, a loudspeaker control method, electronic equipment and a storage medium. The loudspeaker amplitude model updating method comprises the steps that voltage data and current data of a loudspeaker voice coil are acquired; determining actual impedance model parameters of the loudspeaker according to the voltage data and the current data; updating the amplitude model of the loudspeaker according to the actual impedance model parameters and the original model parameters of the loudspeaker; wherein the voltage data and the current data comprise N loudspeaker voice coil voltages and currents corresponding to different frequencies, and N is an integer greater than or equal to 3. According to the method, the amplitude model of the loudspeaker can be updated by using the working voltage and the working current of the loudspeaker, so that the phenomenon that the over-amplitude risk of the loudspeaker is easily caused by updating the amplitude model through inaccurate air pressure data can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio technology, and in particular to a speaker amplitude model updating method, device, speaker control method, electronic device and storage medium. Background Art

[0002] At present, the vibration amplitude of the speaker diaphragm is usually predicted by an amplitude model to avoid the phenomenon that the diaphragm vibration amplitude is too large to damage the sound quality and affect the service life of the speaker. Among them, the low-pressure amplitude frequency response of the speaker with a back cavity and a leakage hole is very different from the amplitude frequency response of the atmospheric pressure, that is, under different air pressures, the mathematical form of the speaker amplitude model remains unchanged but the model parameters are quite different. Most of the lower and middle speakers of smartphones on the market are speakers with back cavities and leakage holes. If the static amplitude protection algorithm is still used for such speakers under low pressure, there will be a greater risk of over-amplitude.

[0003] In order to solve the low-pressure over-amplitude problem of the static amplitude protection algorithm, it is necessary to effectively predict the speaker amplitude at different air pressures, that is, it is necessary to be able to update the speaker model parameters in real time at different air pressures. To this end, the existing solution proposes: according to the amplitude model predicted in advance under different ambient air pressures, the air pressure parameters are obtained through the network to update the amplitude model. However, this solution requires the use of an external detector to obtain air pressure data, and the ambient air pressure in the weather detection may not be the same as the ambient air pressure of the speaker, which can easily lead to a decrease in the accuracy of the speaker amplitude prediction, and there is still a risk of speaker over-amplitude. Summary of the invention

[0004] The present application provides a speaker amplitude model updating method, device, speaker control method, electronic device and storage medium, aiming to solve the current technical problem that updating the amplitude model through air pressure data easily leads to the risk of speaker over-amplitude.

[0005] In a first aspect, the present application provides a method for updating a loudspeaker amplitude model, comprising:

[0006] Obtaining the voltage data and current data of the speaker voice coil;

[0007] Determine actual impedance model parameters of the speaker based on the voltage data and the current data;

[0008] updating the loudspeaker amplitude model according to the actual impedance model parameters and the original model parameters of the loudspeaker;

[0009] The voltage data and the current data include the speaker voice coil voltages and currents corresponding to N different frequencies, where N is an integer greater than or equal to 3.

[0010] In some embodiments, the step of updating the loudspeaker amplitude model according to the actual impedance model parameters and the original model parameters of the loudspeaker includes:

[0011] Determine the gain coefficient according to the actual impedance model parameters and the original model parameters of the loudspeaker;

[0012] The loudspeaker amplitude model is updated according to the gain coefficient and at least one of the actual impedance model parameters.

[0013] In some embodiments, the original model parameters include original electrical quality factors, and the actual impedance model parameters include actual electrical quality factors;

[0014] The ratio of the original electrical quality factor to the actual electrical quality factor is in a preset relationship with the gain coefficient.

[0015] In some embodiments, the actual impedance model parameters further include an actual DC resistance, an actual resonant frequency, an actual quality factor, and an actual mechanical quality factor of the loudspeaker voice coil;

[0016] According to the actual impedance model parameters and the original model parameters of the loudspeaker, the steps of determining the gain coefficient include:

[0017] Obtaining original model parameters of the loudspeaker, the original model parameters including original DC resistance, original resonance frequency, original quality factor, and original mechanical quality factor of the loudspeaker voice coil;

[0018] A gain factor is determined based on the original DC resistance, the original resonant frequency, the original quality factor, the original mechanical quality factor, the actual DC resistance, the actual resonant frequency, the actual quality factor, and the actual mechanical quality factor.

[0019] In some embodiments, the original DC resistance, the original resonant frequency, the original quality factor, the original mechanical quality factor, the actual DC resistance, the actual resonant frequency, the actual quality factor, the actual mechanical quality factor and the gain coefficient satisfy the following formula:

[0020]

[0021] Among them, Re1 is the original DC resistance, f 01 is the original resonant frequency, Q ms1 is the original mechanical quality factor, Q ts1 is the original quality factor, Re2 is the actual DC resistance, f 02 is the actual resonant frequency, Q ms2 is the actual mechanical quality factor, Q ts2 is the actual quality factor and ζ is the gain coefficient.

[0022] In some embodiments, the actual impedance model parameters also include an actual resonant frequency, an actual quality factor, and an actual mechanical quality factor of the loudspeaker voice coil;

[0023] According to the actual impedance model parameters and the original model parameters of the loudspeaker, the steps of determining the gain coefficient include:

[0024] Obtaining original model parameters of the loudspeaker, the original model parameters including an original resonance frequency, an original quality factor, and an original mechanical quality factor of the loudspeaker voice coil;

[0025] A gain factor is determined based on the original resonant frequency, the original quality factor, the original mechanical quality factor, the actual resonant frequency, the actual quality factor, and the actual mechanical quality factor.

[0026] In some embodiments, the original DC resistance, the original resonant frequency, the original quality factor, the original mechanical quality factor, the actual DC resistance, the actual resonant frequency, the actual quality factor, the actual mechanical quality factor and the gain coefficient satisfy the following formula:

[0027]

[0028] Among them, f 01 is the original resonant frequency, Q ms1 is the original mechanical quality factor, Q ts1 is the original quality factor, f 02 is the actual resonant frequency, Q ms2 is the actual mechanical quality factor, Q ts2 is the actual quality factor and ζ is the gain coefficient.

[0029] In some embodiments, the step of updating the loudspeaker amplitude model according to the gain coefficient and the actual impedance model parameters includes:

[0030] The loudspeaker amplitude model is updated based on the gain coefficient, the actual resonant frequency, and the actual quality factor.

[0031] In some embodiments, the step of determining actual impedance model parameters of the speaker according to the voltage data and the current data includes:

[0032] Determine the actual DC resistance of the speaker voice coil according to the speaker voice coil voltage and current corresponding to at least one frequency;

[0033] According to the loudspeaker voice coil voltages and currents corresponding to N different frequencies, the actual resonance angular frequency, the actual quality factor and the actual mechanical quality factor of the loudspeaker voice coil are determined.

[0034] In some embodiments, the step of determining the actual resonance angular frequency, the actual quality factor, and the actual mechanical quality factor of the speaker voice coil according to the speaker voice coil voltages and currents corresponding to N different frequencies includes:

[0035] Calculate the impedance corresponding to each frequency based on the speaker voice coil voltage and current corresponding to N different frequencies;

[0036] According to the impedance corresponding to each frequency, N different frequencies and the impedance model, an impedance function corresponding to each frequency is constructed;

[0037] According to the impedance function corresponding to each frequency, the actual resonance angular frequency, the actual quality factor and the actual mechanical quality factor of the loudspeaker voice coil are determined.

[0038] In some embodiments, the frequency, impedance, actual resonant angular frequency, actual quality factor, and actual mechanical quality factor satisfy the following formula:

[0039]

[0040] w=2πf

[0041] Where f is the frequency, w0 is the actual resonant angular frequency, Q ts is the actual quality factor, Q ms is the actual mechanical quality factor.

[0042] In some embodiments, the impedance model parameters include an actual DC resistance, an actual resonant frequency, an actual quality factor, and an actual mechanical quality factor of the loudspeaker voice coil;

[0043] The steps of updating the loudspeaker amplitude model according to the actual impedance model parameters and the original model parameters of the loudspeaker include:

[0044] Obtaining original model parameters of the loudspeaker, the original model parameters including original DC resistance, original resonance frequency, and original electrical quality factor of the loudspeaker voice coil;

[0045] Determine a gain coefficient according to the original DC resistance, the original resonant frequency, the original electrical quality factor, the actual DC resistance, the actual resonant frequency, and the actual electrical quality factor;

[0046] The loudspeaker amplitude model is updated based on the gain factor and the actual resonant frequency.

[0047] In some embodiments, the impedance model parameters include an actual DC resistance, an actual resonant frequency, an actual quality factor, and an actual mechanical quality factor of the loudspeaker voice coil;

[0048] The steps of updating the loudspeaker amplitude model according to the actual impedance model parameters and the original model parameters of the loudspeaker include:

[0049] Obtaining original model parameters of the loudspeaker, the original model parameters including original DC resistance, original resonance frequency, and original electrical quality factor of the loudspeaker voice coil;

[0050] Determine a gain coefficient according to the original DC resistance, the original resonant frequency, the original electrical quality factor, the actual DC resistance, the actual resonant frequency, and the actual electrical quality factor;

[0051] The loudspeaker amplitude model is updated based on the gain coefficient and the actual quality factor.

[0052] In a second aspect, the present application provides a device for updating a loudspeaker amplitude model, comprising:

[0053] An acquisition module, which is used to acquire voltage data and current data of the speaker voice coil;

[0054] A parameter determination module, the parameter determination module is used to determine the actual impedance model parameters of the speaker according to the voltage data and the current data;

[0055] A model updating module, the model updating module is used to update the loudspeaker amplitude model according to the actual impedance model parameters and the original model parameters of the loudspeaker;

[0056] The voltage data and the current data include the speaker voice coil voltages and currents corresponding to N different frequencies, where N is an integer greater than or equal to 3.

[0057] In a third aspect, the present application provides a speaker control method, comprising:

[0058] Get audio input signal;

[0059] Predicting the audio input signal using the model updated by the speaker amplitude model updating method according to the first aspect to determine the predicted amplitude of the speaker;

[0060] The audio input signal is adjusted according to the predicted amplitude to control the amplitude of the speaker.

[0061] In a fourth aspect, the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the speaker amplitude model updating method as described in the first aspect.

[0062] In a fifth aspect, the present application provides a storage medium, characterized in that the storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute the steps in the speaker amplitude model updating method as described in the first aspect.

[0063] The present application determines the actual impedance model parameters of the speaker through the voltage data and current data of the speaker voice coil, and then uses the actual impedance model parameters of the speaker and the original model parameters to update the speaker amplitude model. Not only can the amplitude model be updated in real time and the speaker amplitude be predicted, so that the speaker diaphragm amplitude is within a limited range, but there is also no need to detect the air pressure data in the external environment. The speaker amplitude model can be updated by using the speaker's own working voltage and working current, which can avoid the risk of speaker over-amplitude caused by updating the amplitude model with inaccurate air pressure data. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0065] Figure 1 It is a flow chart of a method for updating a loudspeaker amplitude model provided in an embodiment of the present application;

[0066] Figure 2 It is a schematic diagram of a flow chart of updating a loudspeaker amplitude model provided in an embodiment of the present application;

[0067] Figure 3 It is a schematic diagram of a process for determining actual impedance model parameters provided in an embodiment of the present application;

[0068] Figure 4 It is a schematic diagram of a process for determining the actual resonance angular frequency, the actual quality factor and the actual mechanical quality factor provided in the embodiments of the present application;

[0069] Figure 5 is a flow chart of a speaker control method provided in an embodiment of the present application;

[0070] Figure 6 It is a module schematic diagram of the loudspeaker amplitude model device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0071] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0072] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0073] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.

[0074] The embodiments of the present application provide a speaker amplitude model updating method, device, speaker control method, electronic device, and storage medium, which are described in detail below.

[0075] First, see Figure 1 , Figure 1 A schematic flow chart of a method for updating a loudspeaker amplitude model in an embodiment of the present application is shown, wherein the method for updating a loudspeaker amplitude model includes:

[0076] Step S101, obtaining voltage data and current data of the speaker voice coil;

[0077] Specifically, the voltage data and the current data include the speaker voice coil voltages and currents corresponding to N different frequencies, where N is an integer greater than or equal to 3. Preferably, the voltage data and the current data include the speaker voice coil voltages and currents corresponding to 3 different frequencies. It can be understood that the voltage data and the current data can also be selected from more frequency points.

[0078] It should be noted that the voltage data and the current data are obtained by monitoring the voltage and the current at both ends of the speaker voice coil. For example, the voltage at both ends of the speaker voice coil is collected by a voltage collector, and the current at both ends of the speaker voice coil is collected by a current collector. Alternatively, the voltage data and the current data can also be obtained through analog signals, by intercepting the voltage values ​​and the current values ​​corresponding to multiple frequencies of the analog signal, and converting the voltage values ​​and the current values ​​into digital signals, so as to calculate the actual impedance model parameters of the speaker.

[0079] Step S102, determining actual impedance model parameters of the speaker according to the voltage data and the current data;

[0080] The impedance model of the speaker can be constructed by the speaker characteristic curve. For example, the impedance model of the speaker can be expressed by the following function:

[0081]

[0082] Where Hz is the impedance amplitude, Re is the DC resistance of the speaker, w0 is the resonant angular frequency of the speaker, Q ts is the quality factor of the speaker, Q ms is the mechanical quality factor of the loudspeaker, and Le is the inductance of the loudspeaker voice coil.

[0083] It should be noted that, since the impedance amplitude of the speaker at the corresponding frequency can be directly calculated through the voltage data and the current data, if the solution of the above function is known, the parameters of the function can be reversely deduced through the above function to solve the actual impedance model parameters of the speaker, such as the actual resonance angular frequency w0 of the speaker in the above function, the actual mechanical quality factor Q of the speaker ms , the actual quality factor Q of the loudspeaker ts Etc. For example, the actual impedance model parameters of the loudspeaker can be obtained by least square method or solving multiple sets of equations.

[0084] Step S103: updating the loudspeaker amplitude model according to the actual impedance model parameters and the original model parameters of the loudspeaker.

[0085] Specifically, the original model of the speaker may refer to the original amplitude model of the speaker or the original impedance model of the speaker. That is, the original model parameters may be original impedance model parameters or original amplitude model parameters. For example, the amplitude model of the speaker may be expressed by the following function:

[0086]

[0087] Among them, Hx is the amplitude of the speaker, Bl is the electromechanical coupling factor of the speaker, Mms is the effective vibration mass of the speaker unit, and g is a constant obtained in the process of modeling the speaker amplitude model.

[0088] After obtaining the actual impedance model parameters, the loudspeaker amplitude model can be updated according to the actual impedance model parameters and the original model parameters of the loudspeaker. In some embodiments of the present application, the above-mentioned actual impedance model parameters and the original model parameters can be coefficient-converted to obtain the gain coefficient of the loudspeaker amplitude model, thereby obtaining an updated loudspeaker amplitude model. For example, the updated loudspeaker amplitude model can be expressed by the following function:

[0089]

[0090] Where Hx′(s) is the updated loudspeaker amplitude model, ζ is the gain coefficient of the loudspeaker amplitude model, and w 01 is the original resonance angular frequency of the loudspeaker, Q ts1 is the original quality factor of the loudspeaker and g is a constant.

[0091] In the above function, the gain coefficient ζ includes the resonant angular frequency of the speaker, the change ratio of the mechanical quality factor of the speaker, the change ratio of the electromechanical coupling factor of the speaker and the effective vibration mass, etc., so the speaker amplitude model with accurate amplitude prediction can be updated.

[0092] In some other embodiments of the present application, coefficient conversion may be performed on only part of the actual impedance model parameters and part of the original model parameters, and the impedance model may be updated by combining the converted coefficients and the remaining actual impedance model parameters. For example, the updated loudspeaker amplitude model may be expressed by the following function:

[0093]

[0094] Among them, w 02 is the actual resonant angular frequency of the loudspeaker.

[0095] In the above embodiment, the gain coefficient ζ includes the change ratio of the mechanical quality factor of the speaker, the change ratio of the electromechanical coupling factor of the speaker and the effective vibration mass, etc., so that the speaker amplitude model with accurate amplitude prediction can be updated.

[0096] In an embodiment of the present application, the present application determines the actual impedance model parameters of the speaker through the voltage data and current data of the speaker voice coil, and then uses the actual impedance model parameters of the speaker and the original model parameters to update the speaker amplitude model. Not only can the amplitude model be updated in real time and the speaker amplitude be predicted, so that the speaker diaphragm amplitude is within a limited range, but there is also no need to detect the air pressure data in the external environment. The speaker amplitude model can be updated by using the speaker's own working voltage and working current, which can avoid the risk of speaker over-amplitude caused by updating the amplitude model through inaccurate air pressure data.

[0097] In some embodiments of the present application, see Figure 2 , Figure 2 A schematic diagram of a process for updating a loudspeaker amplitude model in an embodiment of the present application is shown, wherein the step of updating the loudspeaker amplitude model includes:

[0098] Step S201, determining a gain coefficient according to actual impedance model parameters and original model parameters of the loudspeaker;

[0099] In some embodiments of the present application, the original model parameters include an original electrical quality factor, and the actual impedance model parameters include an actual electrical quality factor, wherein a ratio of the original electrical quality factor to the actual electrical quality factor is in a preset relationship with a gain coefficient.

[0100] It should be noted that since the ratio of the original electrical quality factor of the original model parameters to the actual electrical quality factor of the actual impedance model parameters is in a preset relationship with the gain coefficient ζ, that is, the gain coefficient ζ covers the original electrical quality factor Q es1 The actual electrical quality factor Q es2 The ratio of the mechanoelectric coupling factor of the loudspeaker to the effective vibration mass is related to the electrical quality factor. Therefore, the gain coefficient ζ covers the change ratio of Bl / Mms, that is, the change ratio of the mechanoelectric coupling factor of the loudspeaker to the effective vibration mass. Therefore, the constant g obtained in the process of establishing the loudspeaker amplitude model can be corrected by ζ in the above gain coefficient, so as to more comprehensively update the parameters in the loudspeaker amplitude model, and then obtain a loudspeaker amplitude model with more accurate amplitude prediction.

[0101] Specifically, the original model parameters of the loudspeaker can be obtained according to the corresponding function of the original impedance model / original amplitude model; or, the original model parameters of the loudspeaker can also be obtained through parameter data stored in a storage medium. In some embodiments of the present application, the actual impedance model parameters include the actual DC resistance, actual resonant frequency, actual quality factor, and actual mechanical quality factor of the loudspeaker voice coil, and the original model parameters of the loudspeaker include the original DC resistance, original resonant frequency, original quality factor, and original mechanical quality factor of the loudspeaker voice coil. After obtaining the original model parameters of the loudspeaker, the gain coefficient can be determined according to the original DC resistance, original resonant frequency, original quality factor, original mechanical quality factor, actual DC resistance, actual resonant frequency, actual quality factor, and actual mechanical quality factor.

[0102] For example, the original DC resistance, the original resonant frequency, the original quality factor, the original mechanical quality factor, the actual DC resistance, the actual resonant frequency, the actual quality factor, the actual mechanical quality factor and the gain coefficient satisfy the following formula:

[0103]

[0104] Among them, Re1 is the original DC resistance, f 01 is the original resonant frequency, Q ms1 is the original mechanical quality factor, Q ts1 is the original quality factor, Re2 is the actual DC resistance, f 02 is the actual resonant frequency, Q ms2 is the actual mechanical quality factor, Q ts2 is the actual quality factor and ζ is the gain coefficient.

[0105] At the same time, the resonant frequency and the resonant angular frequency can be converted by the following formula:

[0106] w=2πf

[0107] Among them, w is the resonance angular frequency and f is the resonance frequency.

[0108] In addition, the original electrical quality factor Q of the speaker es1 Satisfies the following formula:

[0109]

[0110] The actual electrical quality factor Q of the speaker es2 Satisfies the following formula:

[0111]

[0112] Therefore, the above gain coefficient formula can be converted into the following formula:

[0113]

[0114] In the above formula, the ratio of the original electrical quality factor of the original model parameters to the actual electrical quality factor of the actual impedance model parameters is in a preset relationship with the gain coefficient ζ, that is, the gain coefficient ζ includes the original electrical quality factor Q es1 The actual electrical quality factor Q es2 Therefore, the constant g obtained in the process of establishing the loudspeaker amplitude model can be corrected by the gain coefficient ζ, so as to more comprehensively update the parameters in the loudspeaker amplitude model, and then obtain a loudspeaker amplitude model with more accurate amplitude prediction.

[0115] In some other embodiments of the present application, the actual impedance model parameters include the actual resonant frequency, the actual quality factor and the actual mechanical quality factor of the speaker voice coil, and the original model parameters include the original resonant frequency, the original quality factor and the original mechanical quality factor of the speaker voice coil. After obtaining the original model parameters of the speaker, the gain coefficient can be determined based on the original resonant frequency, the original quality factor, the original mechanical quality factor, the actual resonant frequency, the actual quality factor and the actual mechanical quality factor.

[0116] For example, the original DC resistance, the original resonant frequency, the original quality factor, the original mechanical quality factor, the actual DC resistance, the actual resonant frequency, the actual quality factor, the actual mechanical quality factor and the gain coefficient satisfy the following formula:

[0117]

[0118] Among them, f 01 is the original resonant frequency, Q ms1 is the original mechanical quality factor, Q ts1 is the original quality factor, f 02 is the actual resonant frequency, Q ms2 is the actual mechanical quality factor, Q ts2 is the actual quality factor and ζ is the gain coefficient.

[0119] The original electrical quality factor Q of the above speaker es1 , the actual electrical quality factor Q of the speaker es2 Substitute the calculation formula into the above formula:

[0120]

[0121] Similarly, in the above formula, the ratio of the original electrical quality factor of the original model parameter to the actual electrical quality factor of the actual impedance model parameter is in a preset relationship with the gain coefficient ζ, that is, the gain coefficient ζ includes the original electrical quality factor Q es1 The actual electrical quality factor Q es2Therefore, the constant g obtained in the process of establishing the loudspeaker amplitude model can be corrected by the gain coefficient ζ, so as to more comprehensively update the parameters in the loudspeaker amplitude model, and then obtain a loudspeaker amplitude model with more accurate amplitude prediction.

[0122] Step S202: updating the loudspeaker amplitude model according to the gain coefficient and at least one of the actual impedance model parameters.

[0123] In some embodiments of the present application, the speaker amplitude model can be updated according to at least one of the actual resonant frequency and the actual quality factor and the gain coefficient. That is, the speaker amplitude model can be updated according to the gain coefficient and the actual resonant frequency, or according to the gain coefficient and the actual quality factor, or according to the gain coefficient, the actual resonant frequency and the actual quality factor.

[0124] Exemplarily, the updated loudspeaker amplitude model may be expressed by the following function:

[0125]

[0126] Among them, w 02 is the actual resonance angular frequency of the loudspeaker, and ζ is the gain coefficient calculated by the above formula.

[0127] In some embodiments of the present application, see Figure 3 , Figure 3 A schematic diagram of a flow chart for determining actual impedance model parameters in an embodiment of the present application is shown, wherein the steps of determining the actual impedance model parameters of the speaker according to voltage data and current data include:

[0128] Step S301, determining the actual DC resistance of the speaker voice coil according to the speaker voice coil voltage and current corresponding to at least one frequency;

[0129] It should be noted that the actual DC resistance of the speaker voice coil can be calculated based on the speaker voice coil voltage and current corresponding to the minimum frequency among N different frequencies. Since the speaker voice coil voltage and current corresponding to the minimum frequency can be considered as DC voltage and DC current, the actual DC resistance of the impedance model can be calculated by the speaker voice coil voltage and current of the minimum frequency. In some embodiments of the present application, for example, the embodiment of determining the actual DC resistance of the speaker voice coil based on the speaker voice coil voltage and current corresponding to multiple frequencies, the calculated impedance value may be multiple values, so the impedance values ​​of multiple groups of data can also be processed to obtain the actual DC resistance. Exemplarily, the data processing can be probability statistics or filtering of the voltage and current data, and then the actual DC resistance is calculated.

[0130] Step S302 : determining the actual resonance angular frequency, the actual quality factor and the actual mechanical quality factor of the speaker voice coil according to the speaker voice coil voltages and currents corresponding to N different frequencies.

[0131] It should be noted that, since the impedance amplitude of the speaker at the corresponding frequency can be directly calculated through the voltage data and the current data, in the case of the solution of the impedance model function, the parameter value of the function can be reversely deduced through the impedance model function, so as to solve the actual resonance angular frequency, actual quality factor and actual mechanical quality factor of the speaker. Exemplarily, the actual impedance model parameters of the speaker can be obtained by solving the least square method or multiple sets of equations.

[0132] More specifically, see Figure 4 , Figure 4 A schematic diagram of a flow chart for determining an actual resonance angular frequency, an actual quality factor, and an actual mechanical quality factor in an embodiment of the present application is shown, wherein the steps of determining an actual resonance angular frequency, an actual quality factor, and an actual mechanical quality factor of a loudspeaker voice coil according to loudspeaker voice coil voltages and currents corresponding to N different frequencies include:

[0133] Step S401, calculating the impedance corresponding to each frequency according to the speaker voice coil voltage and current corresponding to N different frequencies;

[0134] Step S402, constructing an impedance function corresponding to each frequency according to the impedance corresponding to each frequency, N different frequencies and an impedance model;

[0135] Step S403: determining the actual resonance angular frequency, the actual quality factor and the actual mechanical quality factor of the loudspeaker voice coil according to the impedance function corresponding to each frequency.

[0136] Specifically, the impedance can be calculated using the following formula:

[0137] Z(f)=V(f) / I(f)

[0138] Wherein, Z(f) is the impedance corresponding to the frequency point, V(f) is the voltage amplitude of the loudspeaker voice coil corresponding to the frequency point, and I(f) is the current amplitude of the loudspeaker voice coil corresponding to the frequency point.

[0139] Therefore, using the above formula, the impedance corresponding to each frequency of the speaker can be calculated based on the speaker voice coil voltage and current corresponding to N different frequencies. Therefore, when the N solutions corresponding to different frequencies of the impedance model function are obtained, the frequency and impedance are substituted into the impedance model function to obtain multiple impedance functions, and by jointly solving the multiple impedance functions, the actual resonant angular frequency, actual quality factor and actual mechanical quality factor of the speaker voice coil can be obtained.

[0140] In some embodiments of the present application, the frequency, impedance, actual resonant angular frequency, actual quality factor, and actual mechanical quality factor satisfy the following formula:

[0141]

[0142] w=2πf

[0143] Where f is the frequency, w0 is the actual resonant angular frequency, Q ts is the actual quality factor, Q ms is the actual mechanical quality factor.

[0144] That is to say, in the above formula, there are three unknown parameters, namely the actual resonance angular frequency w0, the actual quality factor Q ts , the actual mechanical quality factor Q ms , since N is an integer greater than or equal to 3, at least three of the above formulas can be constructed through three sets of frequency and impedance values, and finally the actual resonant angular frequency, the actual quality factor and the actual mechanical quality factor can be obtained by solving them jointly.

[0145] In some embodiments of the present application, when N is 3, that is, three unknown parameters can be uniquely solved by three equations. In some other embodiments of the present application, when N is greater than 3, multiple sets of three-variable equations can be constructed and multiple solutions can be used to find the optimal solution; or, multiple three-variable equations can be constructed and the least squares solution can be finally found.

[0146] In some embodiments of the present application, for example, for an embodiment in which the gain coefficient is determined based on the original DC resistance, the original resonant frequency, the original electrical quality factor, the actual DC resistance, the actual resonant frequency, and the actual electrical quality factor, the loudspeaker amplitude model may also be updated based on the gain coefficient and the actual resonant frequency. That is, only the gain coefficient and the actual resonant frequency in the loudspeaker amplitude model are updated, and the updated loudspeaker amplitude model may be expressed using the following function:

[0147]

[0148] Among them, w 02 is the actual resonant frequency of the speaker, Q ts1 is the original quality factor of the loudspeaker.

[0149] In some embodiments of the present application, for example, for an embodiment in which the gain coefficient is determined by the original DC resistance, the original resonant frequency, the original electrical quality factor, the actual DC resistance, the actual resonant frequency, and the actual electrical quality factor, the loudspeaker amplitude model may be updated only according to the gain coefficient and the actual quality factor. That is, only the gain coefficient and the actual quality factor in the loudspeaker amplitude model are updated, and the updated loudspeaker amplitude model may be expressed by the following function:

[0150]

[0151] Among them, w 02 is the actual resonant frequency of the speaker, Q ts1 is the original quality factor of the loudspeaker.

[0152] Furthermore, in order to better implement the speaker amplitude model updating method in the embodiment of the present application, based on the speaker amplitude model updating method, the present application also provides a speaker control method, see Figure 5 , Figure 5 A schematic flow chart of a speaker control method in an embodiment of the present application is shown, wherein the speaker control method includes:

[0153] Step S501, obtaining an audio input signal;

[0154] Step S502, predicting the audio input signal using the model updated by the speaker amplitude model updating method described in any of the above embodiments to determine the predicted amplitude of the speaker;

[0155] Step S503: adjusting the audio input signal according to the predicted amplitude to control the amplitude of the speaker.

[0156] The speaker control method provided in the embodiment of the present application can predict the speaker amplitude in real time and adjust the audio input signal by using the model updated by the speaker amplitude model updating method to predict the audio input signal, thereby avoiding the risk of excessive amplitude of the speaker caused by using a fixed speaker amplitude model. At the same time, since the actual impedance model parameters of the speaker are determined by the voltage data and current data of the speaker voice coil, and then the speaker amplitude model is updated by using the actual impedance model parameters of the speaker and the original model parameters, there is no need to detect the air pressure data in the external environment, and the speaker amplitude model can be updated by using the speaker's own working voltage and working current, thereby avoiding the phenomenon that the speaker excessive amplitude risk is easily caused by updating the amplitude model by inaccurate air pressure data.

[0157] Furthermore, in order to better implement the loudspeaker amplitude model updating method in the embodiment of the present application, on the basis of the loudspeaker amplitude model updating method, the present application also provides a loudspeaker amplitude model updating device, see Figure 6 , Figure 6 A schematic diagram of a module of a loudspeaker amplitude model updating device in an embodiment of the present application is shown, wherein the loudspeaker amplitude model updating device 600 includes:

[0158] An acquisition module 601 is used to acquire voltage data and current data of a loudspeaker voice coil;

[0159] A parameter determination module 602, the parameter determination module 602 is used to determine the actual impedance model parameters of the speaker according to the voltage data and the current data;

[0160] The model updating module 603 is used to update the loudspeaker amplitude model according to the actual impedance model parameters and the original model parameters of the loudspeaker;

[0161] The voltage data and the current data include the speaker voice coil voltages and currents corresponding to N different frequencies, where N is an integer greater than or equal to 3.

[0162] It should be understood that Figure 6 The device and its modules shown can be implemented in various ways. For example, in some embodiments, the device and its modules can be implemented by hardware, software or a combination of software and hardware. Among them, the hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or a dedicated design hardware. Those skilled in the art will understand that the above-mentioned method and system can be implemented using computer executable instructions and / or included in a processor control code, for example, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The system and its modules of the present application can not only be implemented by hardware circuits such as ultra-large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., but can also be implemented by software such as executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software (for example, firmware).

[0163] It should be noted that the above description of the device and its modules is only for convenience of description and does not limit the present application to the scope of the embodiments. It is understandable that, after understanding the principle of the system, those skilled in the art may arbitrarily combine the modules or form a subsystem to connect with other modules without deviating from the principle. For example, Figure 6The acquisition module 601, parameter determination module 602, and model update module 603 disclosed in the system can be different modules in a system, or one module can implement the functions of two or more of the above modules. For example, the acquisition module 601 and the parameter determination module 602 can be two modules with acquisition and parameter determination functions respectively, or one module with both acquisition and judgment functions.

[0164] Furthermore, an embodiment of the present application also provides an electronic device, which includes a memory and a processor, the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the speaker amplitude model update method described in any of the above embodiments. The electronic device can be, but is not limited to, a weight scale, a body fat scale, a nutrition scale, an infrared electronic thermometer, a pulse oximeter, a human body composition analyzer, a mobile power supply, a wireless charger, a fast charger, a car charger, an adapter, a display, a Universal Serial Bus (USB) docking station, a stylus, a True Wireless Stereo (TWS) headset, a car console, a car, a smart wearable device, a mobile terminal, a smart home device, etc.

[0165] Among them, smart wearable devices include but are not limited to smart watches, smart bracelets, and cervical massagers. Mobile terminals include but are not limited to smart phones, laptops, tablets, and point of sales terminals (POS). Smart home devices include but are not limited to smart sockets, smart rice cookers, smart sweepers, and smart lights.

[0166] Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any one of the speaker amplitude model updating methods provided in the embodiments of the present invention. For example, the computer program may be loaded by a processor to execute the following steps:

[0167] Obtaining the voltage data and current data of the speaker voice coil;

[0168] Determine actual impedance model parameters of the speaker based on the voltage data and the current data;

[0169] updating the loudspeaker amplitude model according to the actual impedance model parameters and the original model parameters of the loudspeaker;

[0170] The voltage data and the current data include the speaker voice coil voltages and currents corresponding to N different frequencies, where N is an integer greater than or equal to 3.

[0171] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.

[0172] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.

[0173] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.

[0174] Similarly, it should be noted that in order to simplify the description of the disclosure of this application and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of this application are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.

[0175] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values ​​is as accurate as possible within the feasible range.

[0176] Each patent, patent application, patent application publication, and other materials, such as articles, books, specifications, publications, documents, etc., cited in this application is hereby incorporated by reference in its entirety, except for application history documents that are inconsistent with or conflicting with the content of this application, and documents that limit the broadest scope of the claims of this application (currently or later attached to this application). It should be noted that if the descriptions, definitions, and / or use of terms in the accompanying materials of this application are inconsistent or conflicting with the content described in this application, the descriptions, definitions, and / or use of terms in this application shall prevail.

[0177] The above is a detailed introduction to a speaker amplitude model updating method, device, speaker control method, electronic device and storage medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for updating a loudspeaker amplitude model, characterized in that: include: Obtaining the voltage data and current data of the speaker voice coil; Determining actual impedance model parameters of the speaker according to the voltage data and the current data; Update the loudspeaker amplitude model according to the actual impedance model parameters and the original model parameters of the loudspeaker; The voltage data and the current data include speaker voice coil voltages and currents corresponding to N different frequencies, where N is an integer greater than or equal to 3.

2. The speaker amplitude model updating method according to claim 1, characterized in that: The step of updating the loudspeaker amplitude model according to the actual impedance model parameters and the original model parameters of the loudspeaker comprises: Determining a gain coefficient according to the actual impedance model parameters and the original model parameters of the loudspeaker; The loudspeaker amplitude model is updated according to the gain coefficient and at least one parameter of the actual impedance model parameter.

3. The speaker amplitude model updating method according to claim 2, characterized in that: The original model parameters include original electrical quality factors, and the actual impedance model parameters include actual electrical quality factors; The ratio of the original electrical quality factor to the actual electrical quality factor is in a preset relationship with the gain coefficient.

4. The speaker amplitude model updating method according to claim 3, characterized in that: The actual impedance model parameters also include the actual DC resistance, actual resonance frequency, actual quality factor and actual mechanical quality factor of the loudspeaker voice coil; The step of determining the gain coefficient according to the actual impedance model parameters and the original model parameters of the loudspeaker comprises: Acquire original model parameters of the loudspeaker, wherein the original model parameters include original DC resistance, original resonance frequency, original quality factor, and original mechanical quality factor of the loudspeaker voice coil; A gain coefficient is determined according to the original DC resistance, the original resonant frequency, the original quality factor, the original mechanical quality factor, the actual DC resistance, the actual resonant frequency, the actual quality factor, and the actual mechanical quality factor.

5. The speaker amplitude model updating method according to claim 3, characterized in that: The actual impedance model parameters also include the actual resonance frequency, actual quality factor and actual mechanical quality factor of the loudspeaker voice coil; The step of determining the gain coefficient according to the actual impedance model parameters and the original model parameters of the loudspeaker comprises: Acquire original model parameters of the loudspeaker, wherein the original model parameters include an original resonance frequency, an original quality factor, and an original mechanical quality factor of the loudspeaker voice coil; A gain coefficient is determined according to the original resonance frequency, the original quality factor, the original mechanical quality factor, the actual resonance frequency, the actual quality factor, and the actual mechanical quality factor.

6. The speaker amplitude model updating method according to claim 4 or 5, characterized in that: The step of updating the loudspeaker amplitude model according to the gain coefficient and the actual impedance model parameter comprises: The loudspeaker amplitude model is updated according to the gain coefficient, the actual resonance frequency, and the actual quality factor.

7. The speaker amplitude model updating method according to claim 1, characterized in that: The step of determining the actual impedance model parameters of the speaker according to the voltage data and the current data comprises: Determine the actual DC resistance of the speaker voice coil according to the speaker voice coil voltage and current corresponding to at least one frequency; The actual resonance angular frequency, the actual quality factor and the actual mechanical quality factor of the speaker voice coil are determined according to the speaker voice coil voltages and currents corresponding to the N different frequencies.

8. The speaker amplitude model updating method according to claim 7, characterized in that: The step of determining the actual resonance angular frequency, the actual quality factor and the actual mechanical quality factor of the speaker voice coil according to the speaker voice coil voltages and currents corresponding to the N different frequencies comprises: Calculate the impedance corresponding to each frequency according to the speaker voice coil voltage and current corresponding to the N different frequencies; Constructing an impedance function corresponding to each frequency according to the impedance corresponding to each frequency, the N different frequencies and the impedance model; According to the impedance function corresponding to each frequency, the actual resonance angular frequency, the actual quality factor and the actual mechanical quality factor of the loudspeaker voice coil are determined.

9. A speaker amplitude model updating device, characterized in that: include: An acquisition module, the acquisition module is used to acquire voltage data and current data of the speaker voice coil; A parameter determination module, the parameter determination module is used to determine actual impedance model parameters of the speaker according to the voltage data and the current data; A model updating module, the model updating module is used to update the loudspeaker amplitude model according to the actual impedance model parameters and the original model parameters of the loudspeaker; The voltage data and the current data include speaker voice coil voltages and currents corresponding to N different frequencies, where N is an integer greater than or equal to 3.

10. A speaker control method, characterized in that: include: Get audio input signal; Predicting an audio input signal using a model updated by the speaker amplitude model updating method according to any one of claims 1 to 8 to determine a predicted amplitude of the speaker; The audio input signal is adjusted according to the predicted amplitude to control the amplitude of the speaker.

11. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the loudspeaker amplitude model updating method according to any one of claims 1 to 8.

12. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the loudspeaker amplitude model updating method according to any one of claims 1 to 8.