Loudspeaker resonant frequency determination method and device, electronic equipment and storage medium

By constructing the preset curve segment function relationship of the speaker impedance-frequency curve and updating the resonance frequency in real time, the problem of super amplitude risk caused by relying on a fixed amplitude model in the prior art is solved, and the audio quality and stability of the speaker are improved.

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

Patent Information

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

AI Technical Summary

Technical Problem

Existing speaker amplitude protection methods rely on fixed amplitude models, resulting in the risk of hyperamplitude when resonance frequency changes.

Method used

By obtaining voice coil voltage and current data at multiple frequency points, determining the impedance amplitude, and constructing a functional relationship of the preset curve segments in the speaker impedance-frequency curve, the resonance frequency is updated in real time and the risk of hyper-amplitude caused by fixed model protection is avoided.

Benefits of technology

It realizes real-time update of the amplitude model when the speaker is working, avoiding the risk of super amplitude, and simplifies the solution of resonance frequency, improving the practicality and real-timeness of the algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865742A_ABST
    Figure CN119865742A_ABST
Patent Text Reader

Abstract

The invention provides a loudspeaker resonant frequency determination method and apparatus, an electronic device and a storage medium. The loudspeaker resonant frequency determination method comprises the steps of obtaining voltage and current data of a loudspeaker voice coil corresponding to a plurality of frequency points; determining an impedance amplitude corresponding to each frequency point in the plurality of frequency points according to the voltage and current data; according to the plurality of frequency points and the plurality of corresponding impedance amplitudes, determining a function relational expression of a preset curve segment in an impedance-frequency curve of the loudspeaker; determining the resonant frequency of the loudspeaker according to the function relation of the preset curve segment; wherein the plurality of frequency points are located in a frequency domain range corresponding to the preset curve segment, and the frequency domain range corresponding to the preset curve segment comprises a resonant frequency. According to the method, the solving mode and the calculation workload of the resonant frequency can be simplified, the practicability and the real-time performance of the resonant frequency algorithm are improved, and a stable resonant frequency calculation result can be obtained in any noise and music.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio technology, and in particular to a method, device, electronic device and storage medium for determining a resonance frequency of a loudspeaker. Background Art

[0002] At present, today's mobile electronic devices such as mobile phones, tablet computers, laptops, etc. are equipped with two or more micro speakers. For the speakers of electronic devices, outputting the highest sound energy without damaging the micro speakers and without adding additional distortion is an important goal of the smart power amplifier of mobile device speakers. In the relevant technology, the method of increasing the sound power without changing the micro speakers (such as specifications) is mainly to increase the input power of the speaker. However, the increase in voltage will directly lead to a proportional amplification of the diaphragm amplitude, and the temperature of the voice coil wire will also increase with the increase in power, which will cause two mechanical damage phenomena of the micro speakers: diaphragm over-vibration damage and over-temperature damage.

[0003] Specifically, due to the limitations of the speaker specifications and structure, the diaphragm has limited vibration space. When the diaphragm vibrates up and down, if the vibration amplitude is too large, the diaphragm will hit the magnetic plate or the voice coil will hit the magnetic bowl. Long-term such impacts can easily cause mechanical damage to the device, such as the colloid between the voice coil and the diaphragm falling off, the diaphragm breaking or the voice coil breaking. In addition, from the perspective of sound effects, the diaphragm will also produce a striking sound when it hits other parts due to large-scale vibration, which will seriously affect the audio quality of the micro speaker. For this reason, speaker manufacturers usually indicate the maximum power and the maximum diaphragm amplitude Xmax in the speaker specification, requiring users to strictly comply with the speaker input power and the vibration amplitude cannot exceed Xmax.

[0004] In the related art, in order to ensure that the speaker amplitude is controlled within Xmax, the existing amplitude protection algorithm usually effectively controls the speaker amplitude by controlling the voltage to prevent the diaphragm vibration amplitude from exceeding Xmax and causing mechanical damage and severe distortion. Among them, the amplitude protection algorithm relies on the diaphragm amplitude model, and the resonance frequency of the micro speaker is an important factor affecting the amplitude model.

[0005] At present, under certain special circumstances, the resonant frequency of the speaker will change greatly. For example, accidental leakage of the speaker back cavity, the air pressure in the plateau environment is much lower than the atmospheric pressure, and the speaker outlet is blocked, which will cause the resonant frequency to change. The change in the resonant frequency will cause the amplitude model to change. If the speaker amplitude protection is based on a fixed amplitude model, there may be a risk of over-amplitude. Summary of the invention

[0006] The present application provides a method, device, electronic device and storage medium for determining the resonance frequency of a loudspeaker, aiming to solve the technical problem that the current loudspeaker amplitude protection may have the risk of over-amplitude if it is performed according to a fixed amplitude model.

[0007] In a first aspect, the present application provides a method for determining a resonance frequency of a loudspeaker, comprising:

[0008] Obtain the voltage and current data of the speaker voice coil corresponding to multiple frequency points;

