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

CN116939466BActive Publication Date: 2026-10-27WUHAN JUXIN MICROELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210346637.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2026-10-27
Estimated Expiration
2042-03-31

AI Technical Summary

Benefits of technology

[0015]本申请实施例所提供的测量扬声器参数的方法、装置、设备及存储介质,获得电流序列、位移序列和电压序列,所述电流序列为在M个采集时刻对所述待测扬声器的电流进行采集得到的采集结果,所述位移序列为在所述M个采集时刻对所述待测扬声器的位移进行采集得到的采集结果,所述电压序列为在所述M个采集时刻对所述待测扬声器的电压进行采集得到的采集结果;基于至少两个第一序列和第一模型,确定第一系数集合中各第一系数的测量值,所述第一序列为电流序列、位移序列和电压序列中任一一个,所述第一系数为第一模型参数所包括的单项式的系数,所述第一模型基于所述第一模型参数构建;基于至少两个第二序列、第二系数集合和第二模型,确定第三系数集合中各第三系数的测量值,所述第二序列为电流序列、位移序列和电压序列中任一一个,所述至少两个第一序列与所述至少两个第二序列不同,所述第二系数集合为所述第一系数集合的子集,所述第三系数为第三模型参数所包括的单项式的系数,所述第二模型基于所述第二系数集合中的第二系数所属的第一模型参数和所述第三模型参数构建;从而通过第一模型和第二模型,基于电流序列、电压序列和位移序列,准确地确定待测扬声器的模型参数,降低模型参数的测量复杂度,并提高模型参数的测量准确度,从而获得快速准确的获得扬声器的模型参数的测量值。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116939466B_ABST
    Figure CN116939466B_ABST
Patent Text Reader

Abstract

The application discloses a method and device for measuring speaker parameters, an equipment and a storage medium. A current sequence, a displacement sequence and a voltage sequence are obtained. Based on at least two first sequences and a first model, a measurement value of each first coefficient in a first coefficient set is determined. The first sequence is any one of the current sequence, the displacement sequence and the voltage sequence. The first coefficient is a coefficient of a single term included in a first model parameter. Based on at least two second sequences, a second coefficient set and a second model, a measurement value of each third coefficient in a third coefficient set is determined. The second sequence is any one of the current sequence, the displacement sequence and the voltage sequence. The at least two first sequences are different from the at least two second sequences. The second coefficient set is a subset of the first coefficient set. The third coefficient is a coefficient of a single term included in a third model parameter. The accuracy of the model parameter is improved.
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 and quickly and accurately determine the model parameters of the loudspeaker under test.

[0004] The technical solution of this application embodiment is implemented as follows:

[0005] This application provides a method for measuring loudspeaker parameters, the method comprising:

[0006] Obtain a current sequence, a displacement sequence, and a voltage sequence. The current sequence is the acquisition result obtained by collecting the current of the loudspeaker under test at M acquisition times. The displacement sequence is the acquisition result obtained by collecting the displacement of the loudspeaker under test at M acquisition times. The voltage sequence is the acquisition result obtained by collecting the voltage of the loudspeaker under test at M acquisition times.

[0007] Based on at least two first sequences and a first model, determine the measured value of each first coefficient in the first coefficient set, wherein the first sequence is any one of a current sequence, a displacement sequence, and a voltage sequence, and the first coefficient is the coefficient of the monomial included in the first model parameters, and the first model is constructed based on the first model parameters;

[0008] Based on at least two second sequences, a second set of coefficients, and a second model, the measured values ​​of each third coefficient in the third set of coefficients are determined. The second sequence is any one of a current sequence, a displacement sequence, and a voltage sequence. The at least two first sequences are different from the at least two second sequences. The second set of coefficients is a subset of the first set of coefficients. The third coefficients are the coefficients of the monomials included in the third model parameters. The second model is constructed based on the first model parameters to which the second coefficients in the second set belong and the third model parameters.

[0009] This application provides a measuring device, the device comprising:

[0010] The acquisition module is used to acquire a current sequence, a displacement sequence, and a voltage sequence. The current sequence is the acquisition result obtained by acquiring the current of the speaker under test at M acquisition times. The displacement sequence is the acquisition result obtained by acquiring the displacement of the speaker under test at M acquisition times. The voltage sequence is the acquisition result obtained by acquiring the voltage of the speaker under test at M acquisition times.

[0011] The first determining module is used to determine the measured value of each first coefficient in the first coefficient set based on at least two first sequences and a first model. The first coefficient set includes at least one first coefficient, the first sequence is any one of a current sequence, a displacement sequence, and a voltage sequence, the first coefficient is the coefficient of the monomial included in the first model parameters, and the first model is constructed based on the first model parameters.

[0012] The second determining module is used to determine the measured value of each third coefficient in the third coefficient set based on at least two second sequences, a second coefficient set, and a second model. The second sequence is any one of a current sequence, a displacement sequence, and a voltage sequence. The at least two first sequences are different from the at least two second sequences. The second coefficient set is a subset of the first coefficient set. The third coefficient is the coefficient of the monomial included in the third model parameters. The second model is constructed based on the first model parameters to which the second coefficients in the second coefficient set belong and the third model parameters.

[0013] 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 described above for measuring speaker parameters.

[0014] 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.

[0015] The method, apparatus, device, and storage medium for measuring loudspeaker parameters provided in this application embodiment obtain a current sequence, a displacement sequence, and a voltage sequence. The current sequence is the result of collecting current data from the loudspeaker under test at M acquisition times; the displacement sequence is the result of collecting displacement data from the loudspeaker under test at the M acquisition times; and the voltage sequence is the result of collecting voltage data from the loudspeaker under test at the M acquisition times. Based on at least two first sequences and a first model, the measured values ​​of each first coefficient in a first coefficient set are determined. The first sequence is any one of the current sequence, displacement sequence, and voltage sequence; the first coefficient is the coefficient of the monomial included in the first model parameters; and the first model is constructed based on the first model parameters. The system comprises a second sequence, a second set of coefficients, and a second model. It determines the measured values ​​of each third coefficient in the third set of coefficients. The second sequence is any one of a current sequence, a displacement sequence, and a voltage sequence. The at least two first sequences are different from the at least two second sequences. The second set of coefficients is a subset of the first set of coefficients. The third coefficients are the coefficients of the monomials included in the third model parameters. The second model is constructed based on the first model parameters to which the second coefficients in the second set belong and the third model parameters. Thus, by using the first and second models, based on the current sequence, voltage sequence, and displacement sequence, the model parameters of the loudspeaker under test are accurately determined, reducing the measurement complexity of the model parameters and improving the measurement accuracy of the model parameters, thereby obtaining fast and accurate measured values ​​of the loudspeaker's model parameters. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of an optional structure of a loudspeaker according to an embodiment of this application;

[0017] Figure 2 This is a schematic flowchart of an optional method for measuring loudspeaker parameters according to an embodiment of this application;

[0018] Figure 3 This is a schematic diagram of an optional architecture of the measurement system according to an embodiment of this application;

[0019] Figure 4 This is a schematic flowchart of an optional method for measuring loudspeaker parameters according to an embodiment of this application;

[0020] Figure 5 This is a schematic flowchart of an optional method for measuring loudspeaker parameters according to an embodiment of this application;

[0021] Figure 6 This is a schematic flowchart of an optional method for measuring loudspeaker parameters according to an embodiment of this application;

[0022] Figure 7This is a schematic flowchart of an optional method for measuring loudspeaker parameters according to an embodiment of this application;

[0023] Figure 8 This is a schematic flowchart of an optional method for measuring loudspeaker parameters according to an embodiment of this application;

[0024] Figure 9 This is a schematic flowchart of an optional method for measuring loudspeaker parameters according to an embodiment of this application;

[0025] Figure 10 This is a schematic flowchart of an optional method for measuring loudspeaker parameters according to an embodiment of this application;

[0026] Figure 11 This is a schematic diagram of an optional structure of the measuring device according to an embodiment of this application;

[0027] Figure 12 This is a schematic diagram of an optional structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0028] 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.

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

[0030] 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.

[0031] 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.

[0032] 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 the actual collected values ​​of the current flowing through the voice coil of the loudspeaker unit, the voltage between the two turns of the voice coil, and the vibration displacement of the diaphragm.

[0033] In this embodiment, the model parameters of the loudspeaker under test include linear parameters and nonlinear parameters. The linear parameters are fixed model parameters, such as: the DC resistance Re of the unit voice coil, and the equivalent mass M of the vibration system. ms Linear parameters can be represented by monomials; nonlinear model parameters are model parameters based on changes in displacement or velocity of the vibration system, such as: unit voice coil inductance Le, unit voice coil force coefficient Bl, and equivalent resistance R. ms Equivalent K ms Nonlinear parameters can be represented by polynomials that include multiple monomials.

[0034] Le is expressed as Le(x) by formula (1):

[0035] Le(x) = l0 + l1x + l2x 2 +l3x 3 +l4x 4 +...Formula (1);

[0036] l0, l1, l2, l3, l4, etc., are the coefficients of each monomial included in Le(x), and the magnitude of Le(x) changes with the displacement x. Among them, l0 is the coefficient of the monomial of the linear part of Le(x), and l1, l2, l3, l4, etc. are the coefficients of the monomial of the nonlinear part of Le(x), where x represents the displacement of the vibration system.

[0037] Bl can be expressed as Bl(x) by formula (2):

[0038] Bl(x) = b0 + b1x + b2x 2 +b3x 3 +b4x 4 +...Formula (2);

[0039] b0, b1, b2, b3, b4, etc., are the coefficients of each monomial included in Bl(x), and the magnitude of Bl(x) changes with the displacement x. Among them, b0 is the coefficient of the monomial of the linear part of Bl(x), and b1, b2, b3, b4, etc. are the coefficients of the monomial of the nonlinear part of Bl(x).

[0040] R ms R can be expressed as Equation (3) ms (v):

[0041] Rms (v)=r0+r1v+r2v 2 +r3v 3 +r4v 4 +...Formula (3);

[0042] r0, r1, r2, r3, r4, etc., are R ms (v) The coefficients of each monomial included, R ms The magnitude of (v) changes with the displacement v. Where r0 is R ms The coefficients of the monomials of the linear part of (v), r1, r2, r3, r4, etc., are R. ms The coefficients of the monomial of the nonlinear part of (v), where v represents the acceleration of the vibrating system.

[0043] K ms K can be expressed as K using formula (4) ms (x):

[0044] K ms (x)=k0+k1x+k2x 2 +k3x 3 +k4x 4 +...Formula (4);

[0045] k0, k1, k2, k3, k4, etc., are K ms The coefficients of each monomial included in (x), K ms The magnitude of (x) changes with the displacement x. Where k0 is K ms The coefficients of the monomials of the linear part of (x), k1, k2, k3, k4, etc., are K. ms The coefficients of the monomial of the nonlinear part of (x).

[0046] In practical applications, the mathematical model of a loudspeaker varies with the magnitude of the input signal. Under small signals, the loudspeaker amplitude is small, i.e., x is small, and the loudspeaker is approximately a linear system; however, under large signals, the loudspeaker amplitude increases, and the nonlinearity caused by x cannot be ignored, so the loudspeaker can be represented as a nonlinear system.

[0047] The method for measuring loudspeaker parameters provided in this application embodiment can measure the coefficients of each monomial in the monomial included in the model parameters of the loudspeaker under test, thereby obtaining the measured values ​​of the linear and nonlinear parameters of the loudspeaker under test.

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

[0049] The method for measuring loudspeaker parameters provided in the embodiments of this application, such as Figure 2 As shown, it includes:

[0050] S201. The electronic device obtains a current sequence, a displacement sequence, and a voltage sequence. The current sequence is the acquisition result obtained by acquiring the current of the speaker under test at M acquisition times. The displacement sequence is the acquisition result obtained by acquiring the displacement of the speaker under test at M acquisition times. The voltage sequence is the acquisition result obtained by acquiring the voltage of the speaker under test at M acquisition times.

[0051] S202. The electronic device determines the measured value of each first coefficient in a first coefficient set based on at least two first sequences and a first model. The first sequence is any one of a current sequence, a displacement sequence, and a voltage sequence. The first coefficient is the coefficient of the monomial included in the first model parameters. The first model is constructed based on the first model parameters.

[0052] S203. An electronic device determines the measured value of each third coefficient in a third coefficient set based on at least two second sequences, a second coefficient set, and a second model. The second sequence is any one of a current sequence, a displacement sequence, and a voltage sequence. The at least two first sequences are different from the at least two second sequences. The second coefficient set is a subset of the first coefficient set. The third coefficients are the coefficients of the monomials included in the third model parameters. The second model is constructed based on the first model parameters to which the second coefficients in the second coefficient set belong and the third model parameters.

[0053] Understandably, the value of M is greater than 2.

