A method, apparatus, device and storage medium for measuring speaker parameters

CN116939467BActive Publication Date: 2026-09-25WUHAN JUXIN MICROELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210346639.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2026-09-25
Estimated Expiration
2042-03-31

AI Technical Summary

Benefits of technology

[0008]本申请实施例所提供的测量扬声器参数的方法、装置、设备及存储介质,至少基于待测扬声器的至少一个第一参数在第n个或第n-1个采集时刻的采集值、所述待测扬声器的目标参数的第n个参考值以及所述待测扬声器的第二参数的第n-1个预估值,确定所述第二参数的第n个预估值;所述第二参数为电压、电流和位移中的任一一个,所述第一参数为所述电压、所述电流和所述位移中除所述第二参数之外的参数;在所述第二参数的第n个预估值不满足收敛条件的情况下,基于所述第二参数的第n个预估值和所述目标参数的第n个参考值,确定所述目标参数的第n+1个参考值,并继续基于所述至少一个第一参数在第n+1个或第n个采集时刻的采集值、所述目标参数的第n+1个参考值,确定所述第二参数的第n+1个预估值,直到所述第二参数的第N个预估值满足所述收敛条件,确定所述目标参数的第N个参考值为所述目标参数的测量值,n大于0且小于N;从而通过自适应的方式,准确地确定待测扬声器的模型参数,降低模型参数的测量复杂度,并提高模型参数的测量精确度。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116939467B_ABST
    Figure CN116939467B_ABST
Patent Text Reader

Abstract

The application discloses a method, device, equipment and storage medium for measuring a loudspeaker parameter, which is characterized in that: at least based on the collection value of at least one first parameter of a to-be-measured loudspeaker at an n-th or n-1-th collection time, the n-th reference value of a target parameter of the to-be-measured loudspeaker and the n-1-th estimated value of a second parameter of the to-be-measured loudspeaker, the n-th estimated value of the second parameter is determined; the second parameter is any one of voltage, current and displacement, and the first parameter is a parameter other than the second parameter among the voltage, the current and the displacement; in the case that the n-th estimated value of the second parameter does not satisfy a convergence condition, the n+1-th reference value of the target parameter is determined, and the n+1-th estimated value of the second parameter is continuously determined until the N-th estimated value of the second parameter satisfies the convergence condition, the N-th reference value of the target parameter is determined as the measurement value of the target parameter, n is greater than 0 and less than N, and the measurement complexity of the target parameter is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of loudspeaker technology, and to, but is not limited to, a method, apparatus, device, and storage medium for measuring loudspeaker parameters. Background Technology

[0002] A loudspeaker is an electroacoustic device that converts electrical energy into kinetic energy (diaphragm vibration) and then into sound waves. In related technologies, a mathematical model of the loudspeaker is established based on its working principle. If the DC resistance of the loudspeaker unit's voice coil, the inductance of the loudspeaker unit's voice coil, the equivalent mass of the loudspeaker's vibration system, the equivalent resistance of the loudspeaker's suspension system, and the equivalent force of the loudspeaker's suspension system—then the mathematical model constructed from these parameters can simulate the diaphragm's position, velocity, acceleration, input impedance, and the loudspeaker system's sound output. In other words, the mathematical model constructed from these parameters controls the diaphragm's vibration amplitude, vibration velocity, and loudspeaker sound output. Therefore, the model parameters are crucial for loudspeaker diaphragm vibration control and distortion control. Summary of the Invention

[0003] This application provides a method, apparatus, device, and storage medium for measuring loudspeaker parameters, which can accurately determine the model parameters of the loudspeaker under test, reduce the measurement complexity of model parameters, and improve the measurement accuracy of model parameters.

[0004] The technical solution of this application embodiment is implemented as follows: This application provides a method for measuring loudspeaker parameters. The method includes: determining an nth estimated value of a second parameter based at least on a sampled value of at least one first parameter of the loudspeaker under test at the nth or (n-1)th sampling time, an nth reference value of a target parameter of the loudspeaker under test, and an (n-1)th estimated value of a second parameter of the loudspeaker under test; wherein the second parameter is any one of voltage, current, and displacement, and the first parameter is a parameter other than the second parameter among voltage, current, and displacement. If the nth predicted value of the second parameter does not meet the convergence condition, the (n+1)th reference value of the target parameter is determined based on the nth predicted value of the second parameter and the nth reference value of the target parameter. Then, the (n+1)th predicted value of the second parameter is determined based on the acquisition value of the at least one first parameter at the (n+1)th or nth acquisition time and the (n+1)th reference value of the target parameter, until the Nth predicted value of the second parameter meets the convergence condition. Finally, the Nth reference value of the target parameter is determined as the measured value of the target parameter, where n is greater than 0 and less than N.

[0005] This application provides a measuring device, the device comprising: The estimation module is used to determine the nth estimated value of the second parameter based at least on the acquired value of at least one first parameter of the loudspeaker under test at the nth or (n-1)th acquisition time, the nth reference value of the target parameter of the loudspeaker under test, and the (n-1)th estimated value of the second parameter of the loudspeaker under test; the second parameter includes any one of voltage, current, and displacement, and the first parameter is a parameter other than the second parameter among the voltage, the current, and the displacement; n is greater than 0 and less than N; The first determining module is used to determine the (n+1)th reference value of the target parameter based on the nth predicted value of the second parameter and the nth reference value of the target parameter when the nth predicted value of the second parameter does not meet the convergence condition. The estimation module is further configured to, if the nth estimated value of the second parameter does not meet the convergence condition, continue to determine the (n+1)th estimated value of the second parameter based on the acquired value of the at least one first parameter at the (n+1)th or nth acquisition time and the (n+1)th reference value of the target parameter, until the Nth estimated value of the second parameter meets the convergence condition. The second determining module is used to determine the Nth reference value of the target parameter as the measured value of the target parameter.

[0006] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the steps in measuring the speaker parameters described above.

[0007] This application embodiment also provides a storage medium storing a computer program thereon, which, when executed by a processor, performs the above-described measurement of speaker parameters.

[0008] The method, apparatus, device, and storage medium for measuring loudspeaker parameters provided in this application embodiment determine the nth estimated value of the second parameter based at least on the acquired value of at least one first parameter of the loudspeaker under test at the nth or (n-1)th acquisition time, the nth reference value of the target parameter of the loudspeaker under test, and the (n-1)th estimated value of the second parameter of the loudspeaker under test; the second parameter is any one of voltage, current, and displacement, and the first parameter is a parameter other than the second parameter among voltage, current, and displacement; if the nth estimated value of the second parameter does not satisfy the convergence condition, based on the second parameter... Based on the nth predicted value and the nth reference value of the target parameter, the (n+1)th reference value of the target parameter is determined. Then, based on the acquisition value of at least one first parameter at the (n+1)th or nth acquisition time and the (n+1)th reference value of the target parameter, the (n+1)th predicted value of the second parameter is determined, until the Nth predicted value of the second parameter satisfies the convergence condition. Finally, the Nth reference value of the target parameter is determined as the measured value of the target parameter, where n is greater than 0 and less than N. This adaptive approach accurately determines the model parameters of the loudspeaker under test, reducing the measurement complexity of the model parameters and improving the measurement accuracy of the model parameters. Attached Figure Description

[0009] Figure 1 This is a schematic diagram of an optional structure of a loudspeaker provided in an embodiment of this application; Figure 2 A schematic flowchart of an optional method for measuring loudspeaker parameters provided in an embodiment of this application; Figure 3 A schematic flowchart of an optional method for measuring loudspeaker parameters provided in an embodiment of this application; Figure 4 A schematic diagram of an optional architecture of the measurement system provided in an embodiment of this application; Figure 5 A schematic flowchart of an optional method for measuring loudspeaker parameters provided in an embodiment of this application; Figure 6A A schematic flowchart of an optional method for measuring loudspeaker parameters provided in an embodiment of this application; Figure 6B A schematic flowchart of an optional method for measuring loudspeaker parameters provided in an embodiment of this application; Figure 7 A schematic flowchart of an optional method for measuring loudspeaker parameters provided in an embodiment of this application; Figure 8 This is a schematic diagram of an optional structure of the measuring device provided in an embodiment of this application; Figure 9This is a schematic diagram of an optional structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0010] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of the application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.