[0009] Determine the impedance amplitude corresponding to each frequency point in multiple frequency points according to the voltage and current data;

[0010] Determine a functional relationship of a preset curve segment in a loudspeaker impedance-frequency curve according to a plurality of frequency points and a corresponding plurality of impedance amplitudes;

[0011] Determine the resonant frequency of the loudspeaker according to the functional relationship of the preset curve segment;

[0012] Among them, the multiple frequency points are located in the frequency domain range corresponding to the preset curve segment, and the frequency domain range corresponding to the preset curve segment includes the resonant frequency.

[0013] In some embodiments, the step of determining a functional relationship of a preset curve segment in a speaker impedance-frequency curve according to a plurality of frequency points and a corresponding plurality of impedance amplitudes includes:

[0014] Selecting a first frequency point, a second frequency point, and a third frequency point from a plurality of frequency points, and selecting a first impedance amplitude corresponding to the first frequency point, a second impedance amplitude corresponding to the second frequency point, and a third impedance amplitude corresponding to the third frequency point from a plurality of impedance amplitudes;

[0015] A functional relationship of a preset curve segment in the speaker impedance-frequency curve is determined according to the first frequency point, the second frequency point, the third frequency point, the first impedance amplitude, the second impedance amplitude and the third impedance amplitude.

[0016] In some embodiments, the multiple frequency points are sorted in order of frequency magnitude, and any adjacent frequency points differ by a preset frequency difference, and the step of selecting a first frequency point, a second frequency point, and a third frequency point from the multiple frequency points includes:

[0017] Select a frequency point with the largest impedance amplitude from multiple frequency points as the first frequency point;

[0018] A second frequency point and a third frequency point are selected from a preset screening frequency domain range centered on the first frequency point, and the preset screening frequency domain range is at least twice the preset frequency difference.

[0019] In some embodiments, the multiple frequency points are sorted in order of frequency magnitude, and any adjacent frequency points differ by a preset frequency difference, and the step of selecting a first frequency point, a second frequency point, and a third frequency point from the multiple frequency points includes:

[0020] Select any three adjacent frequency points from multiple frequency points, and calculate the impedance average value according to the impedance amplitudes corresponding to the three frequency points;

[0021] The three frequency points with the largest impedance average values ​​are selected as the first frequency point, the second frequency point, and the third frequency point.

[0022] In some embodiments, the predetermined curve segment is symmetric with respect to the resonant frequency.

[0023] In some embodiments, the functional relationship of the preset curve segment is a quadratic function.

[0024] In some embodiments, the step of obtaining voltage and current data of the speaker voice coil corresponding to multiple frequency points includes:

[0025] Determine a preset frequency domain range according to the specifications of the speaker, where the preset frequency domain range is within the frequency domain range corresponding to the preset curve segment;

[0026] A plurality of frequency points are selected from a preset frequency domain range, and voltage and current data of the loudspeaker voice coil corresponding to the plurality of frequency points are obtained according to the plurality of frequency points.

[0027] In some embodiments, the multiple frequency points are sorted in order of frequency magnitude, and the multiple frequency points satisfy the following relationship:

[0028] f n =f n-1 +Δf

[0029] Among them, f n is the nth frequency point of multiple frequency points sorted in order of frequency size, f n-1 is the n-1th frequency point of the multiple frequency points sorted in order of frequency size, Δf is a preset frequency difference, n is an integer greater than or equal to 2 and less than or equal to N, and N is the number of the multiple frequency points.

[0030] In some embodiments, the step of determining the impedance amplitude corresponding to each frequency point in the plurality of frequency points according to the voltage and current data includes:

[0031] Perform single-frequency filtering on the voltage and current data corresponding to each frequency point to determine the voltage frequency domain value and current frequency domain value corresponding to each frequency point;

[0032] According to the voltage frequency domain value and the current frequency domain value corresponding to each frequency point, the voltage amplitude and the current amplitude corresponding to each frequency point are calculated;

[0033] The impedance amplitude corresponding to each frequency point in the multiple frequency points is calculated according to the voltage amplitude and the current amplitude corresponding to each frequency point.

[0034] In some embodiments, the step of determining the impedance amplitude corresponding to each frequency point in the plurality of frequency points according to the voltage and current data further includes:

[0035] Obtaining a DC resistance of a speaker voice coil, and determining a preset impedance range according to the DC resistance;

[0036] It is determined whether the impedance amplitude corresponding to each frequency point is within a preset impedance range. When the impedance amplitude corresponding to a certain frequency point is not within the preset impedance range, the frequency point is removed from the multiple frequency points.

[0037] In a second aspect, the present application provides a device for determining a resonance frequency of a loudspeaker, comprising:

[0038] An acquisition module, which is used to acquire voltage and current data of the loudspeaker voice coil corresponding to multiple frequency points;

[0039] An impedance determination module, the impedance determination module is used to determine the impedance amplitude corresponding to each frequency point in a plurality of frequency points according to voltage and current data;