[0054] 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.

[0055] In this embodiment, when the loudspeaker under test is given 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 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, to obtain the acquired values ​​u(n) of voltage, i(n) of current, and x(n) of displacement at the nth acquisition time. The acquired values ​​of current at M acquisition times constitute a current sequence, the acquired values ​​of voltage at M acquisition times constitute a voltage sequence, and the acquired values ​​of displacement at M acquisition times constitute a displacement sequence.

[0056] In this embodiment of the application, the electronic device obtains the voltage sequence, current sequence, and displacement sequence in one of the following ways:

[0057] Method 1: Electronic devices are used as measuring devices to measure voltage sequences, current sequences, and displacement sequences;

[0058] Method 2: Electronic devices obtain voltage, current, and displacement sequences from measuring devices.

[0059] Here, the measuring device directly receives the acquired values ​​from the sensors obtained by sensing the voltage response signal, current response signal, and displacement response signal of the speaker under test. 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.

[0060] When the electronic device obtains the voltage sequence, current sequence, and displacement sequence in mode 1, the electronic device, as a measuring device, collects the voltage, current, and displacement of the unit voice coil of the loudspeaker under test, as well as the displacement of the unit diaphragm, 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 loudspeaker under test, and the voltage, current, and displacement of the unit voice coil collected at the nth collection time are the collected values ​​of voltage, current, and displacement at the nth collection time, respectively. When the electronic device obtains the voltage sequence, current sequence, and displacement sequence in mode 2, the electronic device further performs the following steps: acquiring the voltage sequence, current sequence, and 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; 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.

[0061] 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. After receiving an information acquisition request from the electronic device, the measuring device may actively send 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.

[0062] The relationship between electronic equipment and measuring equipment, such as Figure 3 As shown, the electronic device 301 and the measuring device 302 can communicate with each other. The measuring device 302 measures the speaker 303 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 301.

[0063] In the embodiments of this application, such as Figure 4 As shown, after obtaining the current sequence, voltage sequence and displacement sequence, the electronic device uses at least two first sequences as the values ​​of known parameters of the first model 41 to obtain the first coefficient set; after obtaining the first coefficient set, the electronic device uses a subset of the first coefficient set, namely the second coefficient set and at least two second sequences as the values ​​of known parameters of the second model 42 to obtain the third coefficient set.

[0064] In this embodiment, at least two first sequences and at least two second sequences are different. In one example, the at least two first sequences include a current sequence, a voltage sequence, and a displacement sequence, and the at least two second sequences include a current sequence and a displacement sequence. In another example, the at least two first sequences include a voltage sequence and a displacement sequence, and the at least two second sequences include a current sequence and a voltage sequence. In yet another example, the at least two first sequences include a current sequence and a voltage sequence, and the at least two second sequences include a current sequence and a displacement sequence.

[0065] In this embodiment of the application, the first model may include at least one of the following:

[0066] Model A1 is an electrical model constructed based on the electrical relationships of a loudspeaker.

[0067] Model A2, a mechanical model constructed based on the mechanical relationships of the loudspeaker;

[0068] Model A3 is an impedance model constructed based on the electrical and mechanical relationships of the loudspeaker.

[0069] The second model may include at least one of the following:

[0070] Model B1 is an electrical model constructed based on the electrical relationships of a loudspeaker.

[0071] Model B2 is a mechanical model based on the electrical relationship of the loudspeaker.

[0072] The electrical relationship of the loudspeaker can be expressed as formula (5):

[0073] u=Re*i+Le*di / dt+Bl*dx / dt formula (5);

[0074] The mechanical relationship of the loudspeaker can be expressed by formula (6):

[0075] Bl*i=M ms *dx 2 / d 2 t+R ms *dx / dt+K ms *x Formula (6);

[0076] Where u represents voltage, i represents current, and x represents displacement.

[0077] In this embodiment of the application, the electrical model of the S domain shown in formula (7) can be determined based on the electrical relationship of the loudspeaker shown in formula (1).

[0078] u(s)=Re*i(s)+s*Le(s)*i(s)+Bl*s*x(s) Formula (7).

[0079] Based on the electrical relationship of the loudspeaker shown in formula (1) and the mechanical relationship shown in formula (2), the impedance model of the S-domain shown in formula (8) can be determined:

[0080]

[0081] i(s) is the voltage across the voice coil of the unit; x(s) is the vibration displacement of the diaphragm of the unit; s is a complex variable in the S-domain.

[0082] In this embodiment of the application, the electrical model of the S-domain shown in formula (9), i.e., the analog electrical model, can be determined based on the electrical relationship of the loudspeaker shown in formula (2):

[0083] Bl*i(s)=[M ms *s 2 +R ms *s+K ms Formula (9) for x(s)

[0084] Formula (9) can also be expressed as the current-displacement transfer function shown in Formula (10):

[0085]

[0086] The electronic device obtains a first set of coefficients based on at least two first sequences and a first model, and a third set of coefficients based on at least two second sequences. The first set of coefficients and the third set of coefficients may or may not intersect.

[0087] In one example, the first set of coefficients includes the following first coefficients: the coefficients of the monomials of Re, Le, and Bl; the second set of coefficients includes the following second coefficients: R ms The coefficient of the monomial, K ms The coefficient of the monomial, M ms .

[0088] In one example, the first set of coefficients includes the following first coefficients: the coefficients of the monomials of Re, the coefficients of the monomials of Le, the coefficients of the monomials of the linear part of Bl, and R. ms The coefficients of the monomials of the linear part, K ms The coefficients of the linear part of the monomial, M ms The coefficients of the monomial of the linear part of Bl; the second set of coefficients includes the following second coefficients: the coefficients of the monomial of the nonlinear part of Bl, R ms The coefficients of the monomial in the nonlinear part, K ms The coefficients of the monomial of the nonlinear part.

[0089] In one example, the first set of coefficients includes the following first coefficients: the coefficients of the monomials of Re, the coefficients of the monomials of Le, the coefficients of the monomials of the linear part of Bl, and R. ms The coefficients of the monomials of the linear part, K ms The coefficients of the linear part of the monomial, M ms The coefficients of the monomials of the linear part; the second set of coefficients includes the following second coefficients: the coefficients of the monomials of Bl, R ms The coefficients of the monomial in the nonlinear part, K ms The coefficients of the monomial of the nonlinear part.

[0090] The method, apparatus, device, and storage medium for measuring loudspeaker parameters provided in this application embodiment obtain a current sequence, a displacement sequence, and a voltage sequence. The current sequence is the result of collecting current data from the loudspeaker under test at M acquisition times; the displacement sequence is the result of collecting displacement data from the loudspeaker under test at the M acquisition times; and the voltage sequence is the result of collecting voltage data from the loudspeaker under test at the M acquisition times. Based on at least two first sequences and a first model, the measured values ​​of each first coefficient in a first coefficient set are determined. The first sequence is any one of the current sequence, displacement sequence, and voltage sequence; the first coefficient is the coefficient of the monomial included in the first model parameters; and the first model is constructed based on the first model parameters. The system comprises a second sequence, a second set of coefficients, and a second model. It determines the measured values ​​of each third coefficient in the third set of coefficients. The second sequence is any one of a current sequence, a displacement sequence, and a voltage sequence. The at least two first sequences are different from the at least two second sequences. The second set of coefficients is a subset of the first set of coefficients. The third coefficients are the coefficients of the monomials included in the third model parameters. The second model is constructed based on the first model parameters to which the second coefficients in the second set belong and the third model parameters. Thus, by using the first and second models, based on the current sequence, voltage sequence, and displacement sequence, the model parameters of the loudspeaker under test are accurately determined, reducing the measurement complexity of the model parameters and improving the measurement accuracy of the model parameters, thereby obtaining fast and accurate measured values ​​of the loudspeaker's model parameters.

[0091] The method for measuring loudspeaker parameters provided in this application can be implemented as at least the following scheme one and scheme two:

[0092] Option 1

[0093] In Scheme 1, the at least two first sequences include: the current sequence, the voltage sequence, and the displacement sequence. S202, based on the at least two first sequences and the first model, determining the measured values ​​of each first coefficient in the first coefficient set may include the following steps:

[0094] Based on the current sequence, the voltage sequence, and the displacement sequence, a first parameter matrix sequence and a second parameter matrix sequence are constructed. The first parameter matrix sequence includes at least two first parameter matrices, and the second parameter matrix sequence includes at least two second parameter matrices. The nth first parameter matrix and the third parameter matrix in the first parameter matrix sequence are used to determine the nth second parameter matrix in the second parameter matrix sequence. The elements of the third parameter matrix include first coefficients from the first coefficient set, and n is greater than 0. A first relationship exists between the first parameter matrix, the second parameter matrix, and the third parameter matrix. This first relationship is constructed based on a first model. The first model is constructed based on the electrical relationships of a loudspeaker. The values ​​of each element in the third parameter matrix that matches the first parameter matrix sequence and the second parameter matrix sequence are determined to obtain the measured values ​​of each first coefficient in the first coefficient set.

[0095] In this embodiment of the application, the first parameter matrix sequence includes at least two first parameter matrices A1, namely: A11, A12, ..., A1 N1 The sequence of first parameter matrices contains N first parameter matrices. The sequence of second parameter matrices includes at least two second parameter matrices B1, namely: B11, B12, ..., B1 N1 The second parameter matrix sequence contains N1 second parameter matrices, with a maximum value of M. The first parameter matrix A1 and the second parameter matrix B1 in the first parameter matrix sequence are constructed using voltage, current, and displacement sequences. The third parameter matrix X1 is solved using N1 A1s and N1 B1s, yielding the values ​​of each element in X1, which are the measured values ​​of each first coefficient in the first coefficient set. Here, M is greater than or equal to the number of elements in X1.

[0096] Here, the third parameter matrix is ​​denoted as X1, and the elements in X1 include the first coefficients included in the first coefficient set. The nth first parameter matrix, the third parameter matrix, and the nth second parameter matrix can be represented by formula (11):

[0097] A1 n *X1=B1 n Formula (11);

[0098] Among them, A1 n For the nth A1 and B1 out of N1 A1s n Let B1 be the nth B1 among N1 B1s, where n can be 1 to N1.

[0099] In this embodiment, the second parameter matrix is ​​the product of the first parameter matrix and the third parameter matrix. Since the second parameter matrix is ​​a 1x1 matrix, the first parameter matrix is ​​a 1xH1 matrix, and the third parameter matrix is ​​an H1x1 matrix. Here, H1 represents the number of first coefficients included in the first coefficient set, which is also the number of elements included in the third parameter matrix. Therefore, the sequence of first parameter matrices can be represented as an N1xH1 matrix, and the sequence of second parameter matrices can be represented as an N1x1 matrix.

[0100] In practical applications, formula (11) can be modified, for example: swapping A1 n And the position of X1, here, A1 n The elements in X1 remain unchanged, and only the matrices in formula (11) are transposed. At this time, the first parameter matrix is ​​a matrix of H1*1 and the third parameter matrix is ​​a matrix of 1*H1.

[0101] In this embodiment of the application, formula (11) is determined based on a first relation, which can be constructed based on the electrical model shown in formula (7).

[0102] In one example, the first relationship can be represented as shown in formula (12):

[0103]

[0104] u(n) represents the acquired value at the nth acquisition time in the voltage sequence, u(n-1) represents the acquired value at the (n-1)th acquisition time in the voltage sequence, i(n) represents the acquired value at the nth acquisition time in the current sequence, i(n-1) represents the acquired value at the (n-1)th acquisition time in the current sequence, x(n) represents the acquired value at the nth acquisition time in the displacement sequence, x(n-1) represents the acquired value at the (n-1)th acquisition time in the displacement sequence, T s This refers to the data collection cycle.

[0105] In some embodiments, constructing a first parameter matrix sequence and a second parameter matrix sequence based on the current sequence, the voltage sequence, and the displacement sequence includes:

[0106] For the nth first parameter matrix in the first parameter matrix sequence, the nth first parameter matrix is ​​obtained based on the acquired values ​​at the nth and (n-1)th acquisition times in the current sequence, and the acquired values ​​at the nth and (n+1)th acquisition times in the displacement sequence; for the nth second parameter matrix in the second parameter matrix sequence, the nth second parameter matrix is ​​obtained based on the acquired values ​​at the nth and (n-1)th acquisition times in the voltage sequence.

[0107] In this embodiment of the application, when the first relationship is as shown in formula (12), and the nth first parameter matrix, the second parameter matrix, and the nth third parameter matrix are represented by formula (11), B1 n It can be represented as B1 n =[u(n)+u(n-1)], A1 n It can be represented as A1 n It can also be expressed as: Among them, A1 n The number of elements in the set can be adjusted according to the number of the first coefficients in the first coefficient set.

[0108] At this time, the first set of coefficients includes: the coefficients of the monomial included in the DC resistance Re of the unit voice coil, the coefficients of the monomial included in the inductance Le(x(n)) of the unit voice coil, and the coefficients of the monomial included in the force coefficient Bl(x(n)), wherein Le(x(n)) changes based on the change of x(n), Bl(x(n)) changes based on the change of x(n), and x(n) is the acquired value at the nth acquisition time in the displacement sequence.

[0109] Here, the first set of coefficients includes the coefficients of the monomials of the linear parameter Re, the coefficients of the monomials of the nonlinear parameter Le(x(n)), and the coefficients of the monomials of the nonlinear parameter Bl(x(n)). Since Re is a linear parameter, the coefficients of the monomials of Re calculated from the first set of coefficients represent the values ​​of Re.

[0110] In this embodiment of the application, the number of coefficients of the monomials of Le(x(n)) included in the first coefficient set is a first quantity, and the number of coefficients of the monomials of Bl(x(n)) included in the first coefficient set is a second quantity. The first quantity is greater than 1, the second quantity is greater than 1, and the first quantity and the second quantity are independent.

[0111] A1 n In this context, [i(n) + i(n-1)] corresponds to the coefficient of the monomial of Re, which has... The elements correspond to the coefficients of the monomials of Le(x(n)), and have The elements correspond to the coefficients of the monomials of Bl(x(n)). Therefore, A1 n In the middle, having The number of elements in the first coefficient set is the same as the number of coefficients of the monomials of Le(x(n)), which is the first quantity. The number of elements in the second quantity is the same as the number of coefficients of the monomial of Bl(x(n)) in the first coefficient set.

[0112] In one example, if the first quantity is 3 and the second quantity is 3, then the first set of coefficients includes the following coefficients of the monomials of Le(x(n)): l0, l1, l2, and the following coefficients of the monomials of Bl(x(n)): b0, b1, b2. In this case, X1 = [Re, l0, l1, l2, b0, b1, b2]. T .at this time,

[0113] In one example, the first quantity is 5, the second quantity is 5, and the first set of coefficients includes the following coefficients of the monomials of Le(x(n)): l0, l1, l2, l3, l4, and the following coefficients of the monomials of Bl(x(n)): b0, b1, b2, b3, b4. In this case, X1 = [Re, l0, l1, l2, l3, l4, b0, b1, b2, b3, b4]. T .at this time,

[0114] In Scheme 1, the at least two second sequences include the current sequence and the displacement sequence. S203, based on the at least two second sequences, the second coefficient set, and the second model, determining the measured values ​​of each third coefficient in the third coefficient set may include the following steps:

[0115] Based on the current sequence, the displacement sequence, and the second set of coefficients, a fourth parameter matrix sequence and a fifth parameter matrix sequence are constructed. The fourth parameter matrix sequence includes at least two fourth parameter matrices, and the fifth parameter matrix sequence includes at least two fifth parameter matrices. The nth fourth parameter matrix and the sixth parameter matrix in the fourth parameter matrix sequence are used to determine the nth fifth parameter matrix in the fifth parameter matrix sequence. The elements of the sixth parameter matrix include each third coefficient from the third set of coefficients, where n is greater than 0. A second relationship exists between the fourth parameter matrix, the fifth matrix, and the sixth parameter matrix. This second relationship is constructed based on a second model, which is based on the mechanical relationships of the loudspeaker.

[0116] The values ​​of each element in the sixth parameter matrix that matches the fourth parameter matrix sequence and the fifth parameter matrix sequence are determined to obtain the measured values ​​of each third coefficient in the third coefficient set.

[0117] In this embodiment, the fourth parameter matrix sequence includes at least two fourth parameter matrices A2, namely: A21, A22, ..., A2 N2 The sequence of fourth parameter matrices contains N² fourth parameter matrices. The sequence of fifth parameter matrices includes at least two fifth parameter matrices B², namely: B²₁, B²₂, ..., B²₂. N2The number of fifth parameter matrices in the fifth parameter matrix sequence is N², where N² has a maximum value of M. The fourth parameter matrix A² in the fourth parameter matrix sequence and the fifth parameter matrix B² in the fifth parameter matrix sequence are constructed using current and displacement sequences. The sixth parameter matrix X² is solved using N² A² and N² B² matrices to obtain the values ​​of each element in X², which are the measured values ​​of each third coefficient in the third coefficient set. Here, M is greater than or equal to the number of elements included in X².

[0118] Here, the sixth parameter matrix is ​​denoted as X2, and the elements of X2 include the third coefficients from the third coefficient set. The nth fourth parameter matrix, the sixth parameter matrix, and the nth fifth parameter matrix can be represented by formula (13):

[0119] A2 n *X2=B2 n Formula (13);

[0120] Among them, A2 n B2 is the nth A2 out of N2 A2s. n It is the nth B2 among N2 B2, where n can take values ​​from 1 to N2.

[0121] In this embodiment, the fifth parameter matrix is ​​the product of the fourth and sixth parameter matrices. Since the fifth parameter matrix is ​​a 1x1 matrix, the fourth parameter matrix is ​​a 1xH2 matrix, and the sixth parameter matrix is ​​an H2x1 matrix. Here, H2 represents the number of third coefficients included in the third coefficient set, which is also the number of elements included in the sixth parameter matrix. Therefore, the sequence of fourth parameter matrices can be represented as an N2xH2 matrix, and the sequence of fifth parameter matrices can be represented as an N2x1 matrix.

[0122] In practical applications, formula (13) can be modified, for example: swapping A2 n And the position of X2, here, A2 n The elements in X2 remain unchanged, and only the matrices in formula (13) are transposed. At this time, the fourth parameter matrix is ​​a matrix of H2*1 and the sixth parameter matrix is ​​a matrix of 1*H2.

[0123] In this embodiment of the application, formula (13) is determined based on the second relationship, which can be constructed based on the mechanical model shown in formula (9).

[0124] In one example, the second relationship can be represented as shown in formula (14):

[0125] Bl(x(n))*i(n)-M ms *a(n)=R ms (v(n))*v(n)+Kms (x(n))*x(n) Formula (14).

[0126] Here, B2 n Constructed based on a second set of coefficients, a current sequence, and a displacement sequence, wherein the second set of coefficients is a subset of the first set of coefficients.

[0127] In some embodiments, constructing the fourth parameter matrix sequence and the fifth parameter matrix sequence based on the current sequence, the displacement sequence, and the second set of coefficients includes:

[0128] For the nth fourth parameter matrix in the fourth parameter matrix sequence, the nth fourth parameter matrix is ​​obtained based on the acquired values ​​at the nth and (n-1)th acquisition times in the displacement sequence, where n is greater than 0; for the nth fifth parameter matrix in the fifth parameter matrix sequence, the nth fifth parameter matrix is ​​obtained based on the acquired values ​​at the nth and (n-1)th acquisition times in the current sequence, the acquired values ​​at the nth and (n-1)th acquisition times in the displacement sequence, and the second coefficient set.

[0129] In this embodiment of the application, the second relationship is as shown in formula (14), and when the nth fourth parameter matrix, the fifth parameter matrix, and the nth sixth parameter matrix are represented by formula (13), B2 n It can be represented as B2 n =Bl(x(n))*i(n)-M ms *a(n), where,

[0130] A2 n It can be represented as A2 n =[v(n),v(n)] 2 ,v(n) 3 ,x(n),x(n) 2 ,x(n) 3 ], can also be represented as: A2 n =[v(n),v(n)] 2 ,v(n) 3 ,v(n) 4 ,v(n) 5 ,x(n),x(n) 2 ,x(n) 3 ,x(n) 4 ,x(n) 5 ]. Among them, A2 n The orders of v(n) and x(n) can be adjusted according to the number of third coefficients in the third coefficient set, where,

