A method, device, chip and module equipment for calibrating model parameters of a loudspeaker

By acquiring the speaker's measurement information and calibrating the model parameters, the problem of reduced control effect caused by individual performance differences in speakers produced in the same batch was solved, and more precise speaker control was achieved.

CN114449433BActive Publication Date: 2024-11-29SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210181413.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-25
Publication Date
2024-11-29
Estimated Expiration
2042-02-25

AI Technical Summary

Technical Problem

Individual performance differences exist among loudspeakers produced in the same batch, resulting in reduced control effectiveness when using the same model parameters for intelligent control.

Method used

By acquiring measurement information of the loudspeaker, such as impedance measurement information, the model parameters of the loudspeaker can be calibrated to improve its accuracy.

Benefits of technology

The accuracy of the speaker model parameters has been improved, thereby enhancing the control effect of the terminal device on the speaker.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114449433B_ABST
    Figure CN114449433B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, chip and module equipment for calibrating model parameters of a speaker, the method comprising: obtaining a first model parameter of the speaker; obtaining measurement information corresponding to the speaker, the measurement information comprising one or more of impedance measurement information, electromotive force measurement information or magnetic field measurement information; calibrating the first model parameter based on the impedance measurement information to obtain a second model parameter corresponding to the speaker. By means of such a method, the accuracy of the speaker model parameters can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a method, device, chip and module equipment for calibrating model parameters of a loudspeaker. Background Art