[0040] A function determination module, the function determination module is used to determine a function relationship of a preset curve segment in a loudspeaker impedance-frequency curve according to a plurality of frequency points and a corresponding plurality of impedance amplitudes;

[0041] A resonance frequency determination module, the resonance frequency determination module is used to determine the resonance frequency of the speaker according to a functional relationship of a preset curve segment;

[0042] Among them, the multiple frequency points are located in the frequency domain range corresponding to the preset curve segment, and the frequency domain range corresponding to the preset curve segment includes the resonant frequency.

[0043] In a third aspect, the present application provides an electronic device, characterized in that it includes a memory and a processor, the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the method for determining the resonance frequency of a speaker as described in the first aspect.

[0044] In a fourth aspect, the present application provides a storage medium, characterized in that the storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute the steps in the method for determining the resonance frequency of a speaker as described in the first aspect.

[0045] The present application determines the impedance amplitude corresponding to each of the multiple frequency points through the voltage and current data of the speaker voice coil corresponding to the multiple frequency points, and uses the multiple frequency points and the corresponding multiple impedance amplitudes to construct the functional relationship of the preset curve segment in the speaker impedance-frequency curve. Since the multiple frequency points are located in the frequency domain corresponding to the preset curve segment, and the frequency domain corresponding to the preset curve segment includes the resonant frequency, the resonant frequency of the speaker can be determined according to the functional relationship of the preset curve segment. When the speaker is working, the amplitude model can be updated in real time using the determined resonant frequency, thereby avoiding the risk of speaker over-amplitude caused by amplitude protection using a fixed amplitude model. At the same time, since only the functional relationship of the preset curve segment in the impedance-frequency curve needs to be determined, rather than the complete impedance-frequency curve function or the speaker impedance model function, it is conducive to simplifying the solution method and calculation workload of the resonant frequency, improving the practicality and real-time performance of the resonant frequency algorithm, and obtaining a stable resonant frequency calculation result in any noise and music. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0047] Figure 1 It is a flow chart of a method for determining the resonance frequency of a loudspeaker provided in an embodiment of the present application;

[0048] Figure 2 is a schematic diagram of an impedance-frequency curve provided in an embodiment of the present application;

[0049] Figure 3 This is a schematic diagram of a flow chart for determining a preset curve segment function relationship provided in an embodiment of the present application;

[0050] Figure 4 This is a schematic diagram of a process for obtaining voltage and current data provided in an embodiment of the present application;

[0051] Figure 5 is a schematic diagram of a flow chart for determining impedance amplitude provided in an embodiment of the present application;

[0052] Figure 6 It is a module schematic diagram of a device for determining the resonance frequency of a loudspeaker provided in an embodiment of the present application. DETAILED DESCRIPTION

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

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

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

[0056] The embodiments of the present application provide a method, device, electronic device, and storage medium for determining the resonance frequency of a loudspeaker, which are described in detail below.

[0057] First, see Figure 1 as well as Figure 2 , Figure 1 A schematic diagram of a flow chart of a method for determining the resonance frequency of a loudspeaker in an embodiment of the present application is shown. Figure 2 A schematic diagram of an impedance-frequency curve in an embodiment of the present application is shown, wherein a method for determining the resonance frequency of a loudspeaker includes:

[0058] Step S101, obtaining voltage and current data of a loudspeaker voice coil corresponding to a plurality of frequency points;

[0059] Specifically, the multiple frequency points are located within the frequency domain range corresponding to the preset curve segment, and the number of the multiple frequency points is greater than or equal to 3. For example, the frequency domain range corresponding to the preset curve segment is 20 Hz to 3000 Hz, and 10 frequency points of 500 Hz, 600 Hz, 700 Hz, 800 Hz, 900 Hz, 1000 Hz, 1100 Hz, 1200 Hz, 1300 Hz, and 1400 Hz can be selected, and the voltage and current data of the speaker voice coil corresponding to each frequency point are obtained.

[0060] It should be noted that the selection of multiple frequency points can be made by those skilled in the art according to actual needs. For example, the corresponding frequency domain can be determined according to the specifications of the speaker, and then multiple frequency points can be selected within the frequency domain. No specific limitation is made here.

[0061] The voltage data and current data can be obtained by monitoring the voltage and current at both ends of the speaker voice coil, for example, by collecting the voltage at both ends of the speaker voice coil through a voltage collector, and collecting the current at both ends of the speaker voice coil through a current collector; or, the voltage data and current data can also be obtained through analog signals, by intercepting the voltage value and current value corresponding to multiple frequency points of the analog signal, and converting the voltage value and current value into a digital signal, so as to calculate the impedance of the speaker corresponding to the frequency point. In some embodiments of the present application, the voltage data and current data of the speaker voice coil can be obtained as frequency domain values. In some embodiments of the present application, the voltage data and current data of the speaker voice coil can also be obtained as amplitude values.