[0011] The method for measuring loudspeaker parameters provided in the embodiments of this application will be further described below.

[0012] A moving-coil loudspeaker is made based on the principle that an electric current experiences a magnetic force in a magnetic field. The structure of a moving-coil loudspeaker can be as follows: Figure 1 As shown, the moving-coil loudspeaker comprises an electromagnet 101, a coil 102, and a diaphragm 103. The coil 102, formed by a wire wound around the bottom surface of the diaphragm 103, is situated within the magnetic field created by the electromagnet 101. The audio current supplied by the amplifier passes through the coil 102, causing it to vibrate under the influence of the electromagnet's magnetic field, generating audio vibrations. These vibrations, in turn, cause the air surrounding the diaphragm 103 to vibrate, producing sound. The coil 102, also known as the voice coil, acts as a conductor; when the audio current passes through it, the coil 102 experiences a force within the electromagnet's magnetic field.

[0013] It should be noted that the speaker structure used in the method for measuring speaker parameters provided in this application is not limited to that of the speaker. Figure 1 The moving-coil loudspeaker shown can also be applied to moving-coil loudspeakers with other structures. This application does not limit the structure of the loudspeaker in any way.

[0014] The method for measuring loudspeaker parameters provided in this application embodiment can be applied to electronic devices. The electronic device determines the model parameters of the loudspeaker under test based on at least two of the following: the current flowing through the voice coil of the loudspeaker unit, the voltage between the two turns of the voice coil, and the actual collected values ​​of the vibration displacement of the diaphragm.

[0015] The method for measuring loudspeaker parameters provided in the embodiments of this application, such as Figure 2 As shown, it includes: S201. Determine the nth estimated value of the second parameter based at least on the acquired value of at least one first parameter of the loudspeaker under test at the nth or n-1th acquisition time, the nth reference value of the target parameter of the loudspeaker under test, and the n-1th estimated value of the second parameter of the loudspeaker under test; the second parameter includes any one of voltage, current, and displacement, and the first parameter is a parameter other than the second parameter among the voltage, the current, and the displacement; S202. If the nth estimated value of the second parameter does not meet the convergence condition, based on the nth estimated value of the second parameter and the nth reference value of the target parameter, determine the (n+1)th reference value of the target parameter, and continue to determine the (n+1)th estimated value of the second parameter based on the acquisition value of the at least one first parameter at the (n+1)th or nth acquisition time and the (n+1)th reference value of the target parameter, until the Nth estimated value of the second parameter meets the convergence condition, and determine the Nth reference value of the target parameter as the measured value of the target parameter, where n is greater than 0 and less than N.

[0016] In this embodiment, the voltage is the voltage across the voice coil of the speaker unit, the current is the current in the voice coil of the speaker unit, and the displacement is the vibration displacement, i.e., the vibration amplitude, of the speaker unit diaphragm.

[0017] In this embodiment, the electronic device calculates the target parameters of the speaker under test through multiple iterations. The target parameters may include: DC resistance Re of the voice coil, inductance Le of the voice coil, force coefficient B1 of the voice coil, and equivalent mass M. ms Equivalent resistance R ms Equivalent K ms One or more of them.

[0018] In the nth iteration, the electronic device determines the nth estimated value of the second parameter based on the collected value of at least one first parameter at time n or n-1 and the nth reference value of the target parameter. If the nth estimated value of the second parameter does not meet the convergence condition, the nth reference value of the target parameter is updated based on the nth estimated value of the second parameter to obtain the (n+1)th reference value of the target parameter, and the (n+1)th iteration is performed based on the (n+1)th reference value of the target parameter.

[0019] In the (n+1)th iteration, the electronic device determines the (n+1)th predicted value of the second parameter based on the collected value of at least one first parameter at time (n+1) or n and the (n+1)th reference value of the target parameter. If the (n+1)th predicted value does not meet the convergence condition, the (n+1)th reference value of the target parameter is updated based on the (n+1)th predicted value of the second parameter to obtain the (n+2)th reference value of the target parameter, and the (n+2)th iteration is performed based on the (n+2)th reference value of the target parameter.

[0020] Among them, the 0th collected value of the first parameter can be 0.

[0021] The first reference value of the target parameter can be a pre-defined initial value. In this embodiment, there are no restrictions on the magnitude of the initial value of the target parameter; it can be set according to actual needs.

[0022] Here, the iteration in which the predicted value of the second parameter satisfies the convergence condition is defined as the Nth iteration. In the Nth iteration, the electronic device determines the Nth predicted value of the second parameter based on the collected value of at least one first parameter at time N or N-1 and the Nth reference value of the target parameter. The Nth predicted value satisfies the convergence condition. At this time, the iteration ends, and the electronic device determines the Nth reference value of the target parameter obtained from the Nth predicted value as the measured value of the target parameter.

[0023] like Figure 3 As shown, the method for measuring loudspeaker parameters provided in this application embodiment may include: S301. The electronic device determines the nth estimated value of the second parameter based at least on the acquired value of at least one first parameter of the speaker under test at the nth or n-1th acquisition time, the nth reference value of the target parameter of the speaker under test, and the n-1th estimated value of the second parameter of the speaker under test.

[0024] S302. Does the electronic device determine whether the nth estimated value of the second parameter satisfies the convergence condition? If the nth predicted value of the second parameter meets the convergence condition, the electronic device executes S303; if the nth predicted value of the second parameter does not meet the convergence condition, it executes S304.

[0025] S303. Determine the current reference value of the target parameter as the measured value of the target parameter.

[0026] S304. The electronic device determines the (n+1)th reference value of the target parameter based on the nth estimated value of the second parameter and the nth reference value of the target parameter.

[0027] S305. The electronic device increments the value of n by 1.

[0028] The electronic device increments the value of n by 1, that is, replaces n with n+1, and continues to execute S301 based on the n after incrementing by 1.

[0029] In this embodiment of the application, the collected values ​​of voltage, current, and displacement at the nth sampling time are all collected values ​​at the same sampling time.

[0030] In practical applications, the values ​​of the voltage, current, and displacement at the nth acquisition time are the values ​​of the loudspeaker being measured when the input noise signal is received. The collected values ​​of voltage across the unit voice coil, current in the unit voice coil, and vibration displacement of the unit diaphragm at time n are obtained under the following conditions.

[0031] In this embodiment, when the loudspeaker under test is given an input excitation signal w(t), it generates a voltage response signal u(t), a current response signal i(t), and a displacement response signal x(t). The voltage response signal u(t) represents the change in voltage across the voice coil of the loudspeaker under test over time when w(t) is input; the current response signal i(t) represents the change in current flowing through the voice coil of the loudspeaker under test over time when w(t) is input; and the displacement response signal x(t) represents the change in vibration amplitude of the diaphragm of the loudspeaker under test over time when w(t) is input. The voltage response signal u(t), the current response signal i(t), and the displacement response signal x(t) are measured at the nth acquisition time using a voltage sensor, a current sensor, and a laser sensor, respectively. This yields the measured values ​​of voltage (i.e., the acquired value u(n)), current (i.e., the acquired value i(n)), and displacement (i.e., the acquired value x(n)) at the nth acquisition time.

[0032] In this embodiment of the application, the electronic device acquires voltage, current, and displacement using one of the following methods: Method 1: Electronic devices are used as measuring devices to determine voltage, current, and displacement; Method 2: Electronic devices obtain voltage, current, and displacement from measuring devices.

[0033] Here, the measuring device directly receives the voltage response signal, current response signal, and displacement response signal of the speaker under test from the sensors, obtaining the acquired values. The sensors can be integrated into the measuring device or connected to it. The measuring device can also input an excitation signal to the speaker under test.

[0034] When the acquisition method is acquisition method 1, the electronic device, as a measuring device, collects the voltage, current, and displacement of the unit voice coil of the speaker under test, and obtains the real-time collected values ​​of voltage, current, and displacement. The electronic device periodically collects the voltage, current, and displacement of the unit voice coil of the speaker under test, and the voltage, current, and displacement of the unit voice coil collected at the nth acquisition time are the collected values ​​of voltage, current, and displacement at the nth acquisition time, respectively. When the acquisition method is acquisition method 2, the electronic device further performs the following steps: acquiring a voltage sequence, a current sequence, and a displacement sequence, wherein the voltage sequence is the acquisition result obtained by acquiring voltage at M times for the speaker under test, and the nth acquisition value of the voltage is the acquisition result at the nth time in the voltage sequence; the current sequence is the acquisition result obtained by acquiring current at the M times for the speaker under test, and the nth acquisition value of the current is the acquisition result at the nth time in the current sequence; and the displacement sequence is the acquisition result obtained by acquiring displacement at the M times for the speaker under test, and the nth acquisition value of the displacement is the acquisition result at the nth time in the displacement sequence.