[0002] Whether controlling the speaker (including diaphragm displacement control, temperature control, etc.) to prevent speaker system failure (such as burnout, shortened service life, or sudden performance changes), or controlling the speaker (including gain control of the speaker's frequency band signals, etc.) to maximize speaker performance (such as achieving better sound quality), all intelligent control is based on the speaker's model parameters. The speaker model parameters are calculated based on the equivalent physical model after physical modeling is performed based on the speaker's operating principle. Generally, speakers produced in the same batch have the same model parameters because they have the same operating principle.

[0003] However, in actual production, individual performance differences can occur between speakers produced in the same batch. Using the same model parameters for intelligent control of every speaker will reduce the overall control effectiveness. Therefore, improving the accuracy of each speaker's model parameters, and thus the accuracy of subsequent speaker control, is an urgent issue to be addressed. Summary of the Invention

[0004] The present application provides a speaker model parameter calibration method, device, chip and module equipment, which can improve the accuracy of the speaker model parameters of the terminal device.

[0005] In a first aspect, the present application provides a method for calibrating model parameters of a speaker, the method comprising: obtaining first model parameters of the speaker; obtaining measurement information corresponding to the speaker, the measurement information including one or more of impedance measurement information, electromotive force measurement information or magnetic field measurement information; calibrating the first model parameters based on the measurement information to obtain second model parameters corresponding to the speaker.

[0006] Based on the speaker model parameter calibration method provided in the first aspect, the speaker model parameters of the terminal device can be corrected according to the measured information, thereby improving the accuracy of the speaker model parameters.

[0007] In a possible implementation manner, the measurement information packet includes impedance measurement information, where the impedance measurement information includes an impedance measurement value of the speaker at at least one frequency point;

[0008] In one possible implementation, impedance calculation information is determined based on the first model parameters, where the impedance calculation information includes a calculated impedance value of the speaker at at least one frequency point. Based on the impedance calculation information and the impedance measurement information, the first model parameters are calibrated to obtain the second model parameters.

[0009] In one possible embodiment, a deviation vector is determined based on the impedance calculation information and the impedance measurement information; the elements in the deviation vector are associated with the difference between the impedance calculation value and the impedance measurement value at each frequency point; and based on the deviation vector, the first model parameters are calibrated to obtain the second model parameters.

[0010] In a possible implementation, an excitation signal is sent to the speaker; and based on the excitation signal, measurement information corresponding to the speaker is measured.

[0011] In a possible implementation, measurement information corresponding to a speaker of another device is received.

[0012] In one possible implementation, a model parameter calibration request is received, where the model parameter calibration request is used to calibrate a first model parameter.

[0013] In the second aspect, the present application provides a model parameter calibration device for a speaker, which includes: an acquisition unit for obtaining a first model parameter of the speaker; the acquisition unit is also used to obtain measurement information corresponding to the speaker, the measurement information including one or more of impedance measurement information, electromotive force measurement information or magnetic field measurement information; a calibration unit is used to calibrate the first model parameter based on the measurement information to obtain a second model parameter corresponding to the speaker.

[0014] In a possible implementation, the measurement information includes impedance measurement information, where the impedance measurement information includes an impedance measurement value of the speaker at at least one frequency point.

[0015] In one possible embodiment, the device also includes a determination unit, which is used to determine impedance calculation information based on the first model parameter, and the impedance calculation information includes the impedance calculation value of the speaker at at least one frequency point; the calibration unit is also used to calibrate the first model parameter based on the impedance calculation information and the impedance measurement information to obtain the second model parameter.

[0016] In one possible embodiment, the determination unit is further used to determine a deviation vector based on the impedance calculation information and the impedance measurement information; the elements in the deviation vector are associated with the difference between the impedance calculation value and the impedance measurement value at each frequency point; the calibration unit is further used to calibrate the first model parameters based on the deviation vector to obtain the second model parameters.

[0017] In a possible implementation, the device further includes a sending unit and a measuring unit. The sending unit is configured to send an excitation signal to the speaker; and the measuring unit is configured to measure measurement information corresponding to the speaker based on the excitation signal.

[0018] In a possible implementation manner, the acquiring unit is further configured to receive measurement information corresponding to the speaker from other devices.

[0019] In a possible implementation, the acquiring unit is further configured to receive a model parameter calibration request, where the model parameter calibration request is used to calibrate the first model parameter.

[0020] In a third aspect, the present application provides a chip comprising a processor and a communication interface, wherein the processor is configured to perform the following operations: obtaining first model parameters of a speaker; obtaining measurement information corresponding to the speaker, the measurement information comprising one or more of impedance measurement information, electromotive force measurement information, or magnetic field measurement information; calibrating the first model parameters based on the measurement information to obtain second model parameters corresponding to the speaker.

[0021] In a fourth aspect, the present application provides a chip comprising a processor and a communication interface, wherein the processor is configured to perform the following operations: obtaining first model parameters of a speaker; obtaining measurement information corresponding to the speaker, the measurement information including one or more of impedance measurement information, electromotive force measurement information, or magnetic field measurement information; calibrating the first model parameters based on the measurement information to obtain second model parameters corresponding to the speaker.

[0022] In the fifth aspect, the present application provides a module device, which includes a communication module, a power supply module, a storage module and a chip, wherein: the power supply module is used to provide power to the module device; the storage module is used to store data and instructions; the communication module is used to conduct internal communication within the module device, or for the module device to communicate with external devices; the chip is used to: obtain first model parameters of the speaker; obtain measurement information corresponding to the speaker, the measurement information including one or more of impedance measurement information, electromotive force measurement information or magnetic field measurement information; calibrate the first model parameters based on the measurement information to obtain second model parameters corresponding to the speaker.

[0023] In the sixth aspect, an embodiment of the present invention discloses a terminal device, which includes a memory and a processor, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method in the above-mentioned first aspect and any possible implementation thereof.

[0024] In the seventh aspect, the present application provides a computer-readable storage medium, which stores computer-readable instructions. When the computer-readable instructions are executed on a communication device, the communication device executes the method in the above-mentioned first aspect and any possible implementation thereof.

[0025] In an eighth aspect, the present application provides a computer program or computer program product, comprising codes or instructions, which, when executed on a computer, enable the computer to execute the method in the first aspect and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0027] Figure 1 This is a flow chart of a method for calibrating loudspeaker model parameters provided by an embodiment of the present application;

[0028] Figure 2 This is an electric-acoustic analogy diagram of a loudspeaker physical model provided in an embodiment of the present application;

[0029] Figure 3 1 is a flow chart of a method for calibrating loudspeaker model parameters provided in an embodiment of the present application;

[0030] Figure 4 1 is a schematic structural diagram of a speaker model parameter calibration device provided in an embodiment of the present application;

[0031] Figure 5 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0032] Figure 6 It is a structural diagram of a module device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The specific embodiments of the present application are further described in detail below with reference to the accompanying drawings.

[0034] The terms "first" and "second" and the like in the specification, claims, and drawings of this application are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.