[0062] Step S102, determining the impedance amplitude corresponding to each frequency point in a plurality of frequency points according to the voltage and current data;

[0063] Specifically, after obtaining the voltage and current data of the loudspeaker voice coil corresponding to each frequency point, the impedance amplitude corresponding to each frequency point can be calculated using the following formula:

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

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

[0066] It can be understood that for the embodiment of obtaining the voltage data and current data of the speaker voice coil as frequency domain values, before calculating the impedance value corresponding to the frequency point, it is necessary to convert the frequency domain value into amplitude, for example, converting the voltage frequency domain value into voltage amplitude, and converting the current frequency domain value into current amplitude.

[0067] Step S103, determining a functional relationship of a preset curve segment in a speaker impedance-frequency curve according to a plurality of frequency points and a plurality of corresponding impedance amplitudes;

[0068] After determining the impedance amplitude corresponding to each frequency point, the functional relationship of the preset curve segment in the speaker impedance-frequency curve can be determined. Among them, the frequency domain range corresponding to the preset curve segment in the speaker impedance-frequency curve includes the resonant frequency, for example, refer to Figure 2 , wherein the preset curve segment is a segment of the speaker impedance-frequency curve within a frequency range near the resonant frequency. Compared with obtaining the entire impedance-frequency curve, calculating the functional relationship of a segment of the curve within a frequency range near the resonant frequency requires less calculation and is more practical.

[0069] In some embodiments of the present application, see Figure 2 The preset curve segment is symmetrical with respect to the resonance frequency, that is, the preset curve segment is axisymmetric with respect to f=f0 (resonance frequency). After calculating the parameters in the function relationship of the preset curve segment, the resonance frequency of the speaker can be obtained.

[0070] Specifically, in the process of determining the preset curve segment functional relationship in the speaker impedance-frequency curve, the preset curve segment functional relationship can be first assumed, and then multiple frequency points and corresponding multiple impedance amplitudes are substituted into the preset curve segment functional relationship to obtain the parameters in the preset curve segment functional relationship, and finally the functional relationship of the preset curve segment can be obtained.

[0071] As an example, the functional relationship of the assumed preset curve segment may be a quadratic function, which is axisymmetric with respect to f=f0 (resonance frequency). For example, the functional relationship of the preset curve segment is:

[0072] Z = af 2 +bf+c

[0073] Among them, Z is the speaker impedance, f is the corresponding frequency, and a, b, and c are parameters.

[0074] After substituting multiple frequency points and corresponding multiple impedance amplitudes into the preset curve segment functional relationship, the parameters a, b, and c can be obtained, that is, the functional relationship of the preset curve segment is determined.

[0075] As another example, the functional relationship of the assumed preset curve segment may also be:

[0076]

[0077] Wherein, X is any positive integer. Similarly, the functional relationship is also axisymmetric with respect to f=f0 (resonance frequency). After substituting multiple frequency points and corresponding multiple impedance amplitudes into the preset curve segment functional relationship, the parameters a, f0, and c in the functional relationship can be obtained, that is, the functional relationship of the preset curve segment is determined.

[0078] As another example, the functional relationship of the assumed preset curve segment may also be:

[0079] Z=a((log 10 f) X -(log 10 f0) X ) 2 +c

[0080] Wherein, X is any positive integer. Similarly, the functional relationship is also axisymmetric with respect to f=f0 (resonance frequency), and the process of determining the functional relationship of the preset curve segment is the same as above, which will not be repeated here.

[0081] Step S104: determining the resonance frequency of the speaker according to the functional relationship of the preset curve segment.

[0082] After determining the functional relationship of the preset curve segment, the resonant frequency of the speaker can be determined. For example, the functional relationship of the preset curve segment is Z = a f 2 In the embodiment of +bf+c, since the quadratic function is axisymmetric with respect to f=f0 (resonance frequency), the quadratic function is the resonant frequency, that is, the resonant frequency can be calculated according to the following formula:

[0083] f0=b / (-2a)

[0084] For another example, the functional relationship for the above preset curve segment is: In the embodiment, the parameter f0 in the functional relationship is the resonant frequency of the loudspeaker. For another example, the functional relationship for the above-mentioned preset curve segment is Z=a((log 10 f) X -(log 10 f0) X ) 2 +c embodiment, the f0 parameter in the functional relationship is the resonant frequency of the loudspeaker.

[0085] In the embodiment of the present application, the present application determines the impedance amplitude corresponding to each of the multiple frequency points through the voltage and current data of the speaker voice coil corresponding to the multiple frequency points, and uses the multiple frequency points and the corresponding multiple impedance amplitudes to construct the functional relationship of the preset curve segment in the speaker impedance-frequency curve. Since the multiple frequency points are located in the frequency domain corresponding to the preset curve segment, and the frequency domain corresponding to the preset curve segment includes the resonant frequency, the resonant frequency of the speaker can be determined according to the functional relationship of the preset curve segment. When the speaker is working, the amplitude model can be updated in real time using the determined resonant frequency, thereby avoiding the risk of speaker over-amplitude caused by amplitude protection using a fixed amplitude model. At the same time, since only the functional relationship of the preset curve segment in the impedance-frequency curve needs to be determined, rather than the complete impedance-frequency curve function or the speaker impedance model function, it is conducive to simplifying the solution method and calculation workload of the resonant frequency, improving the practicality and real-time performance of the resonant frequency algorithm, and obtaining effective resonant frequency calculation results in many noise signals and random music signals.