[0131] Here, the second set of coefficients includes the coefficients of the monomials included in Bl(x(n)), which varies based on the variation of x(n), where x(n) is the acquired value at the nth acquisition time in the displacement sequence.

[0132] At this point, the third set of coefficients includes: equivalent resistance R ms The coefficients of the monomials included in (v(n)) and the equivalent force k ms The coefficients of the monomials included in (x(n)), where R ms (v(n)) changes based on the change of v(n), and the k ms (x(n)) changes based on the change of x(n), where x(n) is the acquired value at the nth acquisition time in the displacement sequence, and v(n) is the velocity at the nth acquisition time determined based on x(n).

[0133] Here, the third set of coefficients includes: the nonlinear parameter R ms The coefficients of the monomial of (v(n)) and the nonlinear parameter k ms The coefficients of the monomials of (x(n)). Among them, the third set of coefficients includes R. ms The number of coefficients in the monomials of (v(n)) is the third quantity, and the set of third coefficients includes k ms The number of coefficients of the monomials of (x(n)) is the fourth quantity. The third quantity is greater than 1, the fourth quantity is greater than 1, and the third and fourth quantities are independent.

[0134] A2 n In the equation, the element with v(n) corresponds to R. ms The coefficients of the monomial of (v(n)) have elements corresponding to k in x(n). ms The coefficient of the monomial of (x(n)), therefore, A2 n In the set R, the elements with v(n) are related to the third coefficient set. ms The number of coefficients of the monomials of (v(n)) is the same as that of the third quantity, and the elements of x(n) are k in the third coefficient set. ms The number of coefficients of the monomials of (x(n)) is the same, which is the fourth quantity.

[0135] In one example, the third quantity is 4, the fourth quantity is 4, then X2 = [r0,r1,r2,r3,r4,k0,k1,k2,k3,k4] T At this time, A2 n =[v(n),v(n)] 2 ,v(n) 3 ,v(n) 4,x(n),x(n) 2 ,x(n) 3 ,x(n) 4 ].

[0136] In one example, the third quantity is 5, the fourth quantity is 5, then X2 = [r0,r1,r2,r3,r4,r5,k0,k1,k2,k3,k4,k5,] T At this time, A2 n =[v(n),v(n)] 2 ,v(n) 3 ,v(n) 4 ,v(n) 5 ,x(n),x(n) 2 ,x(n) 3 ,x(n) 4 ,x(n) 5 ].

[0137] In the method for measuring loudspeaker parameters provided in this application embodiment, the first relationship constructed by the first model and the second relationship constructed by the second model are respectively expressed as AX = B, and X is determined based on multiple A and multiple B with corresponding relationships, thereby obtaining the coefficients of each monomial of the model parameters of the loudspeaker under test, so as to obtain the measured value of the nonlinear model parameters of the loudspeaker under test.

[0138] Option 2

[0139] In Scheme 2, the at least two first sequences include: the current sequence, the voltage sequence, and the displacement sequence. S202, based on the at least two first sequences and the first model, determining the measured values ​​of each first coefficient in the first coefficient set may include the following steps:

[0140] 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 each first coefficient in the first coefficient set, and the (n-1)th estimated value of the second parameter, the nth 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 voltage, current, and displacement; the relationship between the at least one first parameter and the second parameter is constructed based on the first model; if the nth estimated value of the second parameter does not meet the convergence condition, for each first coefficient, based on the nth estimated value of the second parameter and the nth reference value of the first coefficient, the (n+1)th reference value of the first coefficient is determined, and the (n+1)th estimated value of the second parameter is determined based on the acquired value of the at least one first parameter at the (n+1)th or nth time and the (n+1)th reference value of each first coefficient in the first coefficient set, until the Nth estimated value of the second parameter meets the convergence condition, and the Nth reference value of the first coefficient is determined as the measured value of the first coefficient, where n is greater than 0 and less than N.

[0141] In Scheme 2, the electronic device calculates the first coefficient in the first coefficient set through multiple iterations. The first coefficient in the first coefficient set may include: the monomial coefficient of the DC resistance Re of the unit voice coil, the monomial coefficient of the linear portion of the inductance Le(x(n)) of the unit voice coil, the monomial coefficient of the linear portion of the force coefficient Bl(x(n)) of the unit voice coil, and the equivalent mass M. ms The coefficients of the monomials, the equivalent resistance R ms The coefficients of the monomials of the linear part of (v(n)), and the equivalent force k ms One or more of the coefficients of the monomial of the linear part of (x(n)).

[0142] 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 each first coefficient in the first coefficient set. If the nth estimated value of the second parameter does not meet the convergence condition, the nth reference value of each first coefficient is updated based on the nth estimated value of the second parameter to obtain the (n+1)th reference value of each first coefficient, and the (n+1)th iteration is performed based on the (n+1)th reference value of each first coefficient.

[0143] 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 each first coefficient. If the (n+1)th predicted value does not meet the convergence condition, the (n+1)th reference value of each first coefficient is updated based on the (n+1)th predicted value of the second parameter to obtain the (n+2)th reference value of each first coefficient, and the (n+2)th iteration is performed based on the (n+2)th reference value of each first coefficient.

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