[0035] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0036] In this application, "at least one (item)" refers to one or more, "more than one" refers to two or more, "at least two (items)" refers to two or three and more than three, and "and / or" is used to describe the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0037] It should be noted that the speaker model parameter calibration method provided in this application can be applied to a terminal device equipped with a speaker; it can also be applied to other terminal devices that have a communication connection with the terminal device equipped with a speaker, such as a terminal device that is connected to the terminal device and performs performance testing on the speaker of the terminal device, etc. The terminal devices mentioned in this application include devices that provide voice and / or data connectivity to users, for example, a terminal device is a device with wireless transceiver capabilities, which can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on water (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons and satellites, etc.). The terminal can be a mobile phone, a vehicle, a roadside unit, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a vehicle-mounted terminal device, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a wearable terminal device, etc. The embodiments of the present application do not limit the application scenarios. The terminal device may sometimes also be referred to as a terminal, user equipment (UE), an access terminal device, a vehicle-mounted terminal, an industrial control terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote terminal device, a mobile device, a UE terminal device, a terminal device, a wireless communication device, a UE agent or a UE device, etc. The terminal may also be fixed or mobile. In an embodiment of the present application, the device for realizing the function of the terminal device can be a terminal device, or it can be a device that can support the terminal device to realize the function, such as a chip system or a combination device or component that can realize the function of the terminal device. The device can be installed in the terminal device.

[0038] Before the terminal device leaves the factory, the speaker model parameters of the terminal device have already been stored in the terminal device. The terminal device can subsequently directly obtain the speaker model parameters from the storage space and intelligently control the speaker based on the speaker model parameters. The accuracy of the speaker model parameters will directly affect the control effect of the terminal device on the speaker. Usually, the model parameters of the speaker are calculated based on the physical model after physical modeling is carried out according to the working principle of the speaker. Therefore, the speakers produced in the same batch have the same working principle and the same speaker model parameters. However, in the actual production process, there will be individual performance differences between speakers produced in the same batch. If the same model parameters are used for intelligent control of each speaker, the control effect of the speaker will be reduced.

[0039] The present application provides a method for calibrating the model parameters of a speaker. By correcting the speaker model parameters of a terminal device based on actual measurement information, the accuracy of the speaker model parameters is improved, thereby improving the control effect of the terminal device on the speaker. It should be noted that the model parameters of the speaker can be applied in a variety of scenarios. The present application only uses the scenario of intelligent control of the speaker as an example, which should not be regarded as a specific limitation of the present application. That is, in other application scenarios, calibrating the model parameters of the speaker using the speaker model parameter calibration method provided in the present application can be regarded as falling within the scope of protection of the present application.

[0040] The following further describes in detail the speaker model parameter calibration method, device, chip and module equipment provided in the embodiments of the present application.

[0041] See Figure 1 As shown, Figure 1 This is a flow chart of a method for calibrating speaker model parameters provided by an embodiment of the present application. Figure 1 As shown, the speaker model parameter calibration method includes the following S101 to S103. Figure 1 The method shown may be executed by a terminal device or a chip in the terminal device. Figure 1 The method is described by taking a terminal device as an example of an execution subject.

[0042] S101: Obtain first model parameters of a speaker.

[0043] The first model parameters may be understood as initial model parameters of the speaker, or model parameters to be calibrated. For example, the first model parameters of the speaker are already stored in the terminal device before the terminal device leaves the factory, and the terminal device may obtain the first model parameters of the speaker from the storage space.