[0086] In some embodiments of the present application, see Figure 3 , Figure 3 A schematic diagram of a flow chart for determining a preset curve segment function relationship in an embodiment of the present application is shown, wherein the step of determining the preset curve segment function relationship includes:

[0087] Step S301, selecting a first frequency point, a second frequency point and a third frequency point from a plurality of frequency points, and selecting a first impedance amplitude corresponding to the first frequency point, a second impedance amplitude corresponding to the second frequency point, and a third impedance amplitude corresponding to the third frequency point from a plurality of impedance amplitudes;

[0088] Step S302, determining a functional relationship of a preset curve segment in the speaker impedance-frequency curve according to the first frequency point, the second frequency point, the third frequency point, the first impedance amplitude, the second impedance amplitude and the third impedance amplitude.

[0089] It should be noted that the functional relationship of the above-mentioned assumed preset curve segment includes three unknown parameters, for example, Z = af 2 +bf+c in the a, b, c parameters, for example The a, f0, and c parameters in the equation are as follows. Therefore, by selecting three frequency points from multiple frequency points and solving the corresponding impedance amplitude equations, the functional relationship of the preset curve segment can be obtained, including three unknown parameters, and then the functional relationship of the preset curve segment can be determined.

[0090] For example, for an embodiment in which the multiple frequency points include 10 frequency points, namely 500 Hz, 600 Hz, 700 Hz, 800 Hz, 900 Hz, 1000 Hz, 1100 Hz, 1200 Hz, 1300 Hz and 1400 Hz, the three frequency points of 700 Hz, 1100 Hz and 1300 Hz can be selected as the first frequency point, the second frequency point and the third frequency point.

[0091] In some embodiments of the present application, the multiple frequency points are sorted in order according to the frequency size, and any adjacent frequency points differ by a preset frequency difference (for example, 50 Hz), and the step of selecting a first frequency point, a second frequency point, and a third frequency point from the multiple frequency points includes:

[0092] Select a frequency point with the largest impedance amplitude from multiple frequency points as the first frequency point;

[0093] A second frequency point and a third frequency point are selected from a preset screening frequency domain range centered on the first frequency point, and the preset screening frequency domain range is at least twice the preset frequency difference.

[0094] Exemplarily, for an embodiment in which the above-mentioned multiple frequency points include 10 frequency points, namely 500Hz, 600Hz, 700Hz, 800Hz, 900Hz, 1000Hz, 1100Hz, 1200Hz, 1300Hz and 1400Hz, the frequency point with the largest impedance amplitude is 1000Hz, so it can be determined that the first frequency point is 1000Hz, and the preset screening frequency domain range centered on the first frequency point is 900Hz to 1100Hz, so that the second frequency point and the third frequency point can be determined to be 900Hz and 1100Hz, respectively.

[0095] It should be noted that the preset curve segment usually obtains the maximum value at the resonant frequency, so by selecting the frequency point adjacent to the resonant frequency and the impedance amplitude to calculate the functional relationship, more accurate functional relationship parameters and corresponding parameters can be obtained. In the above embodiment, by first selecting the frequency point with the largest impedance amplitude as the first frequency point, and selecting the second frequency point and the third frequency point within the preset screening frequency domain range centered on the first frequency point, the first frequency point, the second frequency point and the third frequency point can be made into frequency points adjacent to the resonant frequency, and more accurate functional relationship parameters can be calculated through the first frequency point, the second frequency point, the third frequency point and the corresponding impedance amplitude, which is conducive to improving the calculation accuracy of the loudspeaker resonant frequency.

[0096] In some other embodiments of the present application, the step of selecting a first frequency point, a second frequency point, and a third frequency point from a plurality of frequency points includes:

[0097] Select any three adjacent frequency points from multiple frequency points, and calculate the impedance average value according to the impedance amplitudes corresponding to the three frequency points;

[0098] The three frequency points with the largest impedance average values ​​are selected as the first frequency point, the second frequency point, and the third frequency point.

[0099] Similarly, in the above embodiment, since the preset curve segment usually reaches the maximum value at the resonant frequency, and the impedance average values ​​of the first frequency point, the second frequency point and the third frequency point are the largest, the first frequency point, the second frequency point and the third frequency point are frequency points adjacent to the resonant frequency. More accurate function relationship parameters can be calculated through the first frequency point, the second frequency point, the third frequency point and the corresponding impedance amplitude, which is beneficial to improve the calculation accuracy of the speaker resonant frequency.