[0145] For any first coefficient in the first set of coefficients, the first reference value of the first coefficient can be a set initial value. In this embodiment of the application, there is no restriction on the size of the initial value of the first coefficient, and it can be set according to actual needs.

[0146] 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 each first coefficient. 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 first coefficient of the Nth predicted value as the measured value of the first coefficient.

[0147] like Figure 5 As shown, the method for measuring loudspeaker parameters provided in this application embodiment may include:

[0148] S501. 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 loudspeaker under test at the nth or n-1th acquisition time, the nth reference value of each first coefficient in the first coefficient set, and the n-1th estimated value of the second parameter of the loudspeaker under test.

[0149] S502. Does the electronic device determine whether the nth estimated value of the second parameter satisfies the convergence condition?

[0150] 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.

[0151] S503. The measured value of the first coefficient is determined based on the current reference value of the first coefficient.

[0152] S504. The electronic device determines the (n+1)th reference value of each first coefficient based on the nth estimated value of the second parameter and the nth reference value of each first coefficient.

[0153] S505, The electronic device increments the value of n by 1.

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

[0155] In this embodiment, the electronic device can be configured with a prediction model and an update model for the second parameter. The nth or (n-1)th collected value of at least one first parameter and the nth parameter of each first coefficient in the first coefficient set are input into the prediction model to obtain the nth predicted value of the second parameter. The nth predicted value of the second parameter and n reference values ​​of each first parameter are input into the update model to obtain the (n+1)th reference value of each first coefficient. The prediction model is a first model, which can be constructed based on the electrical relationship of the speaker, or based on the mechanical relationship, or based on both the electrical and mechanical relationships of the speaker.

[0156] 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 first coefficient is different depending on the second parameter.

[0157] In one example, the second parameter is voltage, then at least one first parameter includes current and displacement, and the first coefficients in the first coefficient set include: the monomial coefficient of the DC resistance Re of the unit voice coil, the monomial coefficient of the linear part of the inductance Le of the unit voice coil, and the monomial coefficient of the linear part of the force coefficient Bl(x(n)) of the unit voice coil.

[0158] In one example, the second parameter is displacement, then at least one first parameter includes: current, and the first coefficients in the first coefficient set include: equivalent mass M. ms The coefficients of the monomials, the equivalent resistance R ms The coefficients of the monomials of the linear part of (v(n)), and the equivalent force k ms The coefficients of the monomial of the linear part of (x(n)).

[0159] In one example, the second parameter is current, then at least one first parameter includes voltage, and the first set of coefficients includes: the monomial coefficients of the DC resistance Re of the unit voice coil, the monomial coefficients of the linear portion of the inductance Le of the unit voice coil, the monomial coefficients of the linear portion of the force coefficient Bl(x(n)) of the unit voice coil, and the equivalent mass M. ms The coefficients of the monomials, the equivalent resistance R ms The coefficients of the monomials of the linear part of (v(n)), and the equivalent force k ms The coefficients of the monomial of the linear part of (x(n)).

[0160] In this embodiment of the application, the electronic device may construct a first model based on the electrical relationship of the speaker, or based on the mechanical relationship, or based on both the electrical and mechanical relationships of the speaker, and construct and determine the relationship for the second parameter based on the first model.

[0161] In one example, the first model is the analog electrical model shown in formula (7). Based on the first model shown in formula (7), the third relationship for voltage is determined, as shown in formula (15):

[0162]

[0163] This is the nth estimated value of the voltage. Let i(n) be the (n-1)th estimated value of voltage, i(n) be the value collected at the nth sampling time in the current sequence, i(n-1) be the value collected at the (n-1)th sampling time in the current sequence, x(n) be the value collected at the nth sampling time in the displacement sequence, and x(n-1) be the value collected at the (n-1)th sampling time in the displacement sequence.

[0164] In one example, the first model is the simulated mechanical model shown in Equation (9). The fourth relationship for displacement is determined according to the current-displacement transfer function shown in Equation (9), as shown in Equation (16):

[0165]

[0166] This is the nth estimated value of the displacement. This is the (n-1)th estimated value of the displacement. For the (n-2)th estimated value of displacement, the first reference coefficient a1, the second reference coefficient a2, and the third reference coefficient b are the coefficients b0 of the monomial of the linear part of Bl(x(n)), and the equivalent mass M ms R ms The coefficients r0 and k of the monomial of the linear part of (v(n)) ms The relationship between the coefficients k0 of the monomial of the linear part of (x(n)).

[0167] In one example, the first model is the impedance model shown in Equation (8). Based on the impedance model shown in Equation (8), the fifth relationship for current is determined, as shown in Equation (17):

[0168]

[0169] in, For the nth estimated value of i, the fourth reference coefficient c0, the fifth reference coefficient c1, the sixth reference coefficient c2, the seventh reference coefficient d0, the eighth reference coefficient d1, and the ninth reference coefficient d2 are related to Re, Le, Bl(x(n)), and M. ms R ms The coefficients r0 and k of the monomial of the linear part of (v(n)) ms The relationship between the coefficients k0 of the monomial of the linear part of (x(n)).

[0170] 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.

[0171] 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.

[0172] 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.

[0173] 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.

[0174] 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.

[0175] 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 collected value of the second parameter.

[0176] 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 first coefficient obtained from the nth predicted value of the second parameter is used as the measured value of the first coefficient, 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 first coefficient 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.

[0177] 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.

[0178] The second parameter is voltage.

[0179] At this time, the first coefficient set includes: the coefficients of the monomials included in Re, the coefficient l0 of the monomials of the linear part included in Le(x(n)), and the coefficient b0 of the monomials of the linear part included in Bl(x(n)). The at least one first parameter includes: the displacement and the current. The second parameter includes: the voltage. 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 nth or n-1th acquisition time, the nth reference value of each first coefficient in the first coefficient set, and the n-1th estimated value of the second parameter, may include the following steps:

[0180] The nth estimated value of the voltage is determined based on the first current, the second current, the first displacement, the second displacement, the (n-1)th estimated value of the voltage, the nth reference value of each first coefficient in the first coefficient set, and the third relationship. 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. The third relationship is determined based on the first model, which is constructed based on the electrical relationship of the loudspeaker.

[0181] When the second parameter is voltage, in the nth iteration of determining the nth estimated value of the second parameter, the (n-1)th estimated value of the voltage is based on the first current i(n), the second current i(n-1), and the voltage. The nth estimated value of the voltage is determined by the nth reference value of each first coefficient in the first coefficient set.

[0182] In one example, the first model is the analog electrical model shown in formula (7), and the third relationship is shown in formula (15). In the nth iteration, At this point, the values ​​of the monomial coefficients l0 and b0 of the linear parts of Re, Le(x(n)) and Bl(x(n)) are respectively the nth reference value of Re, the nth reference value of l0, and the nth reference value of b0. That is, Re, l0, and b0 form the first target matrix W. u The values ​​of (n) are given, where W u(n) is a matrix consisting of the nth reference value of Re, the nth reference value of Le, and the nth reference value of Bl.

[0183] In this embodiment of the application, in the first iteration, the first estimated value of the voltage is... in, The initial estimated value of the voltage can be set, such as 0. i(0) and x(0) can be the initial acquired values ​​of the current and displacement set, such as 0. The values ​​of Re, l0, and b0 are W respectively. u The values ​​of Re, l0, and b0 in (1), W u (1) It consists of Re, l0, and b0, which are initial reference values. The initial reference values ​​of Re, l0, and b0 can be the same or different. For example, the initial reference values ​​of Re, l0, and b0 are all 0.1, or the initial reference values ​​of Re, l0, and b0 are 0.1e-3, 0.2, and 3e3, respectively. In the embodiments of this application, the initial estimated value of voltage, the initial value of current, the initial value of displacement, and the initial reference values ​​of Re, l0, and b0 are all greater than 0 and can be set according to actual needs.

[0184] In some embodiments, when the second parameter is voltage, the electronic device may also perform the following processing:

[0185] 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.

[0186] In the nth iteration, after the electronic device determines the nth predicted voltage value, it compares the nth predicted voltage value with the value collected at the nth acquisition time to determine the current voltage difference e. u (n), where, If 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; if 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.

[0187] In this embodiment of the application, taking the third relationship as formula (15) as an example, in the first iteration, the electronic device is based on Sure exist When the voltage difference with u(1) is greater than the voltage difference threshold, for W u (1) Perform an update, and based on the updated W u(2) Conduct the second iteration; in the second iteration, the electronic device is based on Sure Where Re, l0, and b0 are the reference values ​​after one update, in When the voltage difference between u(2) and the reference value is greater than the voltage difference threshold, the values ​​of Re, l0, and b0 are updated a second time, i.e., W is updated. u (2) Update to obtain W u (3), and based on the updated W u (3) Conduct the third iteration; in the third iteration, the electronic device is based on Sure Where Re, l0, and b0 are the reference values ​​after the second update, in When the voltage difference with u(3) is greater than the voltage difference threshold, the values ​​of Re, l0, and b0 (i.e., the reference values) are updated three times, i.e., W is updated. u (3) Update to obtain W u (4), and based on the updated W u (4) Perform the 4th iteration until the Nth iteration, when the electronic device is based on Sure Where Re, l0, and b0 take values ​​of W u Re, l0, and b0 in (N) are in If the voltage difference between u(N) and N is less than the voltage difference threshold, the (N+1)th iteration is not performed, and W is determined. u In (N), Re, l0, and b0 are the measured values ​​of Re, l0, and b0. 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 the current iteration.

[0188] In practical applications, the first convergence condition for voltage includes, but is not limited to, e. u (n) less than the voltage difference threshold may also include: the voltage difference is less than the voltage difference threshold for a period of time, the average power of the voltage difference is less than the first power threshold, and other convergence conditions determined based on the threshold.

[0189] 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 each first coefficient in the first coefficient set, determines the (n+1)th reference value of each first coefficient. This includes: obtaining the (n+1)th reference value of each first coefficient in the first coefficient set based on the nth reference value of each first coefficient in the first coefficient set, a first step length, a second step length, a 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 coefficients of the monomial of Re, the coefficients of the monomial of the linear part of Le(x(n)), and the coefficients of the monomial of the linear part of Bl(x(n)), respectively.

[0190] 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, l0, and b0 to obtain the (n+1)th reference value of Re, l0, and b0, i.e., the value of W. u (n) is updated to obtain W. u (n+1).

[0191] 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, l0, b0, i.e., the (n+1)th reference value of Re, l0, b0, output by the first update model:

[0192] Re is the current reference value, l0 is the current reference value, b0 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.

[0193] In one example, the first update model can be represented by formula (18):

[0194]

[0195] in, μ Re 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.

[0196] In this embodiment of the application, the expression of the first update model includes, but is not limited to, formula (18).

[0197] The second parameter is displacement.

[0198] At this time, the first set of coefficients includes: M ms The coefficients of the included monomials, R msThe coefficients r0 and k of the monomials of the linear part included in (v(n)) ms The coefficient k0 of the monomial of the linear part included in (x(n)).

[0199] The at least one first parameter includes: the current, and the second parameter includes: the displacement. 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 nth or (n-1)th acquisition time, the nth reference value of each first coefficient in the first coefficient set, and the (n-1)th estimated value of the second parameter, may include the following steps:

[0200] 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 each first coefficient in the first coefficient set, as well as the fourth relation, the nth estimated value of the displacement is determined. The second current is the acquired value at the (n-1)th acquisition time of the current sequence. The fourth relation is determined based on the first model, which is constructed based on the mechanical relationship of the loudspeaker.

[0201] When the second parameter is displacement, in the nth iteration of determining the nth estimated value of the second parameter, the estimated value of the second current i(n-1) and the (n-1)th estimated value of the displacement are used. The (n-2)th estimated value of displacement and M ms The nth reference value, the nth reference value of r0, the nth reference value of k0, and b0 determine the nth estimated value of displacement.

[0202] In one example, the first model is the current-displacement transfer model shown in equation (10), and the fourth relationship is shown in equation (16). In the nth iteration,

[0203] Here, the first reference coefficient a1, the second reference coefficient a2, and the third reference coefficient b can be obtained through M. ms One or more of r0 and k0.

[0204] In one example, a1 can be based on M ms r0 and k0 are represented by formula (19):

[0205]

[0206] In one example, a2 can be based on M ms r0 is represented by formula (20):

[0207]

[0208] In one example, b can be expressed based on a1, a2, and k0 as formula (21):

[0209]

[0210] In this embodiment of the application, in the nth iteration, the (n-1)th estimated value is based on the second current i(n-1) and the displacement. The (n-2)th estimated value of displacement The nth estimated displacement is determined by the nth reference value of the first reference coefficient, the nth reference value of the second reference coefficient, and the nth reference value of the third reference coefficient.