[0035] The measuring device collects the voltage, current, and displacement of the unit voice coil of the loudspeaker under test, and obtains the real-time collected values ​​of voltage, current, and displacement. Based on the collected values ​​at multiple collection times, it determines the voltage sequence, current sequence, and displacement sequence. The measuring device receives the information acquisition request from the electronic device or actively sends the voltage sequence, current sequence, and displacement sequence to the electronic device. The electronic device receives the voltage sequence, current sequence, and displacement sequence sent by the measuring device.

[0036] The relationship between electronic equipment and measuring equipment, such as Figure 4 As shown, the electronic device 401 and the measuring device 402 can communicate with each other. The measuring device 402 measures the speaker 403 under test to obtain voltage sequence, current sequence and displacement sequence, and sends the measured voltage sequence, current sequence and displacement sequence to the electronic device 401.

[0037] In this embodiment of the application, the electronic device can set a prediction model and an update model for the second parameter, and input at least one of the nth or (n-1)th collected values ​​of the first parameter and the nth parameter of the target parameter into the prediction model to obtain the nth predicted value of the second parameter, and input the nth predicted value of the second parameter and the nth reference values ​​of the target parameter into the update model to obtain the (n+1)th reference value of the target parameter.

[0038] In this embodiment, the second parameter is any one of voltage u, current i, and displacement x, and the first parameter is any one of voltage, current, and displacement other than the second parameter. The target parameter is different depending on the second parameter.

[0039] In one example, the second parameter is voltage, then at least one first parameter includes current and displacement, and the target parameters include the DC resistance Re of the unit voice coil, the inductance Le of the unit voice coil, and the force coefficient bl of the unit voice coil.

[0040] In one example, the second parameter is displacement, then at least one first parameter includes current, and the target parameter includes equivalent mass M. ms Equivalent resistance R ms Equivalent K ms .

[0041] In one example, the second parameter is current, then at least one first parameter includes voltage, and the target parameters include: DC resistance Re of the voice coil, inductance Le of the voice coil, force coefficient Bl of the voice coil, and equivalent mass M. ms Equivalent resistance R ms Equivalent K ms Among them, the dynamic coefficient of the single-tone coil. B is the magnetic flux density in the gap, L is the wire length of the single-unit voice coil, and the force F experienced by the single-unit voice coil in the magnetic field can be expressed as: .

[0042] In this embodiment of the application, the electronic device can determine a simulation model for the second parameter based on at least one or both of the electrical and mechanical relationships of the speaker: The electrical relationship of the loudspeaker is shown in formula (1): Formula (1) The mechanical relationship of the loudspeaker is shown in formula (2): Formula (2); After determining the simulation model for the second parameter, the electronic device can perform analog-to-digital conversion on the simulation model for the second parameter to obtain the prediction model for the second parameter.

[0043] In one example, the first simulation model for voltage, i.e., the simulated electrical model, is determined according to the electrical relationship shown in formula (1). The simulated electrical model can be an electrical model in the S-domain, as shown in formula (3): Formula (3); This is the voltage across the voice coil of the unit. Let be the vibration displacement of the unit diaphragm, and s be a complex variable in the S-domain.

[0044] The voltage prediction model determined based on the first simulation model can be shown in equation (4):

[0045] Formula (4).

[0046] This is the nth estimated value of the voltage. This is the (n-1)th estimated value of the voltage. This represents the current value collected at the nth sampling moment. Let i be the value collected at the (n-1)th sampling moment. Let x be the value collected at the nth acquisition time. It is the collected value at the (n-1)th acquisition time of displacement x.

[0047] In one example, the second simulation model for displacement, namely the simulated mechanical model, is determined according to the mechanical relationship shown in formula (2). The simulated mechanical model can be a mechanical model in the S-domain, as shown in formula (5): Formula (5); The displacement prediction model determined based on the simulated mechanical model is shown in equation (6): Formula (6); This is the nth estimated value of the displacement. This is the (n-1)th estimated value of the displacement. This is the (n-2)th estimated value of the displacement, where b, a1, and a2 are related to the force coefficient Bl of the single-voice coil and the equivalent mass M. ms Equivalent resistance R ms Equivalent K ms The relational expression.

[0048] In one example, a third simulation model for the current is determined based on the electrical relationship shown in Equation (1) and the mechanical relationship shown in Equation (2). The third simulation model is the impedance model in the S-domain shown in Equation (7): Formula (7); The current prediction model determined based on the third simulation model is shown in equation (8): Formula (8); in, For the nth estimated value of i, the fourth coefficient c0, the fifth coefficient c1, the sixth coefficient c2, the seventh coefficient d0, the eighth coefficient d1, and the ninth coefficient d2 are related to the DC resistance Re of the unit voice coil, the inductance Le of the unit voice coil, the force coefficient Bl of the unit voice coil, and the equivalent mass M. ms Equivalent resistance R ms Equivalent K ms The relational expression.

[0049] In this embodiment of the application, after obtaining the nth estimated value of the second parameter, it can be determined whether the nth estimated value of the second parameter satisfies the convergence condition based on the nth estimated value of the second parameter and the nth collected value of the second parameter. Moreover, the convergence condition is different for different second parameters.

[0050] If the second parameter is voltage, and the nth predicted value of the voltage satisfies the first convergence condition, then the second parameter is determined to satisfy the convergence condition. The first convergence condition is related to the acquired voltage value.

[0051] If the second parameter is displacement, and the nth predicted value of the displacement satisfies the second convergence condition, then the second parameter is determined to satisfy the convergence condition. The second convergence condition is related to the acquired displacement value.

[0052] If the second parameter is current, and the nth predicted value of the current satisfies the third convergence condition, then the second parameter is considered to meet the convergence condition. The third convergence condition is related to the acquired value of the current.

[0053] In this embodiment, the update model for updating the nth estimated value of the second parameter can be a function based on the nth estimated value of the second parameter. The input to the update model includes at least the nth estimated value of the second parameter, and the output of the update model includes the (n+1)th estimated value of the second parameter.

[0054] In one example, the (n+1)th predicted value of the second parameter is related to the nth predicted value of the second parameter and the value collected at the nth acquisition time of the second parameter. In this case, the input to the update model for the second parameter also includes the acquired value of the second parameter.

[0055] If the electronic device determines that the nth predicted value of the second parameter satisfies the convergence condition, the iteration ends, and the nth reference value of the target parameter obtained from the nth predicted value of the second parameter is used as the measured value of the target parameter, where n is N. If the electronic device determines that the nth predicted value of the second parameter does not satisfy the convergence condition, the reference value of the target parameter is updated based on the update model corresponding to the second parameter, obtaining n+1 reference values ​​of the second parameter, and the next round of iteration is performed based on the n+1 reference values ​​of the second parameter until the determined predicted value of the second parameter satisfies the convergence condition.

[0056] Next, taking voltage and current as examples respectively as the second parameters, the method for measuring speaker parameters provided in this application embodiment will be further explained.

[0057] The second parameter is voltage. The at least one first parameter includes: the displacement and the current; the second parameter includes: the voltage; the target parameter includes: the DC resistance of the unit voice coil, the inductance of the unit voice coil, and the force coefficient of the unit voice coil; at this time, S201 can be implemented as follows: Based on the first current, the second current, the first displacement, the second displacement, the (n-1)th estimated value of the voltage, and the nth reference value of the DC resistance of the unit voice coil, the nth reference value of the inductance of the unit voice coil, and the nth reference value of the force coefficient of the unit voice coil, the nth estimated value of the voltage is determined. The first current is the value collected at the nth sampling time of the current, the second current is the value collected at the (n-1)th sampling time of the current, the first displacement is the value collected at the nth sampling time of the displacement, and the second displacement is the value collected at the (n-1)th sampling time of the displacement.