[0100] It can be understood that the first frequency point, the second frequency point and the third frequency point can also be selected in other ways, for example, any adjacent m frequency points are selected from multiple frequency points, m is an integer greater than three, and then any three frequency points are selected from the m frequency points with the largest impedance average values ​​as the first frequency point, the second frequency point and the third frequency point.

[0101] In some embodiments of the present application, for example, the function relationship of the preset curve segment is Z=af 2 +bf+c embodiment, the resonant frequency can be calculated according to the following formula:

[0102] f0=b / (-2a)

[0103] Among them, f m is the first frequency point, Z(f m ) is the first impedance amplitude, f i is the second frequency point, Z(f i ) is the second impedance amplitude, f k is the second frequency point, Z(f k ) is the third impedance amplitude.

[0104] In some embodiments of the present application, for example, the functional relationship for the above-mentioned preset curve segment is: In the embodiment, the resonant frequency can be calculated according to the following formula:

[0105]

[0106] In some embodiments of the present application, for example, the functional relationship for the above-mentioned preset curve segment is Z=a((log 10 f) X -(log 10 f0) X ) 2 +c embodiment, the resonant frequency can also be calculated according to the following formula:

[0107]

[0108] In some embodiments of the present application, see Figure 4 , Figure 4 A schematic diagram of a process for obtaining voltage and current data in an embodiment of the present application is shown, wherein the steps of obtaining voltage and current data include:

[0109] Step S401, determining a preset frequency domain range according to the specifications of the speaker, where the preset frequency domain range is within the frequency domain range corresponding to the preset curve segment;

[0110] Step S402 , selecting a plurality of frequency points from a preset frequency domain range, and obtaining voltage and current data of the speaker voice coil corresponding to the plurality of frequency points according to the plurality of frequency points.

[0111] It should be noted that the specifications of the speaker refer to the specifications of the corresponding components that affect the size of the speaker's resonant frequency, such as the thickness of the speaker's suspension, the specifications of the electromagnet, etc. Technical personnel in this field can determine the preset frequency domain range (for example, 100Hz~2000Hz) containing the speaker's resonant frequency based on test results and experience through the specifications of the speaker, so that after selecting multiple frequency points in the preset frequency domain range, the multiple frequency points are located in the frequency domain range corresponding to the preset curve segment.

[0112] In some embodiments of the present application, the multiple frequency points are sorted in order of frequency magnitude, and the multiple frequency points satisfy the following relationship:

[0113] f n =f n-1 +Δf

[0114] Among them, f n is the nth frequency point of multiple frequency points sorted in order of frequency size, f n-1 is the n-1th frequency point of the multiple frequency points sorted in order of frequency size, Δf is a preset frequency difference, n is an integer greater than or equal to 2 and less than or equal to N, and N is the number of the multiple frequency points.

[0115] That is to say, in the above embodiment, multiple frequency points are selected in a preset frequency domain range in an order of small to large with equal intervals, so that the multiple frequency points are evenly distributed in the preset frequency domain range, thereby avoiding the phenomenon that the selected multiple frequency points are concentrated in a frequency domain.

[0116] In some embodiments of the present application, for example, for an embodiment in which the voltage and current data obtained are frequency domain values, continue to refer to Figure 5 , Figure 5 A schematic diagram of a process for determining the impedance amplitude in an embodiment of the present application is shown, wherein the step of determining the impedance amplitude includes:

[0117] Step S501, performing single-frequency filtering on the voltage and current data corresponding to each frequency point to determine the voltage frequency domain value and the current frequency domain value corresponding to each frequency point;

[0118] Step S502, calculating the voltage amplitude and the current amplitude corresponding to each frequency point according to the voltage frequency domain value and the current frequency domain value corresponding to each frequency point;

[0119] Step S503, calculating the impedance amplitude corresponding to each frequency point in the plurality of frequency points according to the voltage amplitude and the current amplitude corresponding to each frequency point.

[0120] Specifically, the voltage and current data corresponding to each frequency point can be filtered by a discrete Fourier transform algorithm to determine the voltage frequency domain value and the current frequency domain value corresponding to each frequency point. Exemplarily, the discrete Fourier transform algorithm can be a Goertzel algorithm, a chirp-z transform algorithm, etc.

[0121] After obtaining the voltage frequency domain value and current frequency domain value corresponding to each frequency point, the voltage amplitude and current amplitude corresponding to each frequency point are calculated, and the impedance amplitude corresponding to each frequency point in the multiple frequency points is calculated based on the voltage amplitude and current amplitude corresponding to each frequency point. Specifically, the impedance amplitude corresponding to each frequency point can be calculated using the following formula:

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

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

[0124] In some embodiments of the present application, after determining the impedance amplitude corresponding to each of the multiple frequency points, the step of determining the impedance amplitude corresponding to each of the multiple frequency points according to the voltage and current data may also include:

[0125] Obtaining a DC resistance of a speaker voice coil, and determining a preset impedance range according to the DC resistance;