[0044] For example, physical modeling is performed based on the working principle of the loudspeaker, and the obtained electric-acoustic analogy diagram of the loudspeaker physical model is as follows: Figure 2 As shown. Figure 2 The power-acoustic analogy diagram shown includes the power supply u of the speaker; the DC resistance R in the circuit e , which includes the internal resistance of the speaker unit voice coil and the signal source, the unit is Ω; the speaker unit voice coil inductance L e , in H; the secondary resistor R2 and the secondary inductor L2 are connected in parallel to characterize the eddy current effect; the electromechanical coupling factor BL of the loudspeaker unit; the equivalent effective resistance R of the loudspeaker suspension system m , which also includes the acoustic resistance caused by the air load and the energy absorption of the cavity, the unit is N / (m / s); the equivalent mass m of the loudspeaker suspension system including the air load, the unit is kg; the equivalent force C of the loudspeaker suspension system including the air in the cavity m , the unit is m / N. After the loudspeaker is produced, the components (i.e. R e 、L e , L2, R2, BL, R m 、m、C m ) parameter values ​​are stored in the storage space of the terminal device. In this case, the terminal device can obtain the first model parameters of the speaker from the storage space, and the first model parameters are used to indicate the parameters of each component (ie, R e 、L e , L2, R2, BL, R m 、m、C m It should be noted that the first model parameter may be a parameter value of some or all components in the physical model, and this application does not specifically limit this.

[0045] S102: Obtain measurement information corresponding to the speaker.

[0046] The measurement information is measurement information that can reflect actual physical characteristics of the loudspeaker. For example, the measurement information includes one or more of impedance information, electromotive force measurement information, or magnetic field measurement information.

[0047] In one possible implementation, the terminal device sends an excitation signal to the speaker, and further, based on the excitation signal, the terminal device measures measurement information that can reflect the actual physical characteristics of the speaker. The excitation signal includes but is not limited to a swept frequency signal or white noise.

[0048] It should be noted that the way in which the terminal device measures the measurement information can be adaptively adjusted according to the type of excitation signal, and this application does not specifically limit this. The following is a schematic explanation taking the measurement information as impedance measurement information and the excitation signal as a swept frequency signal or a white noise signal as an example. When the excitation signal sent by the terminal device to the speaker is a swept frequency signal, the terminal device can directly measure the impedance measurement value of the speaker at different frequencies based on the swept frequency signal. When the excitation signal sent by the terminal device to the speaker is a white noise signal, the terminal device can calculate based on the Fourier transform of the current and voltage signal (also known as the IV signal) of the speaker to obtain the impedance measurement information, or, alternatively, calculate the impedance measurement information through methods such as adaptive filters.

[0049] In another possible implementation, the terminal device receives measurement information corresponding to the speaker from another device. In other words, the other device measures the speaker, obtains measurement information reflecting the actual physical characteristics of the speaker, and then sends the measurement information to the terminal device.

[0050] S103: Calibrate first model parameters based on the measurement information to obtain second model parameters corresponding to the speaker.

[0051] The terminal device calibrates the first model parameters based on the measurement information reflecting the actual physical characteristics of the speaker to obtain second model parameters corresponding to the speaker. This can be understood as the terminal device calibrating the model parameters of a physical model established based on the operating principle of the speaker based on the measurement information of the actual physical characteristics of the speaker, so that the physical characteristics of the corrected physical model of the speaker approximate the actual physical characteristics of the speaker.

[0052] In one possible application scenario, a terminal device receives a model parameter calibration request, which is used to calibrate a first model parameter. Furthermore, the terminal device obtains measurement information corresponding to the speaker based on the model parameter calibration request, and calibrates the first model parameter based on the measurement information. The model parameter calibration request includes but is not limited to the following situations: Scenario 1: The user generates a calibration requirement for the speaker model parameters during the use of the terminal device; Scenario 2: The terminal device triggers a calibration requirement for the speaker model parameters during the use of the speaker model parameters; Scenario 3: The test device initiates a model parameter calibration request to the terminal device before the terminal device leaves the factory.

[0053] Visible, through Figure 1 The model parameter calibration method of the speaker shown can improve the accuracy of the speaker model parameters, thereby improving the control effect of the terminal device on the speaker.

[0054] The following describes in detail the speaker model parameter calibration method provided by this application, assuming that the measurement information includes impedance measurement information. Figure 3 As shown, Figure 3 This is a flow chart of another method for calibrating speaker model parameters provided by an embodiment of the present application. Figure 3 As shown, the speaker model parameter calibration method includes the following S301 to S304. Figure 3 The method shown may be executed by a terminal device or a chip in the terminal device. Figure 3 The method is described by taking a terminal device as an example of an execution subject.

[0055] S301: Obtain first model parameters of a speaker.

[0056] The specific implementation of S301 can refer to the specific implementation of S101 mentioned above, and the repeated parts will not be repeated here.

[0057] S302: Obtain impedance measurement information corresponding to the loudspeaker, where the impedance measurement information includes an impedance measurement value of the loudspeaker at at least one frequency point.

[0058] The specific implementation of S302 can refer to the related implementation of obtaining impedance measurement information described in the aforementioned S102, and the repeated parts will not be repeated here.

[0059] S303: Determine impedance calculation information based on the first model parameter, where the impedance calculation information includes an impedance calculation value of the speaker at at least one frequency point.

[0060] Specifically, physical modeling is performed based on the working principle of the loudspeaker, and the obtained electric-acoustic analogy diagram of the loudspeaker physical model is as follows: Figure 2 As shown. Figure 2 The connection relationship between the various components in the power-acoustic analogy diagram is shown in Formula (1), and the total impedance model of the speaker is obtained.

[0061]

[0062] Wherein, ω is the circular frequency, ω=2πf, and f is the operating frequency of the speaker. Furthermore, the terminal device can calculate the impedance calculation value of the speaker at at least one frequency point according to formula (1).

[0063] S304: Based on the impedance calculation information and the impedance measurement information, calibrate the first model parameters to obtain second model parameters.

[0064] In one possible implementation, the terminal device determines a deviation vector based on the impedance calculation information and the impedance measurement information. The elements of the deviation vector are associated with the difference between the calculated impedance value and the measured impedance value at each frequency point. Furthermore, the terminal device calibrates the first model parameters based on the deviation vector to obtain the second model parameters.

[0065] Specifically, Figure 2 The DC resistance R in the physical model shown e It can be obtained approximately at low frequency, so the model parameter vector x = [L e ,,R m ,m,BL,C m , L2, R2]; According to the first model parameter (set as x0, which can be obtained according to the design specifications provided by the speaker supplier) and the DC resistance R e , calculate the impedance calculation information; after the terminal device obtains the impedance measurement information, it determines the deviation vector according to the impedance calculation information and the impedance measurement information as shown in formula (2).

[0066] h(x)=[h1(x),h2(x)…h m (x)] (2)

[0067] Where i is the index of the frequency point (i.e., it represents the i-th frequency point); h i (x) is the i-th element in the deviation vector, representing the impedance residual at the i-th frequency point, h i (x) is related to the difference between the calculated impedance value and the measured impedance value at the i-th frequency point, which can be specifically reflected in formula (3).

[0068] h i (x)=σ i (Zem,c,i(x)-Zem,m,i(x)) (3)

[0069] Where Zem,c,i(x) is the calculated impedance value at the i-th frequency point; Zem,m,i(x) is the measured impedance value at the i-th frequency point; σ i is the deviation weight factor corresponding to the i-th frequency point, usually set to 1 / Zem,m,i(x).

[0070] Furthermore, the terminal device optimizes and solves the model parameters according to the deviation function of formula (4) and the iterative equation of formula (5).

[0071]

[0072] x i+1 =x i -(J T J+α·diag[J T J])-1 J T h (5)

[0073] Among them, x i is the parameter vector after the i-th iteration; h(x) is the deviation vector; J is the Jacobian matrix, which can be expressed as dh / dx; α is the step size of each iteration, which can change according to the iteration direction. For example, if the initial step size α is 1 and the deviation value becomes smaller after a certain iteration, it can be understood that the iteration direction is correct. In the next iteration, α can be reduced to reduce the influence of the gradient descent method, so that the next iteration process is mainly based on the Newton method and accelerates convergence; conversely, if the deviation value becomes larger after a certain iteration, α can be increased in the next iteration.

[0074] For ease of understanding, the process of optimizing and solving the model parameters by the terminal device according to the deviation function of formula (4) and the iterative equation of formula (5) can be described as follows: the terminal device iterates the model parameter x according to the iterative equation of formula (5); the model parameter x after each iteration is substituted into formula (4) to solve the function value F(x); if F(x) is greater than a preset threshold and the number of iterations is less than the set maximum number of iterations, the model parameter x is iterated based on the iterative equation according to formula (5). If F(x) is less than or equal to the preset threshold after a certain iteration, the iteration is stopped and the model parameter x of this iteration is used as the second model parameter; or if F(x) is greater than the preset threshold after a certain iteration, but the number of iterations is equal to or greater than the preset maximum number of iterations, the iteration is stopped and the model parameter x of this iteration is used as the second model parameter. The preset threshold and the maximum number of iterations can be adjusted accordingly according to the specific application scenario and are not specifically limited here.

[0075] See Figure 4 , Figure 4 1 is a schematic diagram of the structure of a speaker model parameter calibration device provided by an embodiment of the present invention. The speaker model parameter calibration device can be a terminal device or a device with terminal device functions (such as a chip). Figure 4 As shown, the speaker model parameter calibration device 400 may include:

[0076] An acquiring unit 401 is configured to acquire first model parameters of a loudspeaker;

[0077] The acquisition unit 401 is further configured to acquire measurement information corresponding to the speaker, where the measurement information includes one or more of impedance measurement information, electromotive force measurement information, or magnetic field measurement information;

[0078] The calibration unit 402 is configured to calibrate the first model parameters based on the measurement information to obtain second model parameters corresponding to the speaker.

[0079] In a possible implementation, the measurement information includes impedance measurement information, where the impedance measurement information includes an impedance measurement value of the speaker at at least one frequency point.

[0080] In one possible implementation, the device also includes a determination unit 403, which is used to determine impedance calculation information based on the first model parameters, where the impedance calculation information includes the impedance calculation value of the speaker at at least one frequency point; the calibration unit 402 is also used to calibrate the first model parameters based on the impedance calculation information and the impedance measurement information to obtain the second model parameters.

[0081] In one possible embodiment, the determination unit 403 is further used to determine a deviation vector based on the impedance calculation information and the impedance measurement information; the elements in the deviation vector are associated with the difference between the impedance calculation value and the impedance measurement value at each frequency point; the calibration unit 402 is further used to calibrate the first model parameters based on the deviation vector to obtain the second model parameters.

[0082] In a possible implementation, the apparatus further includes a sending unit 404 and a measuring unit 405 . The sending unit 404 is configured to send an excitation signal to the speaker; and the measuring unit 405 is configured to measure measurement information corresponding to the speaker based on the excitation signal.

[0083] In a possible implementation, the acquiring unit 401 is further configured to receive measurement information corresponding to the speaker from other devices.

[0084] In a possible implementation, the acquiring unit 401 is further configured to receive a model parameter calibration request, where the model parameter calibration request is used to calibrate the first model parameter.

[0085] See also Figure 5 , Figure 5: This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present invention. The terminal device 500 may include a memory 501 and a processor 502. Optionally, it also includes a communication interface 503. The memory 501, the processor 502, and the communication interface 503 are connected via one or more communication buses. The communication interface 503 is controlled by the processor 502 to send and receive information. The memory 501 may include a read-only memory and a random access memory, and provides instructions and data to the processor 502. A portion of the memory 501 may also include a non-volatile random access memory. The communication interface 503 is used to receive or send data. The processor 502 may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor. Alternatively, the processor 502 may be any conventional processor.

[0086] The memory 501 is used to store program instructions.

[0087] The processor 502 is configured to call the program instructions stored in the memory 501 .

[0088] The processor 502 calls the program instructions stored in the memory 501 to enable the terminal device 500 to perform the following operations: obtain the first model parameters of the speaker; obtain measurement information corresponding to the speaker, which measurement information includes one or more of impedance measurement information, electromotive force measurement information or magnetic field measurement information; calibrate the first model parameters based on the measurement information to obtain the second model parameters corresponding to the speaker.

[0089] In a possible implementation manner, the measurement information packet includes impedance measurement information, where the impedance measurement information includes an impedance measurement value of the speaker at at least one frequency point;

[0090] In one possible implementation, the processor 502 is further configured to determine impedance calculation information based on the first model parameters, where the impedance calculation information includes an impedance calculation value of the speaker at at least one frequency point; and calibrate the first model parameters based on the impedance calculation information and the impedance measurement information to obtain second model parameters.

[0091] In one possible embodiment, the processor 502 is further used to determine a deviation vector based on the impedance calculation information and the impedance measurement information; the elements in the deviation vector are associated with the difference between the impedance calculation value and the impedance measurement value at each frequency point; and based on the deviation vector, the first model parameters are calibrated to obtain the second model parameters.

[0092] In a possible implementation, the processor 502 is further configured to send an excitation signal to the speaker; and measure measurement information corresponding to the speaker based on the excitation signal.

[0093] In a possible implementation, the processor 502 is further configured to receive measurement information corresponding to speakers of other devices.

[0094] In a possible implementation, the processor 502 is further configured to receive a model parameter calibration request, where the model parameter calibration request is used to calibrate the first model parameter.

[0095] It should be noted that Figure 4 or Figure 5 The details not mentioned in the corresponding embodiments and the specific implementation of each step can be found in Figure 1 or Figure 3 The illustrated embodiments and the aforementioned contents will not be described in detail here.

[0096] The present application also provides a chip capable of executing the steps of the electronic device described in the aforementioned method embodiment. The chip includes a processor and a communication interface. The processor is configured to invoke the communication interface to perform the following operations: obtaining first model parameters of a speaker; obtaining measurement information corresponding to the speaker, the measurement information including one or more of impedance measurement information, electromotive force measurement information, or magnetic field measurement information; and calibrating the first model parameters based on the measurement information to obtain second model parameters corresponding to the speaker.

[0097] In a possible implementation manner, the measurement information packet includes impedance measurement information, where the impedance measurement information includes an impedance measurement value of the speaker at at least one frequency point;

[0098] In one possible embodiment, the processor is further used to determine impedance calculation information based on the first model parameters, where the impedance calculation information includes the impedance calculation value of the speaker at at least one frequency point; and calibrate the first model parameters based on the impedance calculation information and the impedance measurement information to obtain the second model parameters.

[0099] In one possible embodiment, the processor is further used to determine a deviation vector based on the impedance calculation information and the impedance measurement information; the elements in the deviation vector are associated with the difference between the impedance calculation value and the impedance measurement value at each frequency point; based on the deviation vector, the first model parameters are calibrated to obtain the second model parameters.

[0100] In a possible implementation, the processor is further configured to send an excitation signal to the speaker; and measure measurement information corresponding to the speaker based on the excitation signal.

[0101] In a possible implementation, the processor is further configured to receive measurement information corresponding to speakers of other devices.

[0102] In a possible implementation, the processor is further configured to receive a model parameter calibration request, where the model parameter calibration request is used to calibrate the first model parameter.

[0103] like Figure 6 As shown, Figure 6 : is a structural diagram of a module device provided in an embodiment of the present application. The module device 600 can execute the relevant steps of the terminal device in the aforementioned method embodiment, and the module device 600 includes: a communication module 601, a power module 602, a storage module 603 and a chip 604. Among them, the power module 602 is used to provide power to the module device; the storage module 603 is used to store data and instructions; the communication module 601 is used for internal communication within the module device, or for the module device to communicate with external devices; the chip 604 is used to: obtain the first model parameters of the speaker; obtain measurement information corresponding to the speaker, the measurement information including one or more of impedance measurement information, electromotive force measurement information or magnetic field measurement information; calibrate the first model parameters based on the measurement information to obtain the second model parameters corresponding to the speaker.

[0104] In a possible implementation manner, the measurement information packet includes impedance measurement information, where the impedance measurement information includes an impedance measurement value of the speaker at at least one frequency point;

[0105] In one possible implementation, the chip 604 is further configured to determine impedance calculation information based on the first model parameters, where the impedance calculation information includes an impedance calculation value of the speaker at at least one frequency point; and calibrate the first model parameters to obtain second model parameters based on the impedance calculation information and the impedance measurement information.

[0106] In one possible embodiment, the chip 604 is further used to determine a deviation vector based on the impedance calculation information and the impedance measurement information; the elements in the deviation vector are associated with the difference between the impedance calculation value and the impedance measurement value at each frequency point; and based on the deviation vector, the first model parameters are calibrated to obtain the second model parameters.

[0107] In a possible implementation, the chip 604 is further configured to send an excitation signal to the speaker; and measure measurement information corresponding to the speaker based on the excitation signal.

[0108] In a possible implementation, the chip 604 is further configured to receive measurement information corresponding to speakers of other devices.

[0109] In a possible implementation, the chip 604 is further configured to receive a model parameter calibration request, where the model parameter calibration request is used to calibrate the first model parameter.

[0110] An embodiment of the present application also provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is executed on a processor, the method flow of the above method embodiment is implemented.

[0111] An embodiment of the present application further provides a computer program product. When the computer program product is run on a processor, the method flow of the above method embodiment is implemented.

[0112] Regarding the various modules / units contained in the various devices and products described in the above embodiments, they can be software modules / units, hardware modules / units, or partly software modules / units and partly hardware modules / units. For example, for various devices and products applied to or integrated into a chip, the various modules / units contained therein can all be implemented in the form of hardware such as circuits, or at least some of the modules / units can be implemented in the form of software programs, which run on the integrated processor inside the chip, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated into a chip module, the various modules / units contained therein can all be implemented in the form of hardware such as circuits, and different modules / units can be located in the same part of the chip module (such as a chip, circuit module, etc.) or in different components, or at least some of the modules / units can be implemented in the form of software programs. It can be implemented in the form of a software program, which runs on the processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the modules / units contained therein can all be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on the processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.

[0113] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain operations can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0114] The descriptions of the various embodiments provided in this application can refer to each other. The descriptions of each embodiment have their own focus. For parts not described in detail in a particular embodiment, please refer to the relevant descriptions of other embodiments. For the convenience and brevity of description, for example, the functions and operations performed by the various devices and equipment provided in the embodiments of this application can refer to the relevant descriptions of the method embodiments of this application. The various method embodiments and the various device embodiments can also refer to, be combined with, or quote each other.