[0058] When the second parameter is voltage, in the nth iteration of determining the nth estimated value of the second parameter, based on the first current... Second current The (n-1)th estimated value of voltage The nth reference value of the voltage is determined by the nth reference value of the DC resistance Re of the voice coil, the nth reference value of the voice coil inductance Le, and the nth reference value of the power coefficient Bl of the voice coil. .

[0059] In one example, the voltage prediction model, i.e., the first prediction model, is shown in formula (4). In the nth iteration, At this point, Re, Le, and Bl take the nth reference values ​​of Re, Le, and Bl, respectively, meaning Re, Le, and Bl form the first target matrix. The values ​​in Let be the matrix formed by the nth reference value of Re, the nth reference value of Le, and the nth reference value of Bl.

[0060] In this embodiment of the application, in the first iteration, the first estimated value of the voltage is... ,in, An initial estimate of the set voltage can be provided, such as 0. and The initial acquisition values ​​for current and displacement can be set, for example: 0, and the values ​​of Re, Le, and Bl are respectively... The values ​​of Re, Le, and Bl in the text. It consists of Re, Le, and Bl, each with an initial reference value. The initial reference values ​​of Re, Le, and Bl can be the same or different. For example, the initial reference values ​​of Re, Le, and Bl can all be 0.1, or the initial reference values ​​of Re, Le, and Bl can be 0.1e respectively. -3 0.2, 3e 3 In this embodiment of the application, the initial estimated value of voltage, the initial value of current, the initial value of displacement, and the initial reference values ​​of Re, Le, and B1 are not limited, and can be set according to actual needs.

[0061] In some embodiments, when the second parameter is voltage, the electronic device may also perform the following processing: Determine the voltage difference between the nth predicted value of the voltage and the acquired value at the nth acquisition time of the voltage; if the voltage difference is greater than or equal to a voltage difference threshold, determine that the nth predicted value of the voltage does not meet the voltage convergence condition; if the voltage difference is less than the voltage difference threshold, determine that the nth predicted value of the voltage meets the voltage convergence condition.

[0062] In the nth iteration, after the electronic device determines the nth estimated value of the voltage, it compares the nth estimated value of the voltage with the value collected at the nth acquisition time to determine the current voltage difference, i.e., the voltage error. ,in, When the determined voltage difference is less than the voltage difference threshold, the nth predicted value of the determined voltage satisfies the voltage convergence condition, i.e., the first convergence condition, and the iteration ends; when the determined voltage difference is greater than the voltage difference threshold, the nth predicted value of the determined voltage does not satisfy the first convergence condition, and the next round of iteration needs to be continued.

[0063] In this embodiment of the application, taking the first prediction model as shown in formula (4) as an example, in the first iteration, the electronic device is based on Sure ,exist and When the voltage difference is greater than the voltage difference threshold, for Perform an update, and based on the updated version A second iteration is conducted; in the second iteration, the electronic device is based on Sure Where Re, Le, and Bl are reference values ​​after one update, in and When the voltage difference exceeds the voltage difference threshold, the values ​​of Re, Le, and Bl (i.e., the reference values) are updated a second time. Update and get And based on the updated The third iteration is conducted; in the third iteration, the electronic device is based on Sure Where Re, Le, and Bl are the reference values ​​after the second update, in and When the voltage difference exceeds the voltage difference threshold, the values ​​of Re, Le, and Bl (i.e., the reference values) are updated three times. Update and get And based on the updated The fourth iteration is performed until the Nth iteration, when the electronic device is based on Sure Where Re, Le, and Bl take values ​​of In Re, Le, and Bl, and If the voltage difference is less than the voltage difference threshold, the (N+1)th iteration will not be executed, and it will be determined that... The values ​​of Re, Le, and Bl are the measured values ​​of Re, Le, and Bl, respectively. The value of N is determined based on whether the voltage difference between the predicted voltage value and the corresponding acquired value is less than the voltage difference threshold. If, in a certain iteration, the voltage difference between the predicted voltage value and the corresponding acquired value is less than the voltage difference threshold, then N is the number of iterations.

[0064] In some embodiments, when the second parameter is voltage, in the nth iteration, S202, based on the nth estimated value of the second parameter and the nth reference value of the target parameter, determines the (n+1)th reference value of the target parameter, which includes: obtaining the (n+1)th reference value of the unit voice coil DC resistance, the (n+1)th reference value of the unit voice coil inductance, and the (n+1)th reference value of the unit voice coil force coefficient based on the nth reference value of the unit voice coil DC resistance, the unit voice coil inductance, the unit voice coil force coefficient, the first step length, the second step length, the third step length, the voltage difference, and the nth estimated value of the voltage. The first step length, the second step length, and the third step length are the step lengths corresponding to the unit voice coil DC resistance, the unit voice coil inductance, and the unit voice coil force coefficient, respectively.

[0065] If the electronic device determines that the nth estimated value of the voltage does not meet the convergence condition, it updates the reference values ​​of Re, Le, and Bl to obtain the (n+1)th reference value of Re, Le, and Bl. Update and get .

[0066] In this embodiment of the application, the electronic device inputs the following parameters into the voltage-corresponding update model, i.e., the first update model, to obtain the updated Re, Le, and B1 values ​​output by the first update model, i.e., the (n+1)th reference values ​​of Re, Le, and B1: Re is the current reference value, Le is the current reference value, B1 is the current reference value, the first step length, the second step length, the third step length, the current voltage difference (the voltage difference between the nth estimated value of the voltage and the acquired value at the nth acquisition time) and the nth estimated value of the voltage.

[0067] In one example, the first update model can be represented by formula (9): Formula (9); in, , For the first step, For the second step length, The third step size is given, while the first, second, and third step sizes are constants.

[0068] In this embodiment of the application, no limitations are imposed on the relational expression of the first update model.

[0069] The second parameter is displacement. The at least one first parameter includes: the current; the second parameter includes: the displacement; the target parameter includes: equivalent mass, equivalent resistance, equivalent force, and force coefficient; at this time, S201 can be implemented as follows: Based on the second current, the (n-1)th estimated value of the displacement, the (n-2)th estimated value of the displacement, the nth reference value of the equivalent mass, the nth reference value of the equivalent resistance, the nth reference value of the equivalent force, and the nth reference value of the force coefficient, the nth estimated value of the displacement is determined, and the second current is the acquired value of the current at the (n-1)th acquisition time.

[0070] When the second parameter is displacement, in the nth iteration of determining the nth estimated value of the second parameter, based on the second current... The (n-1)th estimated value of displacement The (n-2)th estimated value of displacement and equivalent mass M ms Equivalent resistance R ms Equivalent K ms The sum of force coefficients Bl determines the nth estimated value of the displacement. .

[0071] In some embodiments, determining the nth estimated value of the displacement based on the second current, the (n-1)th estimated value of the displacement, the (n-2)th estimated value of the displacement, the nth reference value of the equivalent mass, the nth reference value of the equivalent resistance, the nth reference value of the equivalent force, and the nth reference value of the force coefficient includes: Based on the second current, the (n-1)th estimated value of the displacement, the (n-2)th estimated value of the displacement, and the nth reference value of the reference coefficient sequence, the nth estimated value of the displacement is determined. The reference coefficient sequence includes a first coefficient, a second coefficient, and a third coefficient, where the first coefficient, the second coefficient, and the third coefficient are respectively expressions represented by the target parameter.

[0072] Here, the first coefficient a1, the second coefficient a2, and the third coefficient b can be obtained through the equivalent mass M. ms Equivalent resistance Rms and equivalent power K ms One or more representations in the [context].

[0073] In one example, a1 can be based on the equivalent mass M ms Equivalent resistance R ms Equivalent K ms Represented as formula (10): Formula (10); In one example, a2 can be based on the equivalent mass M ms Equivalent resistance R ms Represented as formula (11): Formula (11); In one example, b can be based on a1, a2, and the equivalent force K. ms Represented as formula (12): Formula (12); In this embodiment of the application, in the nth iteration, based on the second current The (n-1)th estimated value of displacement The (n-2)th estimated value of displacement The nth estimated displacement is determined by the nth reference value of the first coefficient, the nth reference value of the second coefficient, and the nth reference value of the third coefficient. .

[0074] The nth reference value of the first coefficient a1, the nth reference value of the second coefficient a2, and the nth reference value of the third coefficient b can constitute the second target matrix. .in, The first reference value of the first coefficient a1, the first reference value of the second coefficient a2, and the first reference value of the third coefficient b can be the initial reference value of a1, the initial reference value of a2, and the initial reference value of b, respectively.