[0126] It is determined whether the impedance amplitude corresponding to each frequency point is within a preset impedance range. When the impedance amplitude corresponding to a certain frequency point is not within the preset impedance range, the frequency point is removed from the multiple frequency points.

[0127] It should be noted that in the impedance-frequency curve of the speaker, the impedance amplitude corresponding to the frequency near the resonance frequency of the speaker meets a certain range requirement, and this range is usually related to the DC resistance of the speaker voice coil. Therefore, in the above embodiment, by obtaining the DC resistance Re of the speaker voice coil and determining the preset impedance range (for example, 0.85Re~1.5Re) according to the DC resistance, it can be judged whether the impedance amplitude corresponding to each frequency point is within the preset impedance range. If the impedance amplitude corresponding to a certain frequency point is not within the preset impedance range, it means that the frequency point does not belong to the frequency near the resonance frequency, so the frequency point can be eliminated from multiple frequency points to ensure that each of the multiple frequency points is a frequency near the resonance frequency of the speaker.

[0128] In some embodiments of the present application, the speaker voltage and current corresponding to the smaller frequency can be used to calculate the actual DC resistance of the speaker. Since the speaker voltage and current corresponding to the smaller frequency can be considered as DC voltage and DC current, the DC resistance of the speaker impedance model can be calculated by the speaker voice coil voltage and current at the minimum frequency. In some embodiments of the present application, the determined speaker DC resistance may be multiple values, so the impedance values ​​of multiple groups of data can be processed to obtain the DC resistance of the speaker. Exemplarily, the data processing can be probability statistics or filtering of the voltage and current data, and then the actual DC resistance is calculated.

[0129] It is understandable that those skilled in the art can adjust the setting of the preset impedance range according to actual needs, and this application does not make too many limitations here.

[0130] Furthermore, in order to better implement the speaker resonance frequency determination method in the embodiment of the present application, on the basis of the speaker resonance frequency determination method, the present application also provides a speaker resonance frequency determination device, see Figure 6 , Figure 6 A schematic diagram of a module of a device for determining a resonance frequency of a loudspeaker in an embodiment of the present application is shown, wherein the device 600 for determining a resonance frequency of a loudspeaker comprises:

[0131] An acquisition module 601 is used to acquire voltage and current data of a loudspeaker voice coil corresponding to a plurality of frequency points;

[0132] An impedance determination module 602, the impedance determination module 602 is used to determine the impedance amplitude corresponding to each frequency point in a plurality of frequency points according to the voltage and current data;

[0133] Function determination module 603, the function determination module 603 is used to determine the function relationship of the preset curve segment in the speaker impedance-frequency curve according to the multiple frequency points and the corresponding multiple impedance amplitudes;

[0134] A resonance frequency determination module 604, the resonance frequency determination module 604 is used to determine the resonance frequency of the speaker according to a functional relationship of a preset curve segment;

[0135] Among them, the multiple frequency points are located in the frequency domain range corresponding to the preset curve segment, and the frequency domain range corresponding to the preset curve segment includes the resonant frequency.

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

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

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

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

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

[0141] Obtain the voltage and current data of the speaker voice coil corresponding to multiple frequency points;

[0142] Determine the impedance amplitude corresponding to each frequency point in multiple frequency points according to the voltage and current data;

[0143] Determine a functional relationship of a preset curve segment in a loudspeaker impedance-frequency curve according to a plurality of frequency points and a corresponding plurality of impedance amplitudes;

[0144] Determine the resonant frequency of the loudspeaker according to the functional relationship of the preset curve segment;

[0145] Among them, the multiple frequency points are located in the frequency domain range corresponding to the preset curve segment, and the frequency domain range corresponding to the preset curve segment includes the resonant frequency.

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

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

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

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

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

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

[0152] The above is a detailed introduction to a method, device, electronic device and storage medium for determining the resonance frequency of a speaker provided in an embodiment of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and scope of application. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for determining the resonance frequency of a loudspeaker, characterized in that: include: Obtain the voltage and current data of the speaker voice coil corresponding to multiple frequency points; Determining the impedance amplitude corresponding to each frequency point in the multiple frequency points according to the voltage and current data; Determine a functional relationship of a preset curve segment in the speaker impedance-frequency curve according to the multiple frequency points and the corresponding multiple impedance amplitudes; Determining the resonant frequency of the speaker according to the functional relationship of the preset curve segment; The multiple frequency points are located within a frequency domain range corresponding to the preset curve segment, and the frequency domain range corresponding to the preset curve segment includes the resonant frequency.

2. The method for determining the resonance frequency of a loudspeaker according to claim 1, wherein: The step of determining a functional relationship of a preset curve segment in the speaker impedance-frequency curve according to the multiple frequency points and the corresponding multiple impedance amplitudes comprises: Selecting a first frequency point, a second frequency point and a third frequency point from the multiple frequency points, and selecting a first impedance amplitude corresponding to the first frequency point, a second impedance amplitude corresponding to the second frequency point, and a third impedance amplitude corresponding to the third frequency point from the multiple impedance amplitudes; A functional relationship of a preset curve segment in the speaker impedance-frequency curve is determined according to the first frequency point, the second frequency point, the third frequency point, the first impedance amplitude, the second impedance amplitude, and the third impedance amplitude.