[0211] The nth reference value of the first reference coefficient a1, the nth reference value of the second reference coefficient a2, and the nth reference value of the third reference coefficient b can constitute the second target matrix W. x (n). Where W x (1) The first reference value of the first reference coefficient a1, the first reference value of the second reference coefficient a2 and the first reference value of the third reference coefficient b can be the initial reference value of a1, the initial reference value of a2 and the initial reference value of b, respectively.

[0212] In one example, the fourth relation is shown in formula (16), in the nth iteration, At this time, the values ​​of a1, a2, and b are respectively W x The values ​​of a1, a2 and b in (n).

[0213] 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 W respectively. x The values ​​of a1, a2, and b in (1), W x (1) It consists of a1, a2, and b, each with an initial reference value, wherein the initial reference values ​​of a1, a2, and b can be determined by M. ms The initial reference values ​​of r0 and k0 constitute M. ms The initial reference values ​​of r0 and k0 can be the same or different, for example: M ms The initial reference values ​​for r0 and k0 are both 0.1. For example: M ms R ms and K ms The initial reference values ​​are 0.1e-3, 0.2, and 3e3, respectively. In the embodiments of this application, the initial estimated value of displacement, the initial value of current, and M are...ms The initial reference values ​​of r0 and k0 are all greater than 0 and can be set according to actual needs.

[0214] In some embodiments, when the second parameter is displacement, the electronic device may also perform the following processing:

[0215] 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.

[0216] 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 e. x (n), where, If the determined displacement difference is less than the displacement difference threshold, 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, 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.

[0217] In this embodiment of the application, taking the fourth relation as formula (16) as an example, in the first iteration, the electronic device is based on Sure exist When the displacement difference with x(1) is greater than the displacement difference threshold, for W x (1) Perform an update, and based on the updated W x (2) Conduct the second iteration; in the second iteration, the electronic device is based on Sure Where a1, a2, and b are reference values ​​after one update, in When the displacement difference with x(2) is greater than the displacement difference threshold, the values ​​of a1, a2, and b, i.e., the reference values, are updated a second time, i.e., W. x (2) Update to obtain W x (3), and based on the updated W x (3) Conduct the third iteration; 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 When the displacement difference with x(3) is greater than the displacement difference threshold, the values ​​of a1, a2, and b (i.e., the reference values) are updated three times, i.e., W. x (3) Update to obtain Wx (4), and based on the updated W x (4) Perform the 4th iteration until the Nth iteration, when the electronic device is based on Sure Where the values ​​of a1, a2, and b are W x a1, a2, and b in (N) are in If the displacement difference with x(N) is less than the displacement difference threshold, the (N+1)th iteration is not executed, and W is determined. x In (N), the values ​​of a1, a2, and b are the target values ​​of a1, a2, and b, respectively. The value of N is determined based on whether the displacement difference between the estimated displacement and the corresponding acquired value is less than the displacement difference threshold. If, in a certain iteration, the displacement difference between the estimated displacement and the corresponding acquired value is less than the displacement difference threshold, then N is the number of iterations.

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

[0219] In some embodiments, when the second parameter is displacement, in the nth iteration, determining the (n+1)th reference value of each first coefficient in the first coefficient set based on the nth estimated value of the second parameter and the nth reference value of each first coefficient in the first coefficient set 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. The reference coefficient sequence includes: a first reference coefficient, a second reference coefficient, and a third reference coefficient, and the fourth step size, the fifth step size, and the sixth step size are the step sizes corresponding to the first reference coefficient, the second reference coefficient, and the third reference coefficient, respectively.

[0220] 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, namely a1, a2, and b, to obtain the (n+1)th reference value of a1, a2, and b, i.e., for W. x (n) is updated to obtain W. x (n+1).

[0221] 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:

[0222] a1 current reference value, a2 current reference value, b current reference value, fourth step length, fifth step length, sixth step length, current displacement difference (the displacement difference between the nth estimated value of the displacement and the value collected at the nth acquisition time of the displacement) and the nth estimated value of the displacement.

[0223] In one example, the second update model can be represented by formula (22):

[0224]

[0225] Where, μ x =[μ a1 μ a2 μ b ], μ a1 For the fourth step size, μ a2 For the fifth step length, μ b The sixth step size is 6, while the fourth, fifth, and sixth step sizes are constants.

[0226] In this embodiment of the application, the relational formula of the second update model includes, but is not limited to, formula (22).

[0227] In some embodiments, the electronic device further implements the following steps:

[0228] 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 coefficients of the monomial of the equivalent mass, the coefficients of the monomial of the linear part of the equivalent force, and the coefficients of the monomial of the linear part of the equivalent force are determined.

[0229] 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 The relationship between r0 and k0 determines M. ms The Nth reference value, the Nth reference value of r0, and the Nth reference value of k0 determine M. ms The Nth reference value, the Nth reference value of r0, and the Nth reference value of k0 are M. ms The measured values ​​of r0 and k0.

[0230] In this embodiment of the application, when a1, a2, and b can be expressed as formula (19), formula (22), and formula (21), M ms r0 and k0 can be represented by formulas (23), (24), and (25), respectively:

[0231]

[0232]

[0233]

[0234] Among them, M is determined based on the first reference coefficient, the second reference coefficient, and the third reference coefficient. ms The value of b0 used when r0 and k0 are used can be preset or determined based on the second parameter being voltage.

[0235] In the method for measuring loudspeaker parameters provided in this application embodiment, the measured values ​​of the first coefficients in the first coefficient set are continuously adjusted based on the collected values ​​of current and displacement in an adaptive manner to obtain the final measured values ​​of the first coefficients. This accurately determines the linear part of the model parameters of the loudspeaker under test, reduces the measurement complexity of the model parameters, and improves the measurement accuracy of the model parameters.

[0236] In practical applications, the coefficients of the linear part of the model parameters of the loudspeaker under test can be determined in an adaptive manner, or the impedance model shown in formula (8) can be used as the first model, and the impedance model can be expressed as formula (26).

[0237]

[0238] Among them, P m P t P c It can be called an impedance parameter, and

[0239] Using the form AX = B in formula (26), the impedance parameters are determined, and based on the relationship between the impedance parameters and Re, b0, r0, k0, and the known M... ms Determine the measured values ​​of Re, b0, r0, and k0.

[0240] In some embodiments, the at least two sequences include: the current sequence and the displacement sequence, and the determination of the measured values ​​of each third coefficient in the third coefficient set based on at least two second sequences, a second coefficient set, and a second model includes:

[0241] Based on the current sequence, the displacement sequence, and the M msThe second set of coefficients is used to construct a seventh parameter matrix sequence and an eighth parameter matrix sequence. The seventh parameter matrix sequence includes at least two seventh parameter matrices, and the eighth parameter matrix sequence includes at least two eighth parameter matrices. The nth seventh parameter matrix and the ninth parameter matrix in the seventh parameter matrix sequence are used to determine the nth eighth parameter matrix in the eighth parameter matrix sequence. The elements of the ninth parameter matrix include each third coefficient from the third set of coefficients, where n is greater than 0. A fifth relationship exists between the seventh parameter matrix, the eighth parameter matrix, and the ninth parameter matrix. This fifth relationship is constructed based on the second model, which is based on the mechanical relationships of a loudspeaker.

[0242] The values ​​of each element in the ninth parameter matrix that matches the seventh parameter matrix sequence and the eighth parameter matrix sequence are determined to obtain the measured values ​​of each third coefficient in the third coefficient set.

[0243] In this embodiment, the seventh parameter matrix sequence includes at least two seventh parameter matrices A3, namely: A31, A32, ..., A3 N3 The sequence of seventh parameter matrices contains N^3 seventh parameter matrices. The sequence of eighth parameter matrices includes at least two eighth parameter matrices B3, namely: B31, B32, ..., B3 N3 The number of eighth parameter matrices in the eighth parameter matrix sequence is N³. The maximum value of N³ is M. The seventh parameter matrix A³ in the seventh parameter matrix sequence and the eighth parameter matrix B³ in the eighth parameter matrix sequence are constructed using current and displacement sequences. The ninth parameter matrix X³ is solved using N³ A³ and N³ B³, yielding the values ​​of each element in X³, which are the measured values ​​of each third coefficient in the third coefficient set. Here, M is greater than or equal to the number of elements included in X³.

[0244] Here, the ninth parameter matrix is ​​denoted as X3, and the elements of X3 include the third coefficients in the third coefficient set. The nth seventh parameter matrix, the ninth parameter matrix, and the nth eighth parameter matrix can be represented by formula (27):

[0245] A3 n *X3=B3 n Formula (27);

[0246] Among them, A3 n B3 is the nth A3 out of N3 A3s. n It is the nth B3 among N3 B3s, where n can take values ​​from 1 to N3.

[0247] In this embodiment, the eighth parameter matrix is ​​the product of the seventh and ninth parameter matrices. Since the eighth parameter matrix is ​​a 1x1 matrix, the seventh parameter matrix is ​​a 1xH3 matrix, and the ninth parameter matrix is ​​an H3x1 matrix. Here, H3 represents the number of third coefficients included in the third coefficient set. Therefore, the sequence of seventh parameter matrices can be represented as an N3xH3 matrix, and the sequence of eighth parameter matrices can be represented as an N3x1 matrix.

[0248] In practical applications, formula (27) can be modified, for example: swapping A3 n And the position of X3, here, A3 n The elements in X3 remain unchanged, only the matrices in formula (27) are transposed. At this time, the seventh parameter matrix is ​​a matrix of H3*1 and the ninth parameter matrix is ​​a matrix of 1*H3.

[0249] In this embodiment of the application, formula (27) is determined based on the fourth relation, which can be constructed based on the mechanical model shown in formula (9).

[0250] In one example, the fourth relation can be represented as shown in equation (28):

[0251] h1*f nl (n-1)-g1*x(n-1)-g2*x(n-2)=x(n) Formula (28),

[0252] Among them, g1, g2, and h1 are M ms Functions of r0 and k0.

[0253] f nl For Bl(x(n)) and R ms The coefficients of the monomial of the nonlinear part of (v(n)) and k ms The coefficients of the monomial of the nonlinear part of (x(n)) are a function of the coefficients of the monomial.

[0254] Here, B3 n Constructed based on the second set of coefficients and the current sequence and displacement sequence, wherein the second set of coefficients is a subset of the first set of coefficients.

[0255] In some embodiments, constructing the seventh parameter matrix sequence and the eighth parameter matrix sequence based on the current sequence, the displacement sequence, and the second set of coefficients includes:

[0256] For the nth seventh parameter matrix in the seventh parameter matrix sequence, the nth seventh parameter matrix is ​​obtained based on the acquired values ​​at the nth and (n-1)th acquisition times in the current sequence, and the acquired values ​​at the nth and (n+1)th acquisition times in the displacement sequence; for the nth eighth parameter matrix in the eighth parameter matrix sequence, the nth eighth parameter matrix is ​​obtained based on the acquired values ​​at the nth, (n-1)th, and (n+1)th acquisition times in the displacement sequence and the second coefficient set.

[0257] In this embodiment of the application, the fourth relation is as shown in formula (28), and when the nth seventh parameter matrix, the eighth parameter matrix, and the nth ninth parameter matrix are represented by formula (27), B3 n It can be represented as B3 n =a1*x(n)+a2*x(n-1)+x(n+1).

[0258] A3 n It can be represented as A3 n =[i(n)x(n),i(n)x(n)] 2 ,-v(n),-v(n) 2 ,-x(n),-x(n) 2 ], can also be represented as: A3 n =[i(n)x(n),i(n)x(n)] 2 ,i(n)x(n) 3 ,-v(n),-v(n) 2 ,-x(n),-x(n) 2 ,-x(n) 3 ]. Among them, A3 n The order of x(n) in i(n)x(n), the order of v(n) in -v(n), and the order of x(n) in -x(n) can be adjusted according to the number of third coefficients in the third coefficient set.

[0259] Here, the second set of coefficients includes: M ms The coefficients of the included monomials, R ms The coefficients of the monomials of the linear part included in (v(n)), k ms The coefficients of the monomials of the linear part included in (x(n)).

[0260] At this point, the third set of coefficients includes: the coefficients of the monomials of the nonlinear part included in Bl(x(n)), R ms The coefficients of the monomials of the nonlinear part included in (v(n)), kms The coefficients of the monomials of the nonlinear part included in (x(n)).

[0261] Here, the third set of coefficients includes: the coefficients of the monomial of the nonlinear part of the nonlinear parameter Bl(x(n)), and the nonlinear parameter R. ms The coefficients of the monomial of (v(n)) and the nonlinear parameter k ms The coefficients of the monomials of (x(n)). Among them, the number of coefficients of the monomials of the nonlinear part of Bl(x(n)) included in the third coefficient set is the fifth quantity, and the third coefficient set includes R... ms The number of coefficients in the monomials of (v(n)) is the sixth quantity, and the third set of coefficients includes k. ms The number of coefficients of the monomials of (x(n)) is the seventh quantity. The fifth quantity is greater than 1, the sixth quantity is greater than 1, the seventh quantity is greater than 1, and the fifth, sixth, and seventh quantities are independent.