[0075] In one example, the displacement prediction model, i.e., the second prediction model, is shown in formula (6). In the nth iteration, At this point, the values ​​of a1, a2, and b are respectively The values ​​of a1, a2, and b in the given text.

[0076] In this embodiment, the calculation of the nth estimated value of the displacement requires the (n-1)th and (n-2)th estimated values ​​of the displacement. In this case, n can be greater than 1. Therefore, in the first iteration, the first estimated value of the displacement... . An initial estimated value for the displacement can be set, for example, 0. The values ​​of a1, a2, and b are respectively... The values ​​of a1, a2, and b in the given text. It consists of a1, a2, and b, each with an initial reference value, where the initial reference values ​​of a1, a2, and b can be determined by M. ms R ms and K ms The initial reference value is constituted. M ms R ms and K ms The initial reference values ​​can be the same or different, for example: M ms R ms and K ms The initial reference value is 0.1, for example: M ms R ms and K ms The initial reference values ​​are 0.1e. -3 0.2, 3e 3 In this embodiment of the application, the initial estimated value of displacement, the initial value of current, and M are... ms R ms and K ms The initial reference values ​​are all greater than 0 and can be set according to actual needs.

[0077] In some embodiments, when the second parameter is displacement, the electronic device may also perform the following processing: Determine the displacement difference between the nth predicted value of the displacement and the acquired value of the displacement at the nth acquisition time; if the displacement difference is greater than or equal to a displacement difference threshold, determine that the nth predicted value of the displacement does not meet the displacement convergence condition; if the displacement difference is less than the displacement difference threshold, determine that the nth predicted value of the displacement meets the displacement convergence condition.

[0078] In the nth iteration, after the electronic device determines the nth estimated displacement, it compares the nth estimated displacement with the acquired value at the nth acquisition time to determine the current displacement difference, i.e., the displacement error. ,in, If the determined displacement difference is less than the displacement difference threshold, then the nth estimated value of the determined displacement satisfies the displacement convergence condition, i.e. the second convergence condition, and the iteration ends; if the determined displacement difference is greater than the displacement difference threshold, then the nth estimated value of the determined displacement does not satisfy the second convergence condition, and the next round of iteration needs to be continued.

[0079] In this embodiment of the application, taking the second prediction model as an example, such as formula (6), in the first iteration, the electronic device is based on Sure ,exist and When the displacement difference is greater than the displacement difference threshold, for Perform an update, and based on the updated version A second iteration is conducted; in the second iteration, the electronic device is based on Sure Where a1, a2, and b are reference values ​​after one update, in and When the displacement difference exceeds the displacement difference threshold, the values ​​of a1, a2, and b (i.e., the reference values) are updated a second time. Update and get And based on the updated The third iteration is conducted; in the third iteration, the electronic device is based on Sure Where a1, a2, and b are the reference values ​​after the second update, in and When the displacement difference exceeds the displacement difference threshold, the values ​​of a1, a2, and b (i.e., the reference values) are updated three times. Update and get And based on the updated The fourth iteration is performed until the Nth iteration, when the electronic device is based on Sure Where a1, a2, and b take values ​​of a1, a2, b in and If the displacement difference is less than the displacement difference threshold, the (N+1)th iteration will not be executed, and it will be determined that... In this context, a1, a2, and b are the target values ​​for a1, a2, and b, respectively. The value of N is determined based on whether the displacement difference between the predicted displacement and the corresponding acquired value is less than a displacement difference threshold. If, in a certain iteration, the displacement difference between the predicted displacement and the corresponding acquired value is less than the displacement difference threshold, then N represents the current iteration number.

[0080] In some embodiments, when the second parameter is displacement, in the nth iteration, S202, based on the nth estimated value of the second parameter and the nth reference value of the target parameter, determines the (n+1)th reference value of the target parameter, which includes: obtaining the (n+1)th reference value of the reference coefficient sequence based on the nth reference value of the reference coefficient sequence, the fourth step size, the fifth step size, the sixth step size, the displacement difference, and the nth estimated value of the displacement, wherein the fourth step size, the fifth step size, and the sixth step size are the step sizes corresponding to the first coefficient, the second coefficient, and the third coefficient, respectively.

[0081] If the electronic device fails to meet the convergence condition for the nth estimated displacement, it updates the reference values ​​of the reference coefficient sequence a1, a2, and b to obtain the (n+1)th reference value of a1, a2, and b. Update and get .

[0082] In this embodiment of the application, the electronic device inputs the following parameters into the update model corresponding to the displacement, i.e., the second update model, to obtain the updated reference values ​​a1, a2, and b output by the second update model, i.e., the (n+1)th reference values ​​of a1, a2, and b: The current reference value of a1, the current reference value of a2, the current reference value of b, the fourth step length, the fifth step length, the sixth step length, the current displacement difference (the displacement difference between the nth estimated value of the displacement and the value collected at the nth acquisition time) and the nth estimated value of the displacement.

[0083] In one example, the second update model can be represented by formula (13): Formula (13); in, , For the fourth step length, For the fifth step length, The sixth step size is 6, while the fourth, fifth, and sixth step sizes are constants.

[0084] In this embodiment of the application, no limitations are imposed on the relational expression of the second update model.

[0085] In some embodiments, the electronic device further implements the following steps: If the Nth estimated value of the displacement satisfies the convergence condition, the Nth reference value of the reference coefficient sequence is determined; based on the Nth reference value of the reference coefficient sequence, the measured values ​​of the equivalent mass, the equivalent resistance, and the equivalent force are determined.

[0086] After determining the Nth reference value of the first coefficient, the Nth reference value of the second coefficient, and the Nth reference value of the third coefficient, the electronic device is based on a1, a2, b, and M. ms R ms and Km ms The relationship between M determines ms The Nth reference value, R ms The Nth reference value and K ms The Nth reference value, the determined M ms The Nth reference value, the Nth reference value of Rms, and the Nth reference value of Kms are M. ms R ms and Kms The measured value.

[0087] In this embodiment of the application, when a1, a2, and b can be expressed as formula (10), formula (11), and formula (12), M ms R ms and K ms This can be expressed as formulas (14), (15), and (16), respectively: Formula (14); Formula (15); Formula (16); Among them, M is determined based on the first coefficient, the second coefficient, and the third coefficient. ms R ms and K ms The value of Bl used can be preset or determined when the second parameter is voltage.

[0088] In the method for measuring loudspeaker parameters provided in this application embodiment, a predicted value of a second parameter is determined by using a first parameter and a target parameter to be measured. If the error between the value of the second parameter and the actual measured value of the second parameter is less than an error threshold, the target parameter is updated, and a new first parameter is used based on the updated target parameter to determine a new predicted value of the second parameter. Through continuous iteration, the predicted value of the second parameter gradually approaches the acquired value of the second parameter. When the predicted value of the second parameter and the acquired value of the second parameter are less than the error threshold, it is considered that the value of the target parameter obtained by the predicted value of the second parameter is close to the true value of the target parameter of the loudspeaker under test. Therefore, the value of the target parameter obtained by the predicted value of the second parameter is determined as the measured value of the target parameter, and the measured value of the target parameter is continuously adjusted based on the acquired values ​​of current and displacement in an adaptive manner to obtain the final measured value of the target parameter. This accurately determines the target parameter of the loudspeaker under test, reduces the measurement complexity of the target parameter, and improves the measurement accuracy of the target parameter.

[0089] The method for measuring loudspeaker parameters provided in the embodiments of this application will be further described below.

[0090] The mathematical models established based on the principles of loudspeakers include: electrical models based on electrical relationships and mechanical models based on mechanical relationships.

[0091] The electrical relationship can be expressed as formula (1): Formula (1); The mechanical relationship can be expressed as formula (2): Formula (2); Where u is the voltage across the voice coil of the loudspeaker unit, i is the voice coil current of the loudspeaker unit, and x is the vibration displacement of the diaphragm of the loudspeaker unit.

[0092] The model parameters in the above data model include: Re: DC resistance of the speaker unit voice coil; Le: Voice coil inductance of the loudspeaker unit; Bl: Force coefficient, which is the product of the gap magnetic induction intensity B and the effective voice coil length L; where the force F experienced by the voice coil in the magnetic field is given by formula (17): Formula (17); M ms The equivalent mass of a loudspeaker vibration system; R ms Equivalent resistance of the speaker mounting system; K ms Equivalent force of speaker mounting system.