3. The method for determining the resonance frequency of a loudspeaker according to claim 2, wherein: The multiple frequency points are sorted in order of frequency magnitude, and the step of selecting a first frequency point, a second frequency point, and a third frequency point from the multiple frequency points comprises: Selecting a frequency point with the largest impedance amplitude from the multiple frequency points as a first frequency point; A second frequency point and a third frequency point are selected from a preset screening frequency domain range centered on the first frequency point.

4. The method for determining the resonance frequency of a loudspeaker according to claim 2, wherein: The multiple frequency points are sorted in order of frequency magnitude, and the step of selecting a first frequency point, a second frequency point, and a third frequency point from the multiple frequency points comprises: Select any three adjacent frequency points from the multiple frequency points, and calculate the impedance average value according to the impedance amplitudes corresponding to the three frequency points; The three frequency points with the largest impedance average values ​​are selected as the first frequency point, the second frequency point, and the third frequency point.

5. The method for determining the resonance frequency of a loudspeaker according to claim 1, wherein: The preset curve segment is symmetrical with respect to the resonance frequency.

6. The method for determining the resonance frequency of a loudspeaker according to claim 1, wherein: The step of obtaining the voltage and current data of the loudspeaker voice coil corresponding to the multiple frequency points comprises: Determine a preset frequency domain range according to the specification of the speaker, wherein the preset frequency domain range is located within the frequency domain range corresponding to the preset curve segment; A plurality of frequency points are selected from the preset frequency domain, and voltage and current data of the speaker voice coil corresponding to the plurality of frequency points are obtained according to the plurality of frequency points.

7. The method for determining the resonance frequency of a loudspeaker according to claim 6, wherein: The multiple frequency points are sorted in order of frequency magnitude, and the multiple frequency points satisfy the following relationship: f n =f n-1 +Δf Among them, f n is the nth frequency point of the plurality of frequency points sorted in order of frequency magnitude, f n-1 is the n-1th frequency point of the multiple frequency points sorted in order of frequency size, Δf is a preset frequency difference, n is an integer greater than or equal to 2 and less than or equal to N, and N is the number of the multiple frequency points.

8. The method for determining the resonance frequency of a loudspeaker according to claim 1, wherein: The step of determining the impedance amplitude corresponding to each frequency point in the multiple frequency points according to the voltage and current data comprises: Performing single-frequency filtering on the voltage and current data corresponding to each of the frequency points to determine the voltage frequency domain value and the current frequency domain value corresponding to each of the frequency points; Calculate the voltage amplitude and current amplitude corresponding to each frequency point according to the voltage frequency domain value and the current frequency domain value; The impedance amplitude corresponding to each frequency point in the multiple frequency points is calculated according to the voltage amplitude and the current amplitude corresponding to each frequency point.

9. The method for determining the resonance frequency of a loudspeaker according to claim 8, wherein: The step of determining the impedance amplitude corresponding to each frequency point in the multiple frequency points according to the voltage and current data further includes: Obtaining a DC resistance of a loudspeaker voice coil, and determining a preset impedance range according to the DC resistance; It is determined whether the impedance amplitude corresponding to each of the frequency points is within the preset impedance range, and when the impedance amplitude corresponding to a certain frequency point is not within the preset impedance range, the frequency point is removed from the multiple frequency points.

10. A device for determining a resonance frequency of a loudspeaker, characterized in that: include: An acquisition module, the acquisition module is used to acquire voltage and current data of the speaker voice coil corresponding to multiple frequency points; An impedance determination module, the impedance determination module is used to determine the impedance amplitude corresponding to each frequency point of the multiple frequency points according to the voltage and current data; A function determination module, the function determination module is used to determine a function relationship of a preset curve segment in the speaker impedance-frequency curve according to the multiple frequency points and the corresponding multiple impedance amplitudes; A resonance frequency determination module, the resonance frequency determination module is used to determine the resonance frequency of the speaker according to the functional relationship of the preset curve segment; The multiple frequency points are located within a frequency domain range corresponding to the preset curve segment, and the frequency domain range corresponding to the preset curve segment includes the resonant frequency.

11. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the method for determining the resonance frequency of a loudspeaker according to any one of claims 1 to 9.

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

Citation Information

Patent Citations

  • Method for speaker parameter fast detection analog synchronization signal and detection system

    CN101365261A

  • Protection method and device for automatically regulating volume of loudspeaker according to temperature raising of voice coil

    CN107734427A

  • Loudspeaker using method and device and medium

    CN112887893A

  • Performance parameter measuring method and device and readable storage medium

    CN115474147A

  • Loudspeaker controller for estimating fundamental resonant frequency of loudspeaker and method thereof

    CN115842991A