[0262] A3 n In the set of coefficients, the fifth quantity is the element with the same number of coefficients as the monomial of Bl(x(n)) in the third coefficient set, and the element with -v(n) is the element with the same number of coefficients as the monomial of R in the third coefficient set. ms The number of coefficients of the monomials of (v(n)) is the same as that of the sixth quantity, and the elements with -x(n) are in the third coefficient set k. ms The number of coefficients of the monomials of (x(n)) is the same, which is the seventh quantity.

[0263] In one example, the fifth quantity is 3, the sixth quantity is 3, and the seventh quantity is 3, then X3 = [b1,b2,b3,r1,r2,r3,k1,k2,k3] T At this time, A3 n =[i(n)x(n),i(n)x(n)] 2 ,i(n)x(n) 3 ,-v(n),-v(n) 2 ,-v(n) 3 ,-x(n),-x(n) 2 ,-x(n) 3 ].

[0264] In one example, the fifth quantity is 2, the sixth quantity is 3, the seventh quantity is 4, and the fourth quantity is 5. Therefore, X3 = [b1, b2, r1, r2, r3, k1, k2, k3, k4] T At this time, A3 n =[i(n)x(n),i(n)x(n)] 2 ,-v(n),-v(n) 2 ,-v(n)3 ,-x(n),-x(n) 2 ,-x(n) 3 ,-x(n) 4 ].

[0265] In practical applications, the third set of coefficients may also include the coefficients b0 of the monomials of the linear part of Bl(x(n)).

[0266] At this point, the eighth parameter matrix also includes i(n) corresponding to b0, for example: A3 n =[i(n),i(n)x(n),i(n)x(n)] 2 ,-v(n),-v(n) 2 ,-x(n),-x(n) 2 In this embodiment of the application, in Scheme 2, b0 calculated based on the adaptive method can be used as the measured value of the coefficient of the monomial of the linear part of Bl(x(n)), or b0 calculated based on the ninth parameter matrix can be used as the measured value of the coefficient of the monomial of the linear part of Bl(x(n)).

[0267] In the second scheme of the method for measuring loudspeaker parameters provided in this application embodiment, the measured values ​​of each first coefficient in the first coefficient set are continuously adjusted based on the collected values ​​of current and displacement in an adaptive manner, thereby obtaining the measured values ​​of the coefficients of the monomials of the linear part of the final model parameters. The fourth relationship of the second model is expressed as AX = B, and X is determined based on multiple A and multiple B with corresponding relationships, thereby obtaining the coefficients of each monomial of the nonlinear part of the model parameters of the loudspeaker under test, so as to obtain the measured values ​​of the nonlinear model parameters of the loudspeaker under test.

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

[0269] The mathematical model established based on the electrical relationships of the loudspeaker includes: an electrical model,

[0270] The mathematical models established based on the mechanical relationships of loudspeakers include: mechanical models.

[0271] Mathematical models established based on the electrical and mechanical relationships of loudspeakers include: impedance models.

[0272] The electrical relationship of the loudspeaker can be expressed by formula (5):

[0273] u=Re*i+Le*di / dt+Bl*dx / dt formula (5);

[0274] The mechanical relationship of the loudspeaker can be expressed by formula (6):

[0275]

[0276] The electrical model is shown in equation (7):

[0277] u(s)=Re*i(s)+s*Le(s)*i(s)+Bl*s*x(s) Formula (7);

[0278] The impedance model is shown in equation (8):

[0279]

[0280] The electrical model is shown in equation (9):

[0281] Bl*i(s)=[M ms *s 2 +R ms *s+K ms Formula (9) for x(s);

[0282] The displacement current transfer model is shown in equation (10):

[0283]

[0284] 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.

[0285] The model parameters in the above data model include:

[0286] Re: DC resistance of the speaker unit's voice coil;

[0287] Le: Voice coil inductance of the loudspeaker unit;

[0288] Bl: Force coefficient, which is the product of the gap magnetic induction intensity B and the effective voice coil length L;

[0289] M ms The equivalent mass of the loudspeaker vibration system;

[0290] R ms Equivalent resistance of the speaker mounting system;

[0291] K ms Equivalent force of speaker mounting system.

[0292] Due to limitations imposed by the speaker's structure and the inherent properties of its materials, the model parameters described above are not fixed. They change with displacement and velocity, meaning that a real speaker is not a purely linear system but a nonlinear one. The system parameters are expressed using a polynomial fit as follows:

[0293] Le(x) = l0 + l1x + l2x 2 +l3x 3 +l4x 4 +...Formula (1);

[0294] Bl(x) = b0 + b1x + b2x 2 +b3x 3 +b4x 4 +...Formula (2);

[0295] R ms (v)=r0+r1v+r2v 2 +r3v 3 +r4v 4 +...Formula (3);

[0296] K ms (x)=k0+k1x+k2x 2 +k3x 3 +k4x 4 +...Formula (4).

[0297] The linear parts of the electrical and mechanical relationships of the loudspeaker are shown in equations (29) and (30), respectively:

[0298] u=Re*i+l0*di / dt+b0*dx / dt formula (29);

[0299] b0*i=M ms *dx 2 / d 2 Formula (30): t+r0*dx / dt+k0*x

[0300] The nonlinear parts of the electrical and mechanical relationships of the loudspeaker are shown in equations (31) and (32), respectively:

[0301] u=Re*i+Le(x)*di / dt+Bl(x)*dx / dt formula (31);

[0302] Bl(x)*i=M ms *dx 2 / (d 2 t)+R ms (v)*dx / dt+K ms Formula (32) (x)*x

[0303] The mathematical model of a loudspeaker varies with the signal magnitude. With small signals, the loudspeaker amplitude is small, i.e., x is small, and the loudspeaker approximates a linear system. However, with large signals, the loudspeaker amplitude increases, and the nonlinearity caused by x becomes significant, allowing the loudspeaker to be represented as a nonlinear system. Loudspeaker system identification typically begins by confirming the system's linear parameters, then amplifies the signal to put the loudspeaker in a nonlinear state, and finally identifies the system's nonlinear parameters.

[0304] In related technologies, methods for measuring the nonlinear parameters of loudspeakers include:

[0305] Method 1: Use a current sensor to measure the speaker parameters, obtain the current i flowing through the device under test and the voltage v across the coil, given the equivalent vibration mass M of the device under test. ms Under the premise of [condition], linear parameters are identified through the impedance Z(s) model; then, nonlinear parameters are identified through the voltage-displacement transfer function and the current-displacement transfer function.

[0306] Method 2: The voice coil is offset from its equilibrium position by feeding back an adjustable DC current. The impedance characteristics of the speaker unit are measured using a conventional audio measuring instrument with speaker unit impedance measurement function under different voice coil displacements. Based on the nonlinear impedance model of the speaker unit, the nonlinear parameters of the speaker unit are obtained using system identification technology.

[0307] Method 1 described above has the following technical defects:

[0308] Limitation 1: In principle, only the parameters of the electrical module and the relationships between the parameters of the mechanical module can be identified. However, if any parameter in the mechanical module is known, all parameters of the mechanical model can be obtained. The effective vibrating mass M can be obtained through the method of adding mass or adding cavity. ms Or equivalent to K ms This 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.

[0309] Defect 2: The displacement x is calculated using current and identification parameters, which has an error compared to the actual displacement and also has a significant impact on the parameter identification results.

[0310] Defect 3: Based on the Least Mean Square (LMS) algorithm, the system identification is performed using an adaptive filter, which has a certain time delay in parameter identification.

[0311] Defect 4: It can only identify parameters under specific signals and cannot identify them in real time while playing music.

[0312] Method 2 described above has the following technical defects:

[0313] Defect 1: The measurement method is cumbersome and complicated. In order to achieve high accuracy of nonlinear parameters, it is necessary to test nonlinear parameters under multiple displacements, resulting in a large amount of testing.

[0314] Defect 2: It can only verify static small signals, and cannot verify real-time nonlinear parameters under large signals;

[0315] Defect 3: It can only identify parameters under specific signals and cannot identify them in real time while playing music.

[0316] This application provides a method for measuring the model parameters of a loudspeaker. The loudspeaker parameters are identified based on three sets of data: voltage v, current i, and displacement x. All model parameters can be obtained at once. The displacement x is measured and matches the actual situation, which increases the accuracy of the test data and has minimal delay.

[0317] In this application, embodiments are provided, but are not limited to, the following two embodiments for identifying the nonlinear parameters of a loudspeaker.

[0318] Example 1

[0319] Based on the voltage u(n), current i(n), and displacement x(n), the relevant parameters of the electrical model are calculated.

[0320] The analog electrical model shown in formula (7) is expressed as the first relationship shown in formula (12).

[0321]

[0322] Wherein, let X1 = [Re,Le,b0,b1,b2,b3,b4]'. B1 n =[u(n)+u(n-1)], then A1 n X1 = B1 n That is, X1 = A1 n \B1 n .

[0323] The nonlinear modulus of the mechanical model can be transformed into the second relationship shown in equation (14):

[0324] Bl(x(n))*i(n)-M ms *a(n)=R ms (v(n))*v(n)+K ms (x(n))*x(n) Formula (14).

[0325] Let: X2=[r0,r1,r2,r3,r4,k0,k1,k2,k3,k4]',

[0326] A2 n =[v(n),v(n)] 2 ,v(n) 3 ,v(n) 4 ,v(n) 5 ,x(n),x(n) 2 ,x(n) 3 ,x(n) 4 ,x(n) 5 ]',

[0327] B2 n = [Bl(x(n))*i(n)-M ms *a(n)],

[0328] Then A2 n X2 = B2 n That is, X2 = A2 n \B2 n .

[0329] In Example 1, the method for measuring the parameters of the loudspeaker is as follows: Figure 6 As shown, it includes:

[0330] S601, Acquisition system signals.

[0331] Play the test signal w(t), and collect the voltage v and current i flowing through the speaker based on the test signal w(t). At the same time, collect the displacement x through a laser. The test signal w(t) contains signals with more than three frequency points within 1500Hz, and the voltage amplitude of each signal is not less than 0.001 amplitude (Vp).

[0332] S602, Identify electrical model parameters.

[0333] The electrical model is represented by parameter matrix X1 and variable A1. n Sum matrix B1 n Indicates: A1 n X1 = B1 n According to X1=A1 n \B1 n Solve the parameter matrix to obtain all electrical parameters in X1.

[0334] S603, Identify the parameters of the mechanical model.

[0335] The mechanical model is represented by parameter matrix X2 and variable A2. n Sum matrix B2 n Indicates: A2 n X2 = B2n According to X2 = A2 n \B2 n Solve the parameter matrix to obtain all mechanical model parameters in X2.

[0336] Example 2

[0337] Impedance is calculated based on the collected current and voltage, and then impedance parameters are obtained by fitting an impedance model. According to M... ms The relationship between linear parameters and impedance model parameters is used to calculate the coefficients of the linear component of the model parameters under large-signal conditions. Based on the calculated coefficients of the linear component of the model parameters, the coefficients of the nonlinear component are identified.

[0338] Here, based on the relationship of the nonlinear part of the mechanical model shown in formula (14), further:

[0339] f nl =Bl(x) *i -(r1v+r2v 2 +r3v 3 +r4v 4 )*dx / dt-(k1x+k2x 2 +k3x 3 +k4x 4 )*x,

[0340] And f nl =M ms *dx 2 / d 2 t+r0*dx / dt+k0*x;

[0341] Among them, M ms r0 and k0 are known quantities.

[0342] Based on formula (14), we obtain formula (28):

[0343] h1*f nl (n-1)-g1*x(n-1)-g2*x(n-2)=x(n) Formula (28),

[0344] Where g1, g2, and h1 are functions of Mms, r0, and k0, and the value of h1 is not 0.

[0345] Recursion yields formulas (33) and (34):

[0346] f nl (n)=a1*x(n)+a2*x(n-1)+x(n+1) Formula (33),

[0347]

[0348] Then we have: B3 n =[a1*x(n)+a2*x(n-1)+x(n+1)];

[0349] Then A3 n X3 = B3 n That is, X3 = A3 n \B3 n .

[0350] In Example 2, the method for measuring the model parameters of the loudspeaker is as follows: Figure 7 As shown, it includes:

[0351] S701, Acquisition system signals.

[0352] A test signal w(t) is played, and the voltage v and current i flowing through the speaker based on the test signal w(t) are collected. Simultaneously, the displacement x is collected via laser. The test signal w(t) contains signals at more than three frequency points within 1500Hz, and the voltage amplitude of each signal is not less than 0.001Vp.