[0093] In related technologies, methods for obtaining the model parameters of a loudspeaker include: Method 1: Parameter identification based on voltage v and current i By replacing x with i in the electrical module using the relationship between i and x, the voltage-current transfer function, i.e., the impedance model, can be constructed. The impedance is calculated by collecting v and i, and the impedance model parameters are deduced from the impedance. Then, the impedance model parameters are obtained twice using the method of adding mass or adding cavity, and the model parameters of the loudspeaker are calculated by the difference between the impedance model parameters.

[0094] Method 2: Parameter identification based on voltage v, current i, and sound pressure p The sound pressure P is directly proportional to the diaphragm vibration acceleration a, therefore the acceleration a can be determined from the sound pressure, and x can be derived from the relationship between acceleration and displacement. The voltage-sound pressure transfer function and the voltage-current transfer function are tested using voltage v, current i, and sound pressure signals, respectively. The model parameters of the loudspeaker are calculated from the parameters of the two transfer functions.

[0095] Method 1, in principle, can only identify the parameters of the electrical module and the relationships between the parameters of the mechanical module. However, if any parameter in the mechanical module is known, all parameters of the mechanical model can be obtained. The effective vibration mass M can be obtained through the method of adding mass or adding cavity. ms Or equivalent to K msThis method yields all model parameters. However, it requires multiple measurements and modifications to the speaker structure, making it complex. For example, the additional cavity method requires standardized test fixtures for each speaker, placing high demands on the testing equipment. Furthermore, it cannot be used with miniature speakers featuring a back cavity. On the other hand, the change in diaphragm balance position caused by the added mass also affects diaphragm compliance, thus impacting the test results.

[0096] Method 2 is susceptible to external environmental influences and has high requirements for the testing environment, making it inconvenient for daily testing.

[0097] The method for testing loudspeaker parameters provided in this application uses laser to measure the vibration amplitude of the unit diaphragm, i.e., the displacement of the unit diaphragm. Based on the principle of adaptive filters, it can conveniently, quickly and accurately test the model parameters of the loudspeaker.

[0098] In this embodiment of the application, the electrical and mechanical models included in the loudspeaker model can be converted from analog to digital, respectively.

[0099] The analog electrical model shown in formula (3) is converted into the prediction model shown in formula (4) to determine the ideal voltage, i.e., the voltage estimate.

[0100]

[0101] Formula (4); in, The sampling period can be expressed as formula (18): Formula (18); The sampling frequency.

[0102] The simulated mechanical model shown in formula (5) is transformed into the prediction model shown in formula (6) to determine the ideal displacement, i.e., the estimated value of the displacement: Formula (6); Among them, in formula (6) , , for , , and The function.

[0103] The method for measuring loudspeaker parameters provided in the embodiments of this application, such as Figure 5 As shown, it includes: S501. Input the noise signal to the speaker and collect the voltage, current and displacement of the speaker.

[0104] noise signal The input value is a loudspeaker. At this time, the loudspeaker's voltage signal, current signal, and displacement are respectively... , and In this embodiment, the noise signal may include, but is not limited to, pink noise, white noise, or pseudo-random signal.

[0105] Voltage and current signals are acquired by voltage and current sensors at a set acquisition period to obtain a voltage sequence. Current sequence The displacement of the diaphragm is acquired by laser acquisition at a certain period to obtain a displacement sequence. .

[0106] S502, Convert the voltage sequence Current sequence and displacement sequence The input is fed into the first adaptive filter model to obtain the model parameters of the electrical model output by the first adaptive filter model.

[0107] The algorithms used in the iteration process of the first adaptive filter model include: The ideal voltage calculation algorithm shown in formula (4) is as follows: Formula (4); The first adaptive algorithm shown in formula (9): Formula (9); Model parameters of the electrical model Including: Re, Le, and Bl.

[0108] The process of obtaining the model parameters of the electrical model based on the first adaptive filter model, such as... Figure 6A As shown, it includes: S5021. Initialize the model parameters of the electrical model and the first long sequence.

[0109] The model parameters of the electrical model and the first-step long sequence are initialized respectively, resulting in the initial electrical model parameters with initial values ​​of . And the initial first step long sequence is .

[0110] S5022. Determine the ideal voltage according to the ideal voltage calculation algorithm.

[0111] In the first iteration, formula (4) can be written as: .

[0112] S5023. Determine the voltage error based on the ideal voltage and the actual voltage.

[0113] Voltage error It can be determined based on formula (19): Formula (19); exist If the voltage difference is greater than or equal to the voltage difference threshold, execute S5024; If the voltage difference is less than the threshold, execute S5025.

[0114] In practical applications, the convergence condition for voltage is not limited to... The condition of being less than the voltage difference threshold may also include: the voltage difference being less than the voltage difference threshold for a period of time, the average power of the voltage difference being less than the first power threshold, and other convergence conditions determined based on the threshold.

[0115] S5024. Update the electrical model parameters based on the first adaptive algorithm.

[0116] The initial electrical model parameters are updated based on the first adaptive algorithm shown in formula (9) to obtain the updated electrical model parameters.

[0117] After obtaining the updated electrical model parameters, increment the value of n by 1, and repeat S5022 and S5023 based on the updated electrical model parameters.

[0118] S5025, Change the current electrical model parameters These parameters were determined to be the final electrical model parameters.

[0119] S503, Voltage sequence Current sequence and displacement sequence The input is fed into the second adaptive filter model to obtain the mechanical model parameters output by the second adaptive filter model.

[0120] The algorithms used in the iteration process of the second adaptive filter model include: The ideal displacement calculation algorithm shown in formula (6) is as follows: Formula (6); The second adaptive algorithm shown in formula (13): Formula (13); Mechanical model parameters Including: b, a1, and a2.

[0121] The process of obtaining the mechanical model parameters based on the second adaptive filter model, such as Figure 6B As shown, it includes: S5031. Initialize the mechanical model parameters and the initial second step length sequence.

[0122] The initial mechanical model parameters are: The second step-length sequence initialized is .

[0123] S5022. Determine the ideal displacement based on the ideal displacement calculation algorithm.

[0124] In the first iteration, formula (6) can be written as: .

[0125] S5023. Determine the displacement error based on the ideal displacement and the actual displacement.

[0126] Displacement error It can be determined based on formula (20): Formula (20); exist If the displacement difference is greater than or equal to the threshold, execute S5034; If the displacement difference is less than the threshold, execute S5035.

[0127] In practical applications, the convergence condition for displacement is not limited to... The condition of being less than the displacement difference threshold may also include: the displacement difference being less than the displacement difference threshold over a period of time, the average power of the displacement difference being less than the second power threshold, and other convergence conditions determined based on the threshold.

[0128] S5034. Update the mechanical model parameters based on the second adaptive algorithm.

[0129] The initial mechanical model parameters are updated based on the second adaptive algorithm shown in formula (13) to obtain the updated mechanical model parameters.

[0130] After obtaining the updated mechanical model parameters, the value of n is incremented by 1, and S5032 to S5034 are repeated based on the updated mechanical model parameters.

[0131] S5035, Based on current mechanical model parameters Determine the final mechanical model parameters.

[0132] based on , , and , , and The relationship between them determines the parameters of the mechanical model. , , .

[0133] like Figure 7As shown, when the loudspeaker under test 701 receives an input excitation signal w(t), it generates a current response signal u(t), a current response signal i(t), and a displacement response signal x(t). The voltage response signal u(t) represents the change in voltage across the voice coil of the loudspeaker under test with time when w(t) is input; the current response signal i(t) represents the change in current flowing through the voice coil of the loudspeaker under test with time when w(t) is input; and the displacement response signal x(t) represents the change in vibration amplitude of the diaphragm of the loudspeaker under test with time when w(t) is input. The displacement response signal x(t) is measured at the nth acquisition time by the laser sensor 702, obtaining the displacement measurement value at the nth acquisition time. Similarly, the voltage response signal u(t) and the current response signal i(t) are measured at the nth acquisition time by the voltage and current sensors 703, obtaining the voltage and current measurement values ​​at the nth acquisition time. Thus, the acquired values ​​u(n), i(n), and x(n) are obtained.