[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for calibrating model parameters of a loudspeaker, characterized in that: The method comprises: Obtaining first model parameters of the speaker; Acquire measurement information corresponding to the speaker, wherein the measurement information includes impedance measurement information, and the impedance measurement information includes an impedance measurement value of the speaker at at least one frequency point; the measurement information also includes electromotive force measurement information and / or magnetic field measurement information; Based on the first model parameter, determining impedance calculation information, the impedance calculation information including an impedance calculation value of the speaker at the at least one frequency point; Based on the impedance calculation information and the impedance measurement information, determining a deviation vector, wherein an element in the deviation vector is associated with a difference between an impedance calculation value and an impedance measurement value at each frequency point; Based on the deviation function and the iterated function x i+1 =x i -(J T J+α·diag[J T J] -1 )J T h, get the second model parameters; Among them, x i is the model parameter after the first model parameter is iterated i times, i∈[1,N], N is the preset maximum number of iterations, h i (x) and h are the bias vectors of the i-th iteration, J is the Jacobian matrix, α is the step size of the i-th iteration, and F(x) is the bias value after the i-th iteration.

2. The method according to claim 1, characterized in that: The obtaining measurement information corresponding to the speaker includes: sending an excitation signal to the speaker; Based on the excitation signal, measurement information corresponding to the speaker is measured.

3. The method according to claim 1, characterized in that: The obtaining measurement information corresponding to the speaker includes: Receive measurement information corresponding to the speaker from other devices.

4. The method according to any one of claims 1 to 3, characterized in that: Before obtaining the measurement information corresponding to the speaker, the method further includes: A model parameter calibration request is received, where the model parameter calibration request is used to calibrate the first model parameter.

5. A speaker model parameter calibration device, characterized in that: The device comprises: An acquiring unit, used for acquiring a first model parameter of the speaker; The acquisition unit is further used to acquire measurement information corresponding to the speaker, wherein the measurement information includes impedance measurement information, and the impedance measurement information includes an impedance measurement value of the speaker at at least one frequency point; the measurement information also includes electromotive force measurement information and / or magnetic field measurement information; A calibration unit is configured to determine impedance calculation information based on the first model parameter, wherein the impedance calculation information includes an impedance calculation value of the speaker at the at least one frequency point; determine a deviation vector based on the impedance calculation information and the impedance measurement information, wherein an element in the deviation vector is associated with a difference between the impedance calculation value and the impedance measurement value at each frequency point; and determine a deviation vector based on a deviation function. and the iterated function x i+1 =x i -(J T J+α·diag[J T J] -1 )J T h, get the second model parameters; where x i is the model parameter after the first model parameter is iterated i times, i∈[1,N], N is the preset maximum number of iterations, h i (x) and h are the bias vectors of the i-th iteration, J is the Jacobian matrix, α is the step size of the i-th iteration, and F(x) is the bias value after the i-th iteration.

6. A chip, characterized in that: The invention comprises a processor and a communication interface, wherein the processor is configured to perform the following operations: Obtaining first model parameters of the speaker; Acquire measurement information corresponding to the speaker, wherein the measurement information includes impedance measurement information, and the impedance measurement information includes an impedance measurement value of the speaker at at least one frequency point; the measurement information also includes electromotive force measurement information and / or magnetic field measurement information; Based on the first model parameter, determining impedance calculation information, the impedance calculation information including an impedance calculation value of the speaker at the at least one frequency point; Based on the impedance calculation information and the impedance measurement information, determining a deviation vector, wherein an element in the deviation vector is associated with a difference between an impedance calculation value and an impedance measurement value at each frequency point; Based on the deviation function and the iterated function x i+1 =x i -(J T J+α·diag[J T J] -1 )J T h, get the second model parameters; Among them, x i is the model parameter after the first model parameter is iterated i times, i∈[1,N], N is the preset maximum number of iterations, h i (x) and h are the bias vectors of the i-th iteration, J is the Jacobian matrix, α is the step size of the i-th iteration, and F(x) is the bias value after the i-th iteration.

7. A module device, characterized in that: The module device includes a communication module, a power module, a storage module and a chip, wherein: The power module is used to provide electrical energy to the module device; The storage module is used to store data and instructions; The communication module is used for internal communication of the module device, or for communication between the module device and an external device; The chip is used to: obtain a first model parameter of a speaker; obtain measurement information corresponding to the speaker, wherein the measurement information includes impedance measurement information, and the impedance measurement information includes an impedance measurement value of the speaker at at least one frequency point; the measurement information also includes electromotive force measurement information and / or magnetic field measurement information; Based on the first model parameter, determining impedance calculation information, the impedance calculation information including an impedance calculation value of the speaker at the at least one frequency point; Based on the impedance calculation information and the impedance measurement information, determining a deviation vector, wherein an element in the deviation vector is associated with a difference between an impedance calculation value and an impedance measurement value at each frequency point; Based on the deviation function and the iterated function x i+1 =x i -(J T J+α·diag[J T J] -1 )J T h, get the second model parameters; Among them, x i is the model parameter after the first model parameter is iterated i times, i∈[1,N], N is the preset maximum number of iterations, h i (x) and h are the bias vectors of the i-th iteration, J is the Jacobian matrix, α is the step size of the i-th iteration, and F(x) is the bias value after the i-th iteration.

8. A terminal device, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 4.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed on a communication device, the communication device executes the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Loudspeaker debugging model calibration method and loudspeaker debugging method and device

    CN104038882A