[0353] S702, Identify the coefficients of the linear part of the model parameters.

[0354] Calculate the impedance based on the current and voltage, and then determine the impedance model parameters based on the impedance. Finally, apply the impedance model using parameter matrix X4 and variable A4. n Sum matrix B4 n Indicates: A4 n X4 = B4 n According to X4 = A4 n \B4 n Solve the parameter matrix to obtain all impedance parameters in X4; based on the known mass M ms And the relationship between linear parameters and impedance, and solve for the coefficients of the linear part of the model parameters.

[0355] S703, Identify the coefficients of the nonlinear part of the model parameters.

[0356] The mechanical model is represented by parameter matrix X3 and variable A3. n Sum matrix B3 n Indicates: A3 n X3 = B3 n ;

[0357] According to X3=A3 n \B3 n Solve the parameter matrix to obtain the coefficients of the nonlinear components of all model parameters in X3.

[0358] In this embodiment of the application, it can be assumed that: X = A n \B nX = A n \B n It can be implemented as described above: X1 = A1 n \B1 n X2 = A2 n \B2 n X3 = A3 n \B3 n and X4 = A4 n \B4 n

[0359] The method for measuring loudspeaker parameters provided in this application includes, for example... Figure 8 As shown, when the loudspeaker under test 801 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 by the laser sensor 802 at the nth acquisition time, 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 by the voltage and current sensors 803 at the nth acquisition time, 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.

[0360] like Figure 9 As shown, i(n), x(n), and u(n) are input into the electrical model 901, and i(n), x(n), and u(n) are used as A1 constructed based on the electrical model 901. n X1 = B1 n Solve for X1 to obtain all electrical parameters in X1; input the electrical parameters and i(n) and x(n) in X1 into the mechanical model 902, and use the electrical parameters and i(n) and x(n) in X1 as A2 constructed based on the mechanical model 902. n X2 = B2 n And solve for X2 to obtain all the mechanical parameters in X2.

[0361] like Figure 10 As shown, i(n), x(n), and u(n) are input impedance model 903, and i(n), x(n), and u(n) are used as A4 constructed based on impedance model 903. n X4 = B4 nThen solve X4 to obtain the coefficients of the linear part of the model parameters in X4; input the coefficients and i(n) and x(n) in X4 into the mechanical model 904, and use the electrical parameters and i(n) and x(n) in X4 as A3 constructed based on the mechanical model 904. n X3 = B3 n And solve X3 to obtain the coefficients of the nonlinear part of the model parameters in X3.

[0362] In this embodiment, all model parameters of the loudspeaker can be identified when the loudspeaker is in a nonlinear state. The identification method is simple and fast, and the identification results are highly accurate.

[0363] This application provides a measuring device 1100, such as... Figure 11 As shown, the measuring device 1100 includes:

[0364] The acquisition module 1101 is used to acquire a current sequence, a displacement sequence, and a voltage sequence. The current sequence is the acquisition result obtained by acquiring the current of the speaker under test at M acquisition times. The displacement sequence is the acquisition result obtained by acquiring the displacement of the speaker under test at M acquisition times. The voltage sequence is the acquisition result obtained by acquiring the voltage of the speaker under test at M acquisition times.

[0365] The first determining module 1102 is used to determine the measured value of each first coefficient in a first coefficient set based on at least two first sequences and a first model. The first coefficient set includes at least one first coefficient, the first sequence is any one of a current sequence, a displacement sequence, and a voltage sequence, the first coefficient is the coefficient of the monomial included in the first model parameters, and the first model is constructed based on the first model parameters.

[0366] The second determining module 1103 is used to determine the measured value of each third coefficient in the third coefficient set based on at least two second sequences, a second coefficient set, and a second model. The second sequence is any one of a current sequence, a displacement sequence, and a voltage sequence. The at least two first sequences are different from the at least two second sequences. The second coefficient set is a subset of the first coefficient set. The third coefficient is the coefficient of the monomial included in the third model parameters. The second model is constructed based on the first model parameters to which the second coefficients in the second coefficient set belong and the third model parameters.

[0367] In some embodiments, the first determining module 1102 is further configured to:

[0368] Based on the current sequence, voltage sequence, and displacement sequence included in the at least two first sequences, a first parameter matrix sequence and a second parameter matrix sequence are constructed. The first parameter matrix sequence includes at least two first parameter matrices, and the second parameter matrix sequence includes at least two second parameter matrices. The nth first parameter matrix and the third parameter matrix in the first parameter matrix sequence are used to determine the nth second parameter matrix in the second parameter matrix sequence. The elements of the third parameter matrix include first coefficients from the first coefficient set, and n is greater than 0. A first relationship exists between the first parameter matrix, the second parameter matrix, and the third parameter matrix. This first relationship is constructed based on the first model. The first model is constructed based on the electrical relationships of the loudspeaker.

[0369] The values ​​of each element in the third parameter matrix that matches the first parameter matrix sequence and the second parameter matrix sequence are determined to obtain the measured values ​​of each first coefficient in the first coefficient set.

[0370] In some embodiments, the first determining module 1102 is further configured to:

[0371] For the nth first parameter matrix in the first parameter matrix sequence, the nth first parameter matrix is ​​obtained based on the collected values ​​at the nth and (n-1)th sampling times in the current sequence, and the collected values ​​at the nth and (n+1)th sampling times in the displacement sequence.

[0372] For the nth second parameter matrix in the second parameter matrix sequence, the nth second parameter matrix is ​​obtained based on the acquired value at the nth acquisition time and the acquired value at the (n-1)th acquisition time in the voltage sequence.

[0373] In some embodiments, the first set of coefficients includes: the coefficients of the monomial included in the DC resistance Re of the unit voice coil, the coefficients of the monomial included in the inductance Le(x(n)) of the unit voice coil, and the coefficients of the monomial included in the force coefficient Bl(x(n)), wherein Le(x(n)) varies based on x(n), Bl(x(n)) varies based on x(n), and x(n) is the acquired value at the nth acquisition time in the displacement sequence.

[0374] In some embodiments, the second determining module 1103 is further configured to:

[0375] Based on the current sequence, displacement sequence, and second coefficient set included in the at least two second sequences, a fourth parameter matrix sequence and a fifth parameter matrix sequence are constructed. The fourth parameter matrix sequence includes at least two fourth parameter matrices, and the fifth parameter matrix sequence includes at least two fifth parameter matrices. The nth fourth parameter matrix and the sixth parameter matrix in the fourth parameter matrix sequence are used to determine the nth fifth parameter matrix in the fifth parameter matrix sequence. The elements of the sixth parameter matrix include each third coefficient from the third coefficient set, and n is greater than 0. A second relationship exists between the fourth parameter matrix, the fifth matrix, and the sixth parameter matrix. This second relationship is constructed based on the second model, which is based on the mechanical relationships of the loudspeaker.

[0376] The values ​​of each element in the sixth parameter matrix that matches the fourth parameter matrix sequence and the fifth parameter matrix sequence are determined to obtain the measured values ​​of each third coefficient in the third coefficient set.

[0377] In some embodiments, the second determining module 1103 is further configured to:

[0378] For the nth fourth parameter matrix in the fourth parameter matrix sequence, the nth fourth parameter matrix is ​​obtained based on the acquired value at the nth acquisition time and the acquired value at the (n-1)th acquisition time in the displacement sequence, where n is greater than 0;

[0379] For the nth fifth parameter matrix in the fifth parameter matrix sequence, the nth fifth parameter matrix is ​​obtained based on the acquired values ​​at the nth and (n-1)th acquisition times in the current sequence, the acquired values ​​at the nth and (n-1)th acquisition times in the displacement sequence, and the second set of coefficients.

[0380] In some embodiments, the second set of coefficients includes the coefficients of the monomials included in Bl(x(n)), which varies based on the variation of x(n), where x(n) is the acquired value at the nth acquisition time in the displacement sequence.

[0381] In some embodiments, the third parameter set includes: equivalent resistance R ms The coefficients of the monomials included in (v(n)) and the equivalent force k ms The coefficients of the monomials included in (x(n)), where R ms (v(n)) changes based on the change of v(n), and the k ms(x(n)) changes based on the change of x(n), where x(n) is the acquired value at the nth acquisition time in the displacement sequence, and v(n) is the velocity at the nth acquisition time determined based on x(n).

[0382] In some embodiments, the first determining module 1102 is further configured to:

[0383] The nth estimated value of the second parameter is determined based on at least one first parameter of the loudspeaker under test at the nth or (n-1)th acquisition time, the nth reference value of each first coefficient in the first coefficient set, and the (n-1)th estimated value of the second parameter; 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; the relationship between the at least one first parameter and the second parameter is constructed based on the first model.

[0384] If the nth predicted value of the second parameter does not meet the convergence condition, for each first coefficient, based on the nth predicted value of the second parameter and the nth reference value of the first coefficient, the (n+1)th reference value of the first coefficient is determined, and the (n+1)th predicted value of the second parameter is determined based on the collected value of the at least one first parameter at the (n+1)th or nth time and the (n+1)th reference value of each first coefficient in the first coefficient set, until the Nth predicted value of the second parameter meets the convergence condition, and the Nth reference value of the first coefficient is determined as the measured value of the first coefficient, where n is greater than 0 and less than N.

[0385] In some embodiments, the first determining module 1102 is further configured to:

[0386] 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 each first coefficient in the first coefficient set, and the third relationship, the nth estimated value of the voltage is determined. The first current is the value collected at the nth sampling time in the current sequence, the second current is the value collected at the (n-1)th sampling time in the current sequence, the first displacement is the value collected at the nth sampling time in the displacement sequence, and the second displacement is the value collected at the (n-1)th sampling time in the displacement sequence. The third relationship is determined based on the first model, which is constructed based on the electrical relationship of the loudspeaker. The first coefficient set includes: the coefficients of the monomials included in Re, the coefficients of the monomials of the linear part included in Le(x(n)), and the coefficients of the monomials of the linear part included in Bl(x(n)).

[0387] In some embodiments, the first determining module 1102 is further configured to:

[0388] 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 each first coefficient in the first coefficient set, and the fourth relation, the nth estimated value of the displacement is determined. The second current is the acquired value at the (n-1)th acquisition time of the current sequence. The fourth relation is determined based on the first model, which is constructed based on the mechanical relationship of the loudspeaker. The first coefficient set includes: M ms The coefficients of the included monomials, R ms The coefficients of the monomials of the linear part included in (v(n)), k ms The coefficients of the monomials of the linear part included in (x(n)).

[0389] In some embodiments, the second determining module 1103 is further configured to:

[0390] Based on the at least two sequences, including the current sequence, the displacement sequence, and the M... ms The second set of coefficients is used to construct a seventh parameter matrix sequence and an eighth parameter matrix sequence. The seventh parameter matrix sequence includes at least two seventh parameter matrices, and the eighth parameter matrix sequence includes at least two eighth parameter matrices. The nth seventh parameter matrix and the ninth parameter matrix in the seventh parameter matrix sequence are used to determine the nth eighth parameter matrix in the eighth parameter matrix sequence. The elements of the ninth parameter matrix include each third coefficient from the third set of coefficients, where n is greater than 0. A fifth relationship exists between the seventh parameter matrix, the eighth parameter matrix, and the ninth parameter matrix. This fifth relationship is constructed based on the second model, which is based on the mechanical relationships of a loudspeaker.

[0391] The values ​​of each element in the ninth parameter matrix that matches the seventh parameter matrix sequence and the eighth parameter matrix sequence are determined to obtain the measured values ​​of each third coefficient in the third coefficient set.

[0392] In some embodiments, the second determining module 1103 is further configured to:

[0393] For the nth seventh parameter matrix in the seventh parameter matrix sequence, the nth seventh parameter matrix is ​​obtained based on the acquired values ​​at the nth and (n-1)th acquisition times in the current sequence, and the acquired values ​​at the nth and (n+1)th acquisition times in the displacement sequence.

[0394] For the nth eighth parameter matrix in the eighth parameter matrix sequence, the nth eighth parameter matrix is ​​obtained based on the acquired values ​​at the nth acquisition time, the (n-1)th acquisition time, and the (n+1)th acquisition time in the displacement sequence, as well as the second set of coefficients.

[0395] In some embodiments, the second set of coefficients includes: M ms The coefficients of the included monomials, R ms The coefficients of the monomials of the linear part included in (v(n)), k ms The coefficients of the monomials of the linear part included in (x(n)).

[0396] In some embodiments, the third set of coefficients includes: the coefficients of the monomials of the nonlinear portion of Bl(x(n)), R ms The coefficients of the monomials of the nonlinear part included in (v(n)), k ms The coefficients of the monomials of the nonlinear part included in (x(n)).

[0397] 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.

[0398] 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.

[0399] 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.

[0400] 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.

[0401] 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.