[0134] Inputting i(n) into the first adaptive module 704 yields... and will The error function 705 is used to input x(n) to obtain the displacement error errx(n), and the decision to proceed with the next iteration is based on errx(n). If errx(n) is greater than or equal to the displacement difference threshold, the next iteration is executed. i(n+1) is input to the first adaptive module 704 to obtain errx(n+1). If errx(n+1) is greater than or equal to the displacement difference threshold, the next iteration continues until the displacement error is less than the displacement difference threshold. Here, in each iteration, the first adaptive module continuously adjusts the DC resistance, inductance, and force coefficient of the voice coil to obtain the measured values ​​of these parameters.

[0135] Inputting x(n) and i(n) into the second adaptive module 706 yields... and will The error function 707 is used to input u(n) to obtain the voltage error erru(n), and the decision to proceed with the next iteration is based on erru(n). If erru(n) is greater than or equal to the voltage difference threshold, the next iteration is executed. x(n+1) and i(n+1) are input to the second adaptive module 706 to obtain erru(n+1). If erru(n+1) is greater than or equal to the voltage difference threshold, the next iteration continues until the displacement error is less than the voltage difference threshold. Here, in each iteration, the second adaptive module continuously adjusts the equivalent mass, equivalent resistance, and equivalent force to obtain their measured values.

[0136] This application provides a measuring device 800, such as... Figure 8 As shown, the measuring device 800 includes: The estimation module 801 is used to determine the nth estimated value of the second parameter based at least on the acquired value of at least one first parameter of the loudspeaker under test at the nth or (n-1)th acquisition time, the nth reference value of the target parameter of the loudspeaker under test, and the (n-1)th estimated value of the second parameter of the loudspeaker under test; the second parameter includes any one of voltage, current, and displacement, and the first parameter is a parameter other than the second parameter among the voltage, the current, and the displacement; n is greater than 0 and less than N; The first determining module 802 is used to determine the (n+1)th reference value of the target parameter based on the nth predicted value of the second parameter and the nth reference value of the target parameter when the nth predicted value of the second parameter does not meet the convergence condition. The estimation module 801 is further configured to, if the nth estimated value of the second parameter does not meet the convergence condition, continue to determine the (n+1)th estimated value of the second parameter based on the acquired value of the at least one first parameter at the (n+1)th or nth acquisition time and the (n+1)th reference value of the target parameter, until the Nth estimated value of the second parameter meets the convergence condition. The second determining module 803 is used to determine the Nth reference value of the target parameter as the measured value of the target parameter.

[0137] In some embodiments, the device 800 further includes: an acquisition module, configured to acquire a voltage sequence, a current sequence, and a displacement sequence, wherein the voltage sequence is the acquisition result obtained by acquiring voltage at M times for the speaker under test, and the nth acquisition value of the voltage is the acquisition result at the nth time in the voltage sequence; the current sequence is the acquisition result obtained by acquiring current at the M times for the speaker under test, and the nth acquisition value of the current is the acquisition result at the nth time in the current sequence; and the displacement sequence is the acquisition result obtained by acquiring displacement at the M times for the speaker under test, and the nth acquisition value of the displacement is the acquisition result at the nth time in the displacement sequence.

[0138] In some embodiments, the estimation module 801 is further configured to: determine the nth estimated value of the voltage based on the first current, the second current, the first displacement, the second displacement, the (n-1)th estimated value of the voltage and the nth reference value of the DC resistance of the voice coil, the nth reference value of the voice coil inductance, and the nth reference value of the voice coil force coefficient, when the at least one first parameter includes: the displacement and the current, the second parameter includes: the voltage, the target parameter includes: the DC resistance of the voice coil, the inductance of the voice coil, and the force coefficient of the voice coil; the first current is the value collected at the nth sampling time of the current, the second current is the value collected at the (n-1)th sampling time of the current, the first displacement is the value collected at the nth sampling time of the displacement, and the second displacement is the value collected at the (n-1)th sampling time of the displacement.

[0139] In some embodiments, the device 800 further includes: a first determination module, configured to: Determine the voltage difference between the nth estimated value of the voltage and the acquired value of the voltage at the nth acquisition time; If the voltage difference is greater than or equal to the voltage difference threshold, it is determined that the nth estimated value of the voltage does not meet the voltage convergence condition. If the voltage difference is less than the voltage difference threshold, the nth estimated value of the voltage is determined to satisfy the voltage convergence condition.

[0140] In some embodiments, the first determining module 802 is further configured to: Based on the nth reference value of the DC resistance of the unit voice coil, the nth reference value of the inductance of the unit voice coil, the nth reference value of the force coefficient of the unit voice coil, the first step length, the second step length, the third step length, the voltage difference, and the nth estimated value of the voltage, the (n+1)th reference value of the DC resistance of the unit voice coil, the (n+1)th reference value of the inductance of the unit voice coil, and the (n+1)th reference value of the force coefficient of the unit voice coil are obtained. The first step length, the second step length, and the third step length are the step lengths corresponding to the DC resistance of the unit voice coil, the inductance of the unit voice coil, and the force coefficient of the unit voice coil, respectively.

[0141] In some embodiments, the estimation module 801 is further configured to, when the at least one first parameter includes the current, the second parameter includes the displacement, and the target parameters include equivalent mass, equivalent resistance, and equivalent force, determine the nth estimated value of the displacement based on the second current, the (n-1)th estimated value of the displacement, the (n-2)th estimated value of the displacement, the nth reference value of the equivalent mass, the nth reference value of the equivalent resistance, the nth reference value of the equivalent force, and the nth reference value of the force coefficient, wherein the second current is the acquired value of the current at the (n-1)th acquisition time.

[0142] In some embodiments, the estimation module 801 is further configured to determine the nth estimated value of the displacement based on the second current, the (n-1)th estimated value of the displacement, the (n-2)th estimated value of the displacement, and the nth reference value of the reference coefficient sequence, wherein the reference coefficient sequence includes a first coefficient, a second coefficient, and a third coefficient, wherein the first coefficient, the second coefficient, and the third coefficient are respectively represented by the target parameter.

[0143] In some embodiments, the device 800 further includes: a second determination module, configured to: Determine the displacement difference between the nth estimated value of the displacement and the acquired value of the displacement at the nth acquisition time; If the displacement difference is greater than or equal to the displacement difference threshold, it is determined that the nth estimated value of the displacement does not meet the displacement convergence condition. If the displacement difference is less than the displacement difference threshold, the nth estimated value of the displacement is determined to satisfy the displacement convergence condition.

[0144] In some embodiments, the first determining module 802 is further configured to obtain the (n+1)th reference value of the reference coefficient sequence based on the nth reference value of the reference coefficient sequence, the fourth step length, the fifth step length, the sixth step length, the displacement difference, and the nth estimated value of the displacement, wherein the fourth step length, the fifth step length, and the sixth step length are the step lengths corresponding to the first coefficient, the second coefficient, and the third coefficient, respectively.

[0145] In some embodiments, the second determining module 802 is further configured to: If the Nth estimated value of the displacement satisfies the convergence condition, the Nth reference value of the reference coefficient sequence is determined. Based on the Nth reference value of the reference coefficient sequence, the measured values ​​of the equivalent mass, equivalent resistance, equivalent force, and force coefficient are determined.

[0146] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0147] It should be noted that, in the embodiments of this application, if the above-described method for measuring speaker parameters is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.

[0148] Correspondingly, embodiments of this application provide an electronic device, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements the steps in the method for measuring speaker parameters provided in the above embodiments.

[0149] Correspondingly, embodiments of this application provide a storage medium, namely a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method for measuring speaker parameters provided in the above embodiments.

[0150] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0151] It should be noted that, Figure 9 This is a schematic diagram of a hardware entity of an electronic device according to an embodiment of this application, such as... Figure 9 As shown, the electronic device 900 includes: a processor 901, at least one communication bus 902, a user interface 903, at least one external communication interface 904, and a memory 905. The communication bus 902 is configured to enable communication between these components. The user interface 903 may include a display screen, and the external communication interface 904 may include standard wired and wireless interfaces.

[0152] The memory 905 is configured to store instructions and applications executable by the processor 901, and can also cache data to be processed or already processed by the processor 901 and various modules in the electronic device (e.g., image data, audio data, voice communication data and video communication data), which can be implemented by flash memory or random access memory (RAM).