[0402] It should be noted that, Figure 12 This is a schematic diagram of a hardware entity of an electronic device according to an embodiment of this application, such as... Figure 12 As shown, the electronic device 1200 includes: a processor 1201, at least one communication bus 1202, a user interface 1203, at least one external communication interface 1204, and a memory 1205. The communication bus 1202 is configured to enable communication between these components. The user interface 1203 may include a display screen, and the external communication interface 1204 may include standard wired and wireless interfaces.

[0403] The memory 905 is configured to store instructions and applications executable by the processor 1201, 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).

[0404] 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.

[0405] 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.

[0406] 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.

[0407] 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.

[0408] 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.

[0409] 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.

[0410] 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.

[0411] 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: A current sequence, a displacement sequence, and a voltage sequence are obtained. The current sequence is the acquisition result obtained by acquiring the current of the speaker under test at M acquisition times. The displacement sequence is the acquisition result obtained by acquiring the displacement of the speaker under test at M acquisition times. The voltage sequence is the acquisition result obtained by acquiring the voltage of the speaker under test at M acquisition times. Based on at least two first sequences and a first model, determine the measured value of each first coefficient in the first coefficient set, wherein the first sequence is any one of a current sequence, a displacement sequence, and a voltage sequence, and the first coefficient is the coefficient of the monomial included in the first model parameters, and the first model is constructed based on the first model parameters; Based on at least two second sequences, a second set of coefficients, and a second model, the measured values ​​of each third coefficient in the third set of coefficients are determined. The second sequence is any one of a current sequence, a displacement sequence, and a voltage sequence. The at least two first sequences are different from the at least two second sequences. The second set of coefficients is a subset of the first set of coefficients. The third coefficients are the coefficients of the monomials included in the third model parameters. The second model is constructed based on the first model parameters to which the second coefficients in the second set belong and the third model parameters.

2. The method according to claim 1, characterized in that, The at least two first sequences include: the current sequence, the voltage sequence, and the displacement sequence. Determining the measured values ​​of each first coefficient in the first coefficient set based on the at least two first sequences and the first model includes: Based on the current sequence, the voltage sequence, and the displacement sequence, a first parameter matrix sequence and a second parameter matrix sequence are constructed. The first parameter matrix sequence includes at least two first parameter matrices, and the second parameter matrix sequence includes at least two second parameter matrices. The nth first parameter matrix and the third parameter matrix in the first parameter matrix sequence are used to determine the nth second parameter matrix in the second parameter matrix sequence. The elements of the third parameter matrix include first coefficients from the first coefficient set, and n is greater than 0. A first relationship exists between the first parameter matrix, the second parameter matrix, and the third parameter matrix. This first relationship is constructed based on the first model. The first model is constructed based on the electrical relationships of the loudspeaker. The values ​​of each element in the third parameter matrix that matches the first parameter matrix sequence and the second parameter matrix sequence are determined to obtain the measured values ​​of each first coefficient in the first coefficient set.

3. The method according to claim 2, characterized in that, The construction of the first parameter matrix sequence and the second parameter matrix sequence based on the current sequence, the voltage sequence, and the displacement sequence includes: For the nth first parameter matrix in the first parameter matrix sequence, the nth first parameter matrix is ​​obtained based on the collected values ​​at the nth and (n-1)th sampling times in the current sequence, and the collected values ​​at the nth and (n+1)th sampling times in the displacement sequence. For the nth second parameter matrix in the second parameter matrix sequence, the nth second parameter matrix is ​​obtained based on the acquired value at the nth acquisition time and the acquired value at the (n-1)th acquisition time in the voltage sequence.

4. The method according to claim 2, characterized in that, The first set of coefficients includes: the coefficients of the monomial included in the DC resistance Re of the unit voice coil, and the inductance of the unit voice coil. The coefficients and force coefficients of the included monomials The coefficients of the included monomials, wherein the based on Changes and changes, the said based on Changes and changes, the said This is the value collected at the nth acquisition time in the displacement sequence.

5. The method according to any one of claims 2 to 4, characterized in that, The at least two second sequences include: the current sequence and the displacement sequence. The step of determining the measured values ​​of each third coefficient in the third coefficient set based on the at least two second sequences, the second coefficient set, and the second model includes: Based on the current sequence, the displacement sequence, and the second set of coefficients, a fourth parameter matrix sequence and a fifth parameter matrix sequence are constructed. The fourth parameter matrix sequence includes at least two fourth parameter matrices, and the fifth parameter matrix sequence includes at least two fifth parameter matrices. The nth fourth parameter matrix and the sixth parameter matrix in the fourth parameter matrix sequence are used to determine the nth fifth parameter matrix in the fifth parameter matrix sequence. The elements of the sixth parameter matrix include each third coefficient from the third set of coefficients, and n is greater than 0. A second relationship exists between the fourth parameter matrix, the fifth parameter matrix, and the sixth parameter matrix. This second relationship is constructed based on a second model, which is based on the mechanical relationships of the loudspeaker. The values ​​of each element in the sixth parameter matrix that matches the fourth parameter matrix sequence and the fifth parameter matrix sequence are determined to obtain the measured values ​​of each third coefficient in the third coefficient set.

6. The method according to claim 5, characterized in that, The construction of the fourth parameter matrix sequence and the fifth parameter matrix sequence based on the current sequence, the displacement sequence, and the second coefficient set includes: For the nth fourth parameter matrix in the fourth parameter matrix sequence, the nth fourth parameter matrix is ​​obtained based on the acquired value at the nth acquisition time and the acquired value at the (n-1)th acquisition time in the displacement sequence, where n is greater than 0; For the nth fifth parameter matrix in the fifth parameter matrix sequence, the nth fifth parameter matrix is ​​obtained based on the acquired values ​​at the nth and (n-1)th acquisition times in the current sequence, the acquired values ​​at the nth and (n-1)th acquisition times in the displacement sequence, and the second set of coefficients.

7. The method according to claim 5, characterized in that, The second set of coefficients includes: The coefficients of the included monomials, the based on Changes and changes, the said This is the value collected at the nth acquisition time in the displacement sequence.

8. The method according to claim 5, characterized in that, The third parameter set includes: equivalent resistance. The coefficients and equivalent forces of the monomials included The coefficients of the included monomials, wherein the based on Change and change, the aforementioned Based on the above Changes and changes, the said The value acquired at the nth acquisition time in the displacement sequence, the Based on the The speed at the determined nth acquisition time.

9. The method according to claim 1, characterized in that, The at least two first sequences include: the current sequence, the voltage sequence, and the displacement sequence. Determining the measured values ​​of each first coefficient in the first coefficient set based on the at least two first sequences and the first model includes: The nth estimated value of the second parameter is determined based on at least one first parameter of the loudspeaker under test at the nth or (n-1)th acquisition time, the nth reference value of each first coefficient in the first coefficient set, and the (n-1)th estimated value of the second parameter; 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; the relationship between the at least one first parameter and the second parameter is constructed based on the first model. If the nth predicted value of the second parameter does not meet the convergence condition, for each first coefficient, based on the nth predicted value of the second parameter and the nth reference value of the first coefficient, the (n+1)th reference value of the first coefficient is determined, and the (n+1)th predicted value of the second parameter is determined based on the collected value of the at least one first parameter at the (n+1)th or nth time and the (n+1)th reference value of each first coefficient in the first coefficient set, until the Nth predicted value of the second parameter meets the convergence condition, and the Nth reference value of the first coefficient is determined as the measured value of the first coefficient, where n is greater than 0 and less than N.

10. The method according to claim 9, characterized in that, The first set of coefficients includes: the coefficients of the monomials included in Re, The coefficients of the monomials included in the linear part, In the case of the coefficients of the monomial of the included linear part, at least one first parameter includes: the displacement and the current, and the second parameter includes: the voltage; 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 or n-1th acquisition time, the nth reference value of each first coefficient in the first coefficient set, and the n-1th estimated value of the second parameter 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 each first coefficient in the first coefficient set, and the third relationship, the nth estimated value of the voltage is determined. The first current is the value collected at the nth sampling time in the current sequence, the second current is the value collected at the (n-1)th sampling time in the current sequence, the first displacement is the value collected at the nth sampling time in the displacement sequence, and the second displacement is the value collected at the (n-1)th sampling time in the displacement sequence. The third relationship is determined based on the first model, which is constructed based on the electrical relationship of the loudspeaker.

11. The method according to claim 9, characterized in that, The first set of coefficients includes: The coefficients of the included monomials, The coefficients of the monomials included in the linear part, In the case of the coefficients of the monomial of the included linear part, the at least one first parameter includes: the current, the second parameter includes: the displacement, and 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 or n-1th acquisition time, the nth reference value of each first coefficient in the first coefficient set, and the n-1th estimated value of the second parameter 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 each first coefficient in the first coefficient set, as well as the fourth relationship, the nth estimated value of the displacement is determined. The second current is the acquired value at the (n-1)th acquisition time of the current sequence. The fourth relationship is determined based on the first model, which is constructed based on the mechanical relationship of the loudspeaker.

12. The method according to any one of claims 9 to 11, characterized in that, The at least two sequences include: the current sequence and the displacement sequence; the determination of the measured values ​​of each third coefficient in the third coefficient set based on at least two second sequences, a second coefficient set, and a second model includes: Based on the current sequence, the displacement sequence, and M ms The second set of coefficients is used to construct a seventh parameter matrix sequence and an eighth parameter matrix sequence. The seventh parameter matrix sequence includes at least two seventh parameter matrices, and the eighth parameter matrix sequence includes at least two eighth parameter matrices. The nth seventh parameter matrix and the ninth parameter matrix in the seventh parameter matrix sequence are used to determine the nth eighth parameter matrix in the eighth parameter matrix sequence. The elements of the ninth parameter matrix include each third coefficient from the third set of coefficients, where n is greater than 0. A fifth relationship exists between the seventh parameter matrix, the eighth parameter matrix, and the ninth parameter matrix. This fifth relationship is constructed based on the second model, which is based on the mechanical relationships of a loudspeaker. The values ​​of each element in the ninth parameter matrix that matches the seventh parameter matrix sequence and the eighth parameter matrix sequence are determined to obtain the measured values ​​of each third coefficient in the third coefficient set.

13. The method according to claim 12, wherein, The construction of the seventh parameter matrix sequence and the eighth parameter matrix sequence based on the current sequence, the displacement sequence, and the second set of coefficients includes: For the nth seventh parameter matrix in the seventh parameter matrix sequence, the nth seventh parameter matrix is ​​obtained based on the acquired values ​​at the nth and (n-1)th acquisition times in the current sequence, and the acquired values ​​at the nth and (n+1)th acquisition times in the displacement sequence. For the nth eighth parameter matrix in the eighth parameter matrix sequence, the nth eighth parameter matrix is ​​obtained based on the acquired values ​​at the nth acquisition time, the (n-1)th acquisition time, and the (n+1)th acquisition time in the displacement sequence, as well as the second coefficient set.

14. The method according to claim 12, characterized in that, The second set of coefficients includes: The coefficients of the included monomials 、 The coefficients of the monomials included in the linear part, The coefficients of the monomials of the linear part included.

15. The method according to claim 12, characterized in that, The third set of coefficients includes: The coefficients of the monomials included in the nonlinear part, The coefficients of the monomials included in the nonlinear part, The coefficients of the monomials of the nonlinear part included.

16. A measuring device, characterized in that, The device includes: The acquisition module is used to acquire a current sequence, a displacement sequence, and a voltage sequence. The current sequence is the acquisition result obtained by acquiring the current of the speaker under test at M acquisition times. The displacement sequence is the acquisition result obtained by acquiring the displacement of the speaker under test at the M acquisition times. The voltage sequence is the acquisition result obtained by acquiring the voltage of the speaker under test at the M acquisition times. The first determining module is used to determine the measured value of each first coefficient in the first coefficient set based on at least two first sequences and a first model. The first coefficient set includes at least one first coefficient, the first sequence is any one of a current sequence, a displacement sequence, and a voltage sequence, the first coefficient is the coefficient of the monomial included in the first model parameters, and the first model is constructed based on the first model parameters. The second determining module is used to determine the measured value of each third coefficient in the third coefficient set based on at least two second sequences, a second coefficient set, and a second model. The second sequence is any one of a current sequence, a displacement sequence, and a voltage sequence. The at least two first sequences are different from the at least two second sequences. The second coefficient set is a subset of the first coefficient set. The third coefficient is the coefficient of the monomial included in the third model parameters. The second model is constructed based on the first model parameters to which the second coefficients in the second coefficient set belong and the third model parameters.

17. 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 15.

18. 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 15.

Citation Information

Patent Citations

  • Loudspeaker system identification method and device, storage medium and communication terminal

    CN111796793A

  • Method for processing an audio signal with modeling of the overall response of the electrodynamic loudspeaker

    US20140064502A1