[0153] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0154] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0155] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0156] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0157] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0158] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0159] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0160] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for measuring loudspeaker parameters, characterized in that, The method includes: The nth estimated value of the second parameter is determined based at least on the acquired value of at least one first parameter of the loudspeaker under test at the nth or n-1th acquisition time, the nth reference value of the target parameter of the loudspeaker under test, and the n-1th estimated value of the second parameter of the loudspeaker under test; the second parameter is any one of voltage, current, and displacement, and the first parameter is a parameter other than the second parameter among the voltage, the current, and the displacement; If the nth predicted value of the second parameter does not meet the convergence condition, the (n+1)th reference value of the target parameter is determined based on the nth predicted value of the second parameter and the nth reference value of the target parameter. Then, the (n+1)th predicted value of the second parameter is determined based on the acquisition value of the at least one first parameter at the (n+1)th or nth acquisition time and the (n+1)th reference value of the target parameter, until the Nth predicted value of the second parameter meets the convergence condition. The Nth reference value of the target parameter is then determined as the measured value of the target parameter, where n is greater than 0 and less than N. Specifically, the convergence condition is determined based on the nth predicted value of the second parameter and the nth collected value of the second parameter.

2. The method according to claim 1, characterized in that, The method further includes: A voltage sequence, a current sequence, and a displacement sequence are acquired. The voltage sequence is the result of voltage acquisition at M time points of the loudspeaker under test, where the nth voltage acquisition value is the acquisition result at the nth time point in the voltage sequence. The current sequence is the result of current acquisition at the M time points of the loudspeaker under test, where the nth current acquisition value is the acquisition result at the nth time point in the current sequence. The displacement sequence is the result of displacement acquisition at the M time points of the loudspeaker under test, where the nth displacement acquisition value is the acquisition result at the nth time point in the displacement sequence.

3. The method according to claim 1 or 2, characterized in that, The at least one first parameter includes: the displacement and the current; the second parameter includes: the voltage; and the target parameter includes: the DC resistance of the unit voice coil, the inductance of the unit voice coil, and the force coefficient of the unit voice coil. The determination of the nth estimated value of the second parameter, based at least on the acquired value of at least one first parameter of the loudspeaker under test at the nth acquisition time, the nth reference value of the target parameter of the loudspeaker under test, and the (n-1)th estimated value of the second parameter of the loudspeaker under test, includes: Based on the first current, the second current, the first displacement, the second displacement, the (n-1)th estimated value of the voltage, and the nth reference value of the DC resistance of the unit voice coil, the nth reference value of the inductance of the unit voice coil, and the nth reference value of the force coefficient of the unit voice coil, the nth estimated value of the voltage is determined. The first current is the value collected at the nth sampling time of the current, the second current is the value collected at the (n-1)th sampling time of the current, the first displacement is the value collected at the nth sampling time of the displacement, and the second displacement is the value collected at the (n-1)th sampling time of the displacement.

4. The method according to claim 3, characterized in that, The method further includes: Determine the voltage difference between the nth estimated value of the voltage and the acquired value of the voltage at the nth acquisition time; If the voltage difference is greater than or equal to the voltage difference threshold, it is determined that the nth estimated value of the voltage does not meet the voltage convergence condition. If the voltage difference is less than the voltage difference threshold, the nth estimated value of the voltage is determined to satisfy the voltage convergence condition.

5. The method according to claim 4, characterized in that, The step of determining the (n+1)th reference value of the target parameter based on the nth estimated value of the second parameter and the nth reference value of the target parameter includes: Based on the nth reference value of the DC resistance of the unit voice coil, the nth reference value of the inductance of the unit voice coil, the nth reference value of the force coefficient of the unit voice coil, the first step length, the second step length, the third step length, the voltage difference, and the nth estimated value of the voltage, the (n+1)th reference value of the DC resistance of the unit voice coil, the (n+1)th reference value of the inductance of the unit voice coil, and the (n+1)th reference value of the force coefficient of the unit voice coil are obtained. The first step length, the second step length, and the third step length are the step lengths corresponding to the DC resistance of the unit voice coil, the inductance of the unit voice coil, and the force coefficient of the unit voice coil, respectively.

6. The method according to claim 1 or 2, characterized in that, The at least one first parameter includes: the current; the second parameter includes: the displacement; the target parameter includes: equivalent mass, equivalent resistance, and equivalent force; determining the nth estimated value of the second parameter based at least on the acquired value of at least one first parameter of the loudspeaker under test at the (n-1)th acquisition time, the nth reference value of the target parameter of the loudspeaker under test, and the (n-1)th estimated value of the second parameter of the loudspeaker under test includes: Based on the second current, the (n-1)th estimated value of the displacement, the (n-2)th estimated value of the displacement, the nth reference value of the equivalent mass, the nth reference value of the equivalent resistance, the nth reference value of the equivalent force, and the nth reference value of the force coefficient, the nth estimated value of the displacement is determined, and the second current is the acquired value of the current at the (n-1)th acquisition time.

7. The method according to claim 6, characterized in that, The determination of the nth estimated value of the displacement based on the second current, the (n-1)th estimated value of the displacement, the (n-2)th estimated value of the displacement, the nth reference value of the equivalent mass, the nth reference value of the equivalent resistance, the nth reference value of the equivalent force, and the nth reference value of the force coefficient includes: Based on the second current, the (n-1)th estimated value of the displacement, the (n-2)th estimated value of the displacement, and the nth reference value of the reference coefficient sequence, the nth estimated value of the displacement is determined. The reference coefficient sequence includes a first coefficient, a second coefficient, and a third coefficient, which are respectively represented by the target parameter.

8. The method according to claim 7, characterized in that, The method further includes: Determine the displacement difference between the nth estimated value of the displacement and the acquired value of the displacement at the nth acquisition time; If the displacement difference is greater than or equal to the displacement difference threshold, it is determined that the nth estimated value of the displacement does not meet the displacement convergence condition. If the displacement difference is less than the displacement difference threshold, the nth estimated value of the displacement is determined to satisfy the displacement convergence condition.

9. The method according to claim 8, characterized in that, The step of determining the (n+1)th reference value of the target parameter based on the nth estimated value of the second parameter and the nth reference value of the target parameter includes: Based on the nth reference value, the fourth step size, the fifth step size, the sixth step size, the displacement difference, and the nth estimated value of the displacement, the (n+1)th reference value of the reference coefficient sequence is obtained, where the fourth step size, the fifth step size, and the sixth step size are the step sizes corresponding to the first coefficient, the second coefficient, and the third coefficient, respectively.

10. The method according to claim 9, characterized in that, The method further includes: If the Nth estimated value of the displacement satisfies the convergence condition, the Nth reference value of the reference coefficient sequence is determined. Based on the Nth reference value of the reference coefficient sequence, the measured values ​​of the equivalent mass, equivalent resistance, equivalent force, and force coefficient are determined.

11. A measuring device, characterized in that, The device includes: The estimation module is used to determine the nth estimated value of the second parameter based at least on the acquired value of at least one first parameter of the loudspeaker under test at the nth or (n-1)th acquisition time, the nth reference value of the target parameter of the loudspeaker under test, and the (n-1)th estimated value of the second parameter of the loudspeaker under test; the second parameter includes any one of voltage, current, and displacement, and the first parameter is a parameter other than the second parameter among the voltage, the current, and the displacement; n is greater than 0 and less than N; The first determining module is used to determine the (n+1)th reference value of the target parameter based on the nth predicted value of the second parameter and the nth reference value of the target parameter when the nth predicted value of the second parameter does not meet the convergence condition. The estimation module is further configured to, if the nth estimated value of the second parameter does not meet the convergence condition, continue to determine the (n+1)th estimated value of the second parameter based on the acquired value of the at least one first parameter at the (n+1)th or nth acquisition time and the (n+1)th reference value of the target parameter, until the Nth estimated value of the second parameter meets the convergence condition. The second determining module is used to determine the Nth reference value of the target parameter as the measured value of the target parameter; Specifically, the convergence condition is determined based on the nth predicted value of the second parameter and the nth collected value of the second parameter.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps in the method for measuring loudspeaker parameters as described in any one of claims 1 to 10.

13. A storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the method for measuring loudspeaker parameters as described in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Method and device for improving tone quality of loudspeaker

    CN112533115A