Impedance determination method and apparatus for loudspeaker, electronic device, chip and storage medium

By using an adaptive filter to filter and control the amplitude of the speaker's voltage and current signals, the speaker's impedance is determined in real time, solving the problem of inaccurate impedance estimation in existing technologies and achieving accurate and real-time speaker temperature estimation.

CN118474638BActive Publication Date: 2026-03-20BEIJING X RING TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

In the prior art, the loudspeaker impedance estimation process cannot be performed in real time or noise signals are introduced during the estimation process, resulting in inaccurate impedance calculation and affecting the accuracy of loudspeaker voice coil temperature estimation.

Method used

An adaptive filter is used to filter the voltage and current signals played by the speaker to obtain the voltage and current signals at the target frequency. The target voltage and current signals are obtained through amplitude control. Combined with the linear relationship between temperature and impedance signals, the impedance of the speaker is determined in real time.

Benefits of technology

It enables real-time and accurate determination of loudspeaker impedance, improves the accuracy of loudspeaker temperature estimation, and meets the requirements of real-time performance and precision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118474638B_ABST
    Figure CN118474638B_ABST
Patent Text Reader

Abstract

The application provides a loudspeaker impedance determination method and device, electronic equipment, a chip and a storage medium. The method comprises the following steps: inputting a first voltage signal and a first current signal at both ends of a loudspeaker into corresponding target adaptive filters for filtering to obtain a second voltage signal and a second current signal at a target frequency, performing amplitude control on the second voltage signal and the second current signal to obtain a target voltage signal and a target current signal after amplitude adjustment, and determining a loudspeaker impedance signal according to the target voltage signal and the target current signal. The first voltage signal and the first current signal of the loudspeaker are obtained in real time, and the first voltage signal and the first current signal are subjected to real-time filtering processing by using corresponding target adaptive filters to obtain the second voltage signal and the second current signal at the target frequency. Furthermore, amplitude detection is combined to perform amplitude control on the second voltage signal and the second current signal to obtain the target voltage signal and the target current signal, so that the real-time performance and the accuracy requirement of loudspeaker impedance determination are met.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of signal processing, and particularly relates to a method and device for determining impedance of a loudspeaker, an electronic device, a chip and a storage medium. BACKGROUND

[0002] The loudspeaker protection algorithm is to control the gain of the playing signal to ensure that the loudspeaker does not exceed the threshold value while reaching the maximum loudness, so as to prevent the loudspeaker from being burned out. Therefore, the temperature of the loudspeaker voice coil needs to be monitored to accurately realize gain control.

[0003] At present, the real-time estimation of the loudspeaker voice coil temperature is mainly based on the linear relationship between the loudspeaker voice coil impedance and the temperature. However, in the related technology, the loudspeaker impedance estimation process cannot be performed in real time or noise signals are introduced in the impedance estimation process, which affects the accuracy of the subsequent loudspeaker voice coil temperature estimation. SUMMARY

[0004] The present application aims to at least solve one of the technical problems in the related art to some extent.

[0005] To this end, the present application provides a method and device for determining impedance of a loudspeaker, an electronic device, a chip and a storage medium to realize real-time determination of the loudspeaker impedance signal and improve the accuracy of the loudspeaker impedance signal determination.

[0006] In one aspect, an embodiment of the present application provides a method for determining impedance of a loudspeaker, comprising:

[0007] obtaining a first voltage signal and a first current signal corresponding to a target audio signal played by the loudspeaker;

[0008] inputting the first voltage signal and the first current signal into corresponding target adaptive filters for filtering to obtain a second voltage signal of a target frequency and a second current signal of the target frequency;

[0009] controlling the amplitudes of the second voltage signal and the second current signal to obtain a target voltage signal and a target current signal;

[0010] determining the impedance signal of the loudspeaker according to the target voltage signal and the target current signal.

[0011] In another aspect, an embodiment of the present application provides a device for determining impedance of a loudspeaker, comprising:

[0012] an obtaining module configured to obtain a first voltage signal and a first current signal corresponding to a target audio signal played by the loudspeaker;

[0013] filtering modules, configured to input the first voltage signal and the first current signal into corresponding target adaptive filters respectively to obtain a second voltage signal of a target frequency and a second current signal of the target frequency;

[0014] control modules, configured to perform amplitude control on the second voltage signal and the second current signal respectively to obtain a target voltage signal and a target current signal;

[0015] determination modules, configured to determine an impedance signal of the loudspeaker according to the target voltage signal and the target current signal.

[0016] In an aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method in the foregoing aspect.

[0017] In an aspect, an embodiment of the present application provides a chip, including processing circuitry, wherein the processing circuitry is configured to execute the method in the foregoing aspect.

[0018] In an aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium, having a computer program stored thereon, wherein the program is executable by a processor to implement the method in the foregoing aspect.

[0019] In an aspect, an embodiment of the present application provides a computer program product, having a computer program stored thereon, wherein the program is executable by a processor to implement the method in the foregoing aspect.

[0020] The loudspeaker impedance determination method, device, electronic device, chip, and storage medium provided by the present application obtain a first voltage signal and a first current signal corresponding to a target audio signal played by a loudspeaker, input the first voltage signal and the first current signal into corresponding target adaptive filters respectively to obtain a second voltage signal of a target frequency and a second current signal of the target frequency, perform amplitude control on the second voltage signal of the target frequency and the second current signal of the target frequency to obtain a target voltage signal of the target frequency and a target current signal of the target frequency, and determine an impedance signal of the loudspeaker according to the target voltage signal and the target current signal. The first voltage signal and the first current signal obtained in real time are respectively subjected to real-time filtering processing by using corresponding target adaptive filters to obtain a second voltage signal of a target frequency and a second current signal of the target frequency, and the second voltage signal and the second current signal are subjected to amplitude control in combination with amplitude detection to obtain a target voltage signal and a target current signal, thereby meeting the real-time and precision requirements for loudspeaker impedance determination.

[0021] Additional aspects and advantages of the present application will be made apparent by the following description and the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS

[0022] The above and / or additional aspects and advantages of the present application will become apparent and be more readily understood through consideration of the following description, taken in conjunction with the accompanying drawings, in which:

[0023] Figure 1 A flowchart of a method for determining impedance of a loudspeaker according to an embodiment of the present application;

[0024] Figure 2 A schematic diagram of a change in impedance of a loudspeaker according to an embodiment of the present application;

[0025] Figure 3 A flowchart of another method for determining impedance of a loudspeaker according to an embodiment of the present application;

[0026] Figure 4 A schematic diagram of a module for determining impedance of a loudspeaker according to an embodiment of the present application;

[0027] Figure 5 A schematic diagram of a structure of an adaptive filtering algorithm according to an embodiment of the present application;

[0028] Figure 6 A schematic diagram of a structure of a device for determining impedance of a loudspeaker according to an embodiment of the present application;

[0029] Figure 7 A schematic diagram of a structure of an electronic device according to an embodiment of the present application;

[0030] Figure 8 A schematic diagram of a structure of a chip according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] Embodiments of the present application are described in detail below with reference to the attached drawing figures, wherein the same or like reference numerals and characters throughout the figures denote the same or like components or elements having the same or similar functions. The embodiments described below are exemplary and are intended to be illustrative of the present application and are not to be understood as limiting of the present application.

[0032] A method, device, electronic device, chip and storage medium for determining impedance of a loudspeaker according to an embodiment of the present application are described below with reference to the attached drawings.

[0033] Figure 1 A flowchart of a method for determining impedance of a loudspeaker according to an embodiment of the present application.

[0034] In the related art, the rated impedance is equivalent to the direct current impedance of the loudspeaker coil, Figure 2 A schematic diagram of the change of the loudspeaker impedance provided by the embodiment of the present application is shown in the figure. When observing the loudspeaker f0 (the resonance point) from both sides, the first valley bottom is the rated impedance observation point. If the loudspeaker is heated, the rated impedance will also increase. The relationship between the real-time temperature Te and the real-time direct current impedance Re is as follows:

[0035] Te=(Re / R0-1) / alphacoil+25;

[0036] Wherein, R0 is the direct current impedance of the loudspeaker at 25 degrees, alphacoil is the resistivity temperature coefficient related to the loudspeaker coil material, for example, the loudspeaker coil material is copper wire, and the resistivity temperature coefficient of copper is equal to 0.00393.

[0037] The direct current impedance calculation formula is Re=U / I;

[0038] Wherein, U is the voltage signal at both ends of the loudspeaker, and I is the current signal at both ends of the loudspeaker.

[0039] Generally, a single tone signal with an impedance close to the direct current impedance is selected, the single tone signal is a single frequency signal, for example, a frequency of 50Hz, and then the voltage and current values of the loudspeaker are obtained by detecting the single tone signal to track the impedance change of the loudspeaker in real time. In actual use, the obtained voltage and current values are superimposed with noise or other signals, and therefore, the single tone signal needs to be extracted by using a narrow-band filtering or a single frequency point Fourier transform FFT filtering mode. In the single tone signal extraction mode using the traditional narrow-band filtering, an extremely low bandwidth is required, and at the same time, frequency components other than the single tone signal are introduced to some extent, resulting in inaccurate subsequent impedance determination. In the FFT mode, sufficient data points need to be collected before the transformation, which leads to a processing delay and reduces the real-time performance. Therefore, the application provides a loudspeaker impedance determination method meeting the accuracy and real-time performance, obtains a first voltage signal and a first current signal of a target audio signal acting on a loudspeaker, inputs the first voltage signal and the first current signal into corresponding target adaptive filters for filtering to obtain a second voltage signal of a target frequency and a second current signal of the target frequency, performs amplitude detection on the second voltage signal of the target frequency and the second current signal of the target frequency to obtain a target voltage signal of the target frequency and a target current signal of the target frequency, and determines an impedance signal of the loudspeaker according to the target voltage signal and the target current signal. The first voltage signal and the first current signal obtained in real time are filtered by using corresponding target adaptive filters to obtain the second voltage signal of the target frequency and the first current signal, and at the same time, the amplitude values of the first voltage signal and the first current signal are adjusted in combination with the amplitude detection to obtain the target voltage signal and the target current signal, which meets the real-time performance of the loudspeaker impedance determination and improves the determination accuracy.

[0040] The loudspeaker impedance determination method is configured in a loudspeaker impedance determination device, which can be applied to any electronic device to enable the electronic device to perform command processing functions.

[0041] The electronic device can be any device with computing capability, for example, a personal computer, a mobile terminal, a server (or cloud), and the like. The mobile terminal can be a vehicle-mounted device, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and the like, which have various operating systems, touch screens, and / or display screens.

[0042] As shown in FIG. 1, Figure 1 The method can include the following steps:

[0043] In step 101, a first voltage signal and a first current signal corresponding to a target audio signal played by a loudspeaker are obtained.

[0044] Wherein, the target audio signal is an audio signal that needs to be played by the loudspeaker at present, is acquired in real time, and is a piece of audio signal with a time length. In the case where the loudspeaker plays the target audio signal, the target audio signal is first converted into an analog first voltage signal, is transmitted and amplified through a circuit, and is then converted into a first current signal for driving inside the loudspeaker, and then the loudspeaker is pushed to vibrate by the electromagnetic effect, thereby generating sound waves, wherein the first voltage signal and the first current signal are used to identify the voltage signal and the current signal corresponding to the target audio signal played by the loudspeaker.

[0045] As an example, the first voltage signal and the first current signal corresponding to the target audio signal played by the loudspeaker can be collected through a voltmeter or an oscilloscope. The first current signal corresponding to the target audio signal can be collected through a sensor. In order to avoid that the collected voltage signal and current signal include high-frequency noise and direct current offset, the original voltage signal and the original current signal collected can be respectively filtered to obtain a processed voltage signal and a processed current signal. Furthermore, since the processed voltage signal and the processed current signal may exist asynchronous clock, the processed voltage signal and the processed current signal can be synchronized and aligned to obtain the first voltage signal and the first current signal.

[0046] Step 102, the first voltage signal and the first current signal are respectively input into corresponding target adaptive filters for filtering to obtain a second voltage signal of a target frequency and a second current signal of a target frequency.

[0047] In an implementation manner of the embodiment of the application, the first voltage signal and the first current signal correspond to the same filter, wherein the filter coefficient of the target adaptive filter is continuously updated in the process of processing the real-time signal, thereby improving the detection accuracy of the target adaptive filter.

[0048] In another implementation manner of the embodiment of the application, the first voltage signal and the first current signal correspond to different target adaptive filters, respectively, and two adaptive filters continuously update the filter coefficients based on the voltage signal and the current signal, which will be specifically described as follows:

[0049] In the embodiments of the present application, the first voltage signal is input to the corresponding target adaptive filter for filtering, wherein the target adaptive filter corresponding to the first voltage signal is determined by updating the filter coefficients of the historical voltage signals before the first voltage signal, so that the adaptive filter continuously adjusts the filter coefficients based on the real-time voltage signal, thereby improving the filtering effect of the target adaptive filter. Therefore, the target adaptive filter corresponding to the first voltage signal can extract the second voltage signal of the target frequency from the first voltage signal, realize the extraction of the component of the target frequency from the complex voltage signal, and realize the detection of the single-frequency signal of the target frequency, thereby improving the detection accuracy.

[0050] Similarly, the target adaptive filter corresponding to the first current signal is determined by updating the filter coefficients of the historical voltage signals before the first current signal, so that the adaptive filter continuously adjusts the filter coefficients based on the current signal, thereby improving the filtering effect of the target adaptive filter. Therefore, the target adaptive filter corresponding to the first current signal can extract the second current signal of the target frequency from the first current signal, realize the extraction of the component of the target frequency from the complex current signal, and realize the detection of the single-frequency signal of the target frequency, thereby improving the detection accuracy.

[0051] It should be noted that the target adaptive filter for filtering the first voltage signal adjusts the coefficients in the process of filtering the historical voltage signals before the first voltage signal, and the target adaptive filter after adjusting the coefficients also adjusts the filter coefficients in the process of filtering the first voltage signal. The adaptive filter further adjusting the filter coefficients is used for filtering the voltage signals after the first voltage signal, realizes the adaptive adjustment of the filter, improves the noise suppression and anti-interference ability of the adaptive filter, and enhances the processing accuracy of the voltage signal. Similarly, the target adaptive filter corresponding to the first current signal can refer to the manner of adjusting the filter coefficients of the target adaptive filter corresponding to the first voltage signal, and the principle is the same, which will not be described here.

[0052] In step 103, the amplitude of the second voltage signal of the target frequency and the second current signal of the target frequency is detected to obtain the target voltage signal of the target frequency and the target current signal of the target frequency after amplitude adjustment.

[0053] In the embodiments of the present application, in order to improve the detection accuracy, the amplitude of the abnormal amplitude voltage signal and the current signal is adjusted by amplitude detection to obtain the target voltage signal of the target frequency and the target current signal of the target frequency after amplitude adjustment, thereby improving the accuracy of the amplitude value of the target voltage signal and the accuracy of the amplitude value of the target current signal.

[0054] Step 104, determining the impedance signal of the loudspeaker according to the target voltage signal and the target current signal.

[0055] In the embodiment of the application, the DC impedance signal of the loudspeaker is determined according to the ratio of the target voltage signal of the target frequency and the target current signal of the target frequency, and then the temperature of the loudspeaker is calculated by using the linear relationship between the temperature and the impedance signal, thereby improving the accuracy of the loudspeaker temperature estimation.

[0056] The loudspeaker impedance determination method of the embodiment of the application obtains the first voltage signal and the first current signal corresponding to the target audio signal played by the loudspeaker, inputs the first voltage signal and the first current signal into corresponding target adaptive filters for filtering respectively to obtain the second voltage signal of the target frequency and the second current signal of the target frequency, performs amplitude control on the second voltage signal of the target frequency and the second current signal of the target frequency to obtain the target voltage signal of the target frequency and the target current signal of the target frequency, and determines the impedance signal of the loudspeaker according to the target voltage signal and the target current signal. The first voltage signal and the first current signal obtained in real time are processed by real-time filtering using corresponding target adaptive filters to obtain the second voltage signal of the target frequency and the second current signal, and the second voltage signal and the second current signal are controlled in amplitude to obtain the target voltage signal and the target current signal, thereby meeting the real-time and accuracy requirements of the loudspeaker impedance determination.

[0057] Based on the above embodiment, Figure 3 Another flowchart of a loudspeaker impedance determination method provided by the embodiment of the application is shown in FIG. 3. Figure 3 The method comprises the following steps:

[0058] Step 301, obtaining an original audio signal and a set reference single-frequency signal of a target frequency.

[0059] The set target frequency is usually a frequency of about 50 Hz.

[0060] Step 302, superimposing the reference single-frequency signal of the target frequency and the original audio signal to obtain a target audio signal.

[0061] In the embodiment of the application, the reference single-frequency signal is a single-frequency signal, which is a signal of the target frequency in the application. The reference single-frequency signal in the application includes a reference voltage signal and a reference current signal, and different signals are used for different scenes. The target audio signal is obtained by superimposing the original audio signal, so that the target audio signal carries the reference single-frequency signal, and the coefficient update of the filter after inputting the filter is realized.

[0062] In step 303, a first voltage signal and a first current signal corresponding to the target audio signal played by the loudspeaker are obtained.

[0063] In step 303, the explanation in the foregoing embodiments can be referred to for the same principle, and details are not repeated here.

[0064] In step 304, the first voltage signal and the first current signal are input into corresponding target adaptive filters for filtering to obtain a second voltage signal of a target frequency and a second current signal of the target frequency.

[0065] As an example, Figure 4 A schematic diagram of a module for determining the impedance of the loudspeaker provided in the embodiments of the present application is shown in FIG. 4. Figure 4 As shown in FIG. 4, the first voltage signal and the first current signal have corresponding adaptive filters. The way of updating the filter coefficients of the adaptive filters corresponding to the voltage signal and the current signal is described as follows:

[0066] As an example, the method of updating the filter coefficients of the target adaptive filter corresponding to the first voltage signal is described as follows:

[0067] The first voltage signal includes voltage signals of multiple sampling points. The voltage signals of the historical sampling points before the first voltage signal are obtained, for example, x(n), Figure 5 A schematic diagram of an adaptive filtering algorithm provided in the embodiments of the present application is shown in FIG. 5. Figure 5 As shown in FIG. 5, the voltage signals x(n) of the historical sampling points are input into the corresponding adaptive filters to output the predicted voltage signals y(n) of the first frequency. As an implementation manner, the voltage signals of the historical sampling points are multiplied by the filter coefficients of the corresponding adaptive filters to output the predicted voltage signals of the first frequency. Further, the first frequency difference e(n) is determined according to the target frequency of the reference voltage signal d(n) carried by the voltage signals of the historical sampling points and the first frequency of the predicted voltage signal y(n). The reference voltage signal is a voltage signal having only the target frequency. The coefficients of the adaptive filter corresponding to the historical sampling points of the voltage signals are adjusted according to the first frequency difference to obtain the target adaptive filter corresponding to the first voltage signal. The transfer function h(n) of the adaptive filter includes the coefficients of the filter. The transfer function can be updated by adjusting the coefficients, that is, the transfer function is adjusted from h(n) to h'(n). Meanwhile, the first voltage signal includes voltage signals of multiple sampling points. In the process of inputting the voltage signals of the sampling points into the corresponding target adaptive filters for filtering, the target adaptive filter also continuously adjusts the filter coefficients, so that the target adaptive filter for processing the voltage signals continuously adapts to enhance the detection accuracy of the anti-interference and noise signals and improve the detection effect.

[0068] As an example, the method of updating the filter coefficient of the target adaptive filter corresponding to the first current signal is described:

[0069] The current signal of the historical sampling point before the first current signal is obtained, and the current signal of the historical sampling point is input into the corresponding adaptive filter to output a predicted current signal of a second frequency. As an implementation manner, the current signal of the historical sampling point is multiplied by the filter coefficient of the corresponding adaptive filter to output the predicted current signal of the second frequency. According to the target frequency of the reference current signal carried by the current signal of the historical sampling point and the second frequency of the predicted current signal, a second frequency difference is determined. According to the second frequency difference, the coefficient of the adaptive filter corresponding to the current signal of the historical sampling point is adjusted to obtain the target adaptive filter corresponding to the first current signal.

[0070] It should be understood that the historical sampling point described above can also be multiple. In the case of multiple historical sampling points, the multiple historical sampling points are arranged in ascending order of sampling time, and the adaptive filter is input and filtered in sequence based on the order of the sampling time, and the coefficient of the adaptive filter is adjusted to realize multiple filter coefficient adjustments through the voltage or current signal of multiple historical sampling points, thereby improving the detection accuracy of the adaptive filter. The filter coefficient of the adaptive filter at the initial working time can be a set value, and the adaptive adjustment is continuously performed during the detection process to realize the adaptive filter that meets the scene test requirements.

[0071] In step 305, a sliding window is used to detect the peak amplitude of the second voltage signal to obtain a third voltage signal.

[0072] The third voltage signal is generated according to multiple voltage peaks detected by the peak amplitude detection. The third voltage signal is also a voltage signal of the target frequency.

[0073] In the embodiment of the application, the length and movement distance of the sliding window can be set based on requirements. By moving the sliding window on the voltage signal, the voltage peak in the sub-voltage signal corresponding to each sliding window is determined. Similarly, based on the movement of the sliding window, multiple voltage peaks detected by peak detection can be determined. Further, the envelope of the voltage signal, i.e., the third voltage signal, is obtained by connecting each voltage peak.

[0074] In step 306, amplitude control is performed according to the third voltage signal and a set voltage amplitude threshold interval to obtain a target voltage signal.

[0075] In an implementation form of the embodiment of the application, the voltage amplitude threshold interval corresponding to the third voltage signal is determined according to the loudspeaker characteristics of the to-be-detected loudspeaker, that is, the upper limit amplitude value and the lower limit amplitude value of the voltage amplitude threshold interval are determined.

[0076] In the embodiment of the application, the third voltage signal is sampled at the set sampling interval to obtain the voltage amplitude values of the sampling points in the third voltage signal, and the voltage amplitude values of the sampling points are compared with the voltage amplitude threshold interval. Different implementation forms are used for processing according to different comparison results, and different implementation forms are described below for different cases:

[0077] For a case, as a first implementation form, in response to determining that the first target sampling point has a voltage amplitude value greater than the upper limit of the voltage amplitude threshold interval, and / or the second target sampling point has a voltage amplitude value less than the lower limit of the voltage amplitude threshold interval, the target voltage signal is determined according to the determined first target sampling point and / or the second target sampling point and the corresponding set voltage adjustment value. In order to identify, the set voltage adjustment value corresponding to the first target sampling point is referred to as the first set voltage adjustment value, and the set voltage adjustment value corresponding to the second target sampling point is referred to as the second set voltage adjustment value. The following describes different scenarios:

[0078] In a first scenario, the voltage amplitude values of the sampling points are compared with the voltage amplitude threshold interval to determine the first target sampling point having a voltage amplitude value greater than the upper limit of the voltage amplitude threshold interval. The target voltage signal is determined according to the determined first target sampling point and the corresponding set voltage amplitude adjustment value. Specifically, the voltage amplitude value of the determined first target sampling point is updated to the first set voltage amplitude adjustment value to obtain the updated voltage signal, that is, the target voltage signal, thereby improving the accuracy of the obtained target voltage signal.

[0079] In a second scenario, the voltage amplitude values of the sampling points are compared with the voltage amplitude threshold interval to determine the second target sampling point having a voltage amplitude value less than the lower limit of the voltage amplitude threshold interval. The target voltage signal is determined according to the determined second target sampling point and the corresponding set voltage amplitude adjustment value. Specifically, the voltage amplitude value of the determined second target sampling point is updated to the second set voltage amplitude adjustment value to obtain the updated voltage signal, that is, the target voltage signal, thereby improving the accuracy of the obtained target voltage signal.

[0080] In the third scenario, the voltage amplitude values of the sampling points are compared with the voltage amplitude threshold interval, the first target sampling point with a voltage amplitude value greater than the upper limit of the voltage amplitude threshold interval and the second target sampling point with a voltage amplitude value less than the lower limit of the voltage amplitude threshold interval are determined, and then the voltage amplitude values of the determined first target sampling points and the set first voltage amplitude adjustment value and the voltage amplitude values of the determined second target sampling points and the set second voltage amplitude adjustment value are used to perform amplitude adjustment to determine the target voltage signal. Specifically, the voltage amplitude value of the determined second target sampling point is updated to the second set voltage amplitude adjustment value, and the voltage amplitude value of the determined first target sampling point is updated to the first set voltage amplitude adjustment value, so as to obtain the updated voltage signal, i.e., the target voltage signal, thereby improving the accuracy of the obtained target voltage signal.

[0081] As the second implementation, in order to improve the accuracy of the target voltage signal, on the basis of the amplitude control, the signal width control can be further performed, so that the determined target voltage signal meets the requirements of signal amplitude and signal width, and the accuracy of the target voltage signal is improved. Specifically, the third voltage signal is sampled at a set sampling interval to obtain the voltage amplitude values of the sampling points in the third voltage signal, the voltage amplitude values of the sampling points are compared with the voltage amplitude threshold interval, in response to the first target sampling point with a voltage amplitude value greater than the upper limit of the voltage amplitude threshold interval and / or the second target sampling point with a voltage amplitude value less than the lower limit of the voltage amplitude threshold interval, the target voltage signal is determined according to the determined first target sampling point and / or second target sampling point, the corresponding set voltage adjustment value and the continuous sampling point quantity threshold.

[0082] In an embodiment of the first scenario, the voltage amplitude values of the sampling points are compared with the voltage amplitude threshold interval, the first target sampling point with a voltage amplitude value greater than the upper limit of the voltage amplitude threshold interval is determined, and then the number of the first target sampling points is compared with the set continuous sampling point quantity threshold, in response to the number of the first target sampling points being greater than or equal to the continuous sampling point quantity threshold, it is considered that the amplitude value of the first target sampling point is a stable amplitude value, rather than a noise signal appearing temporarily, i.e., it is considered as a normal voltage signal, and the voltage amplitude values of the first target sampling points are maintained unchanged to obtain the target voltage signal. In an embodiment, in response to the number of the first target sampling points being less than the continuous sampling point quantity threshold, it is considered that this part of signal is a noise signal or an abnormal signal, and the voltage amplitude value needs to be adjusted, and the first set voltage amplitude value is used as the voltage amplitude value of the first target sampling point, so as to adjust the amplitude value of the part of abnormal voltage signals in the third voltage signal to obtain the target voltage signal, thereby improving the accuracy of the obtained target voltage signal.

[0083] In an embodiment of the second scenario, the voltage amplitude values of the sampling points are compared with the voltage amplitude threshold interval, and second target sampling points with voltage amplitude values less than the lower limit of the voltage amplitude threshold interval are determined. Then, the number of the second target sampling points is compared with the set continuous sampling point number threshold value. In response to the number of the second target sampling points being greater than or equal to the continuous sampling point number threshold value, it is considered that the amplitude values of the second target sampling points are normal voltage signals rather than transient noise signals, and the voltage amplitude values of the second target sampling points are maintained to obtain the target voltage signal. In an embodiment, in response to the number of the second target sampling points being less than the continuous sampling point number threshold value, it is considered that the signals are transient noise signals or abnormal signals, and the voltage amplitude values need to be adjusted. The second set voltage amplitude value is used as the voltage amplitude value of each second target sampling point to adjust the amplitude values of the abnormal voltage signals in the third voltage signal, so as to obtain the target voltage signal, thereby improving the accuracy of the obtained target voltage signal.

[0084] In the third scenario, the voltage amplitude values of the sampling points are compared with the voltage amplitude threshold interval, and first target sampling points with voltage amplitude values greater than the upper limit of the voltage amplitude threshold interval and second target sampling points with voltage amplitude values less than the lower limit of the voltage amplitude threshold interval are determined. Then, the number of the first target sampling points is compared with the set continuous sampling point number threshold value, and the number of the second target sampling points is compared with the set continuous sampling point number threshold value. For details, reference can be made to the related explanations in the above two scenarios, which have the same principle and will not be described here. Finally, the amplitude-controlled target voltage signal is obtained, thereby improving the accuracy of the obtained target voltage signal.

[0085] For another case, as an implementation manner, in response to determining that the voltage amplitude values of the sampling points in the third voltage signal are all greater than or equal to the lower limit of the voltage amplitude threshold interval and less than or equal to the upper limit of the voltage amplitude threshold interval, i.e., the voltage amplitude values of the third voltage signal all meet the threshold requirement, the third voltage signal is taken as the target voltage signal. Specifically, the third voltage signal is sampled at the set sampling interval to obtain the voltage amplitude values of the sampling points in the third voltage signal. The voltage amplitude values of the sampling points are compared with the voltage amplitude threshold interval. In response to the voltage amplitude values of the sampling points being less than the upper limit amplitude value of the amplitude interval and greater than the lower limit amplitude value of the amplitude interval, the amplitude values of the third voltage signal are maintained, i.e., the third voltage signal is taken as the target voltage signal.

[0086] In step 307, the second current signal is peak-detected by using a sliding window to obtain a third current signal.

[0087] The third current signal is generated based on multiple current peaks obtained from peak amplitude detection, and the third current signal is a current signal at the target frequency.

[0088] Step 308: Amplitude control is performed based on the third current signal and the set current amplitude threshold range to obtain the target current signal.

[0089] Steps 307 and 308 can be referred to the target voltage signal processing method in steps 305 and 306 above, and the principle is the same, so they will not be repeated here.

[0090] It should be noted that steps 305 and 306 above can be executed after steps 307 and 308, or simultaneously. This embodiment does not impose any restrictions.

[0091] Step 309: Determine the impedance signal of the loudspeaker based on the target voltage signal and the target current signal.

[0092] Step 309 can be explained in the foregoing embodiments, as the principle is the same, and will not be repeated here.

[0093] The speaker impedance determination method of this application embodiment acquires a first voltage signal and a first current signal corresponding to the target audio signal played by the speaker. The first voltage signal and the first current signal are respectively input into corresponding target adaptive filters for filtering to obtain a second voltage signal and a second current signal at the target frequency. Amplitude detection is performed on the second voltage signal and the second current signal at the target frequency to obtain a target voltage signal and a target current signal at the target frequency. Based on the target voltage signal and the target current signal, the speaker impedance signal is determined. The real-time acquired first voltage signal and first current signal are respectively filtered in real-time using corresponding target adaptive filters to obtain a second voltage signal and a second current signal at the target frequency. The amplitude values ​​of the second voltage signal and the second current signal are adjusted using amplitude detection to obtain the target voltage signal and the target current signal, thus satisfying the real-time and accuracy requirements for speaker impedance determination.

[0094] To achieve the above embodiments, this application also proposes a loudspeaker impedance determination device.

[0095] Figure 6 This is a schematic diagram of the structure of a loudspeaker impedance determination device provided in an embodiment of this application.

[0096] like Figure 6 As shown, the device may include:

[0097] The acquisition module 61 is used to acquire the first voltage signal and the first current signal corresponding to the target audio signal played by the speaker.

[0098] a filtering module 62, configured to input the first voltage signal and the first current signal into corresponding target adaptive filters respectively to obtain a second voltage signal of a target frequency and a second current signal of the target frequency.

[0099] a control module 63, configured to perform amplitude control on the second voltage signal and the second current signal respectively to obtain a target voltage signal and a target current signal.

[0100] a determination module 64, configured to determine an impedance signal of the loudspeaker according to the target voltage signal and the target current signal.

[0101] Further, in an implementation form of the embodiment of the present application, the apparatus further comprises a superposition module, configured to:

[0102] obtain an original audio signal and a reference single-frequency signal of a target frequency set;

[0103] superimpose the reference single-frequency signal of the target frequency and the original audio signal to obtain the target audio signal.

[0104] In an implementation form of the embodiment of the present application, the control module 63 is further configured to:

[0105] perform peak amplitude detection on the second voltage signal by using a sliding window to obtain a third voltage signal; wherein the third voltage signal is generated according to a plurality of voltage peaks obtained by the peak amplitude detection;

[0106] perform amplitude control on the third voltage signal according to a voltage amplitude threshold interval set to obtain the target voltage signal.

[0107] In an implementation form of the embodiment of the present application, the control module 63 is further configured to:

[0108] compare voltage amplitude values of each sampling point in the third voltage signal with the voltage amplitude threshold interval;

[0109] in response to determining that there is a first target sampling point with a voltage amplitude value greater than an upper limit of the voltage amplitude threshold interval, and / or a second target sampling point with a voltage amplitude value less than a lower limit of the voltage amplitude threshold interval;

[0110] adjust the voltage amplitude values of the determined first target sampling point and / or second target sampling point to obtain the target voltage signal.

[0111] In an implementation form of the embodiment of the present application, the control module 63 is further configured to:

[0112] compare the number of the first target sampling points with a set continuous sampling point number threshold value;

[0113] in response to the number of the first target sampling points being greater than or equal to the continuous sampling point number threshold value, maintain the voltage amplitude value corresponding to each of the first target sampling points to obtain the target voltage signal; or,

[0114] in response to the number of the first target sampling points being less than the continuous sampling point number threshold value, use a set voltage amplitude value as the voltage amplitude value of each of the first target sampling points to obtain the target voltage signal.

[0115] In an implementation manner of the embodiment of the application, the apparatus further includes a maintaining module configured to:

[0116] in response to determining that the voltage amplitude value of each sampling point in the third voltage signal is greater than or equal to the lower limit of the voltage amplitude threshold value interval and less than or equal to the upper limit of the voltage amplitude threshold value interval;

[0117] use the third voltage signal as the target voltage signal.

[0118] In an implementation manner of the embodiment of the application, the reference single-frequency signal is a reference voltage signal, and the first voltage signal includes voltage signals of a plurality of sampling points. The apparatus further includes a first updating module configured to:

[0119] acquire voltage signals of historical sampling points before the first voltage signal;

[0120] input the voltage signals of the historical sampling points into corresponding adaptive filters to output predicted voltage signals of a first frequency;

[0121] determine a first frequency difference according to a target frequency of a reference voltage signal carried by the voltage signals of the historical sampling points and the first frequency of the predicted voltage signals;

[0122] adjust a coefficient of the adaptive filter corresponding to the voltage signals of the historical sampling points according to the first frequency difference to obtain a target adaptive filter corresponding to the first voltage signal.

[0123] In an implementation manner of the embodiment of the application, the reference single-frequency signal is a reference current signal, and the first current signal includes current signals of a plurality of sampling points. The apparatus further includes a second updating module configured to:

[0124] acquire current signals of historical sampling points before the first current signal;

[0125] input the current signal of the historical sampling point into a corresponding adaptive filter, and output a predicted current signal of a second frequency;

[0126] determine a second frequency difference according to a target frequency of the reference current signal carried by the current signal of the historical sampling point and the second frequency of the predicted current signal;

[0127] adjust the coefficient of the adaptive filter corresponding to the current signal of the historical sampling point according to the second frequency difference, and obtain a target adaptive filter corresponding to the first current signal.

[0128] It should be noted that the foregoing explanation and description of the method embodiments are also applicable to the device embodiments, which will not be described herein again.

[0129] The impedance determination device of the loudspeaker according to the embodiment of the application obtains a first voltage signal and a first current signal corresponding to a target audio signal played by the loudspeaker, inputs the first voltage signal and the first current signal into corresponding target adaptive filters for filtering, obtains a second voltage signal of a target frequency and a second current signal of the target frequency, performs amplitude control on the second voltage signal of the target frequency and the second current signal of the target frequency, obtains a target voltage signal of the target frequency and a target current signal of the target frequency, and determines an impedance signal of the loudspeaker according to the target voltage signal and the target current signal. The first voltage signal and the first current signal obtained in real time are respectively subjected to real-time filtering processing by using corresponding target adaptive filters, to obtain the second voltage signal of the target frequency and the second current signal, and the amplitude value of the second voltage signal and the second current signal is adjusted in combination with amplitude detection to obtain the target voltage signal and the target current signal, thereby meeting the real-time and precision requirements of the determination of the impedance of the loudspeaker.

[0130] To achieve the above-mentioned embodiments, the application further provides an electronic device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method according to the foregoing method embodiments when executing the program.

[0131] To achieve the above-mentioned embodiments, the application further provides a non-transitory computer-readable storage medium, which stores a computer program, and the program is executable on a processor to implement the method according to the foregoing method embodiments.

[0132] To achieve the above-mentioned embodiments, the application further provides a computer program product, which stores a computer program, and the computer program is executable on a processor to implement the method according to the foregoing method embodiments.

[0133] Figure 7A structural diagram of an electronic device is provided for embodiments of the present application. For example, the electronic device 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.

[0134] Referring to Figure 7 The electronic device 800 can include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0135] The processing component 802 usually controls overall operations of the electronic device 800, such as operations associated with displaying, making phone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute instructions to complete all or part of steps of the above methods. In addition, the processing component 802 can include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0136] The memory 804 is configured to store various types of data to support operations of the electronic device 800. Examples of these data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0137] The power component 806 provides power to various components of the electronic device 800. The power component 806 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0138] The multimedia component 808 includes a screen to provide an output interface between the electronic device 800 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and intensity of the touching or sliding action. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zooming capability.

[0139] The audio component 810 is configured to output and / or input an audio signal. For example, the audio component 810 includes a microphone (MIC) to receive an external audio signal when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker to output an audio signal.

[0140] The I / O interface 812 provides an interface for the processing component 802 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0141] The sensor component 814 includes one or more sensors to provide various state assessments for the electronic device 800. For example, the sensor component 814 can detect an open / closed state of the electronic device 800, relative positioning of components, such as a display and a keypad of the electronic device 800, a change in position of the electronic device 800 or a component of the electronic device 800, presence or absence of user contact with the electronic device 800, an orientation or acceleration / deceleration of the electronic device 800, and a temperature change of the electronic device 800. The sensor component 814 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 814 can further include a light sensor such as a CMOS or CCD image sensor for use in an imaging application. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0142] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 4G, or 5G, or a combination thereof. In an example embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) techniques, infrared data association (IrDA) techniques, ultra-wideband (UWB) techniques, Bluetooth (BT) techniques, and other techniques.

[0143] In an example embodiment, the electronic device 800 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic elements, for performing the above-described methods.

[0144] In an example embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, is also provided, which can be executed by the processor 820 of the electronic device 800 to complete the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0145] To implement the above-described embodiments, a chip is also provided in the present application, which includes: the chip includes a processing circuit, the processing circuit is configured to execute the method provided in the foregoing embodiments.

[0146] Figure 8 is a structural schematic diagram of the chip provided in the embodiments of the present application. Referring to Figure 8 the structural schematic diagram of the chip 1100 shown in FIG. 11, but is not limited thereto.

[0147] The chip 1100 includes a processing circuit 1101, and the processing circuit 1101 is configured to execute any of the above methods.

[0148] In some embodiments, the chip 1100 further includes one or more interface circuits 1102. Optionally, the interface circuit 1102 is connected with the memory 1103, and the interface circuit 1102 can be used to receive a signal from the memory 1103 or other devices, and the interface circuit 1102 can be used to send a signal to the memory 1103 or other devices. For example, the interface circuit 1102 can read instructions stored in the memory 1103 and send the instructions to the processing circuit 1101.

[0149] In some embodiments, the interface circuit 1102 performs at least one of the communication steps of sending and / or receiving in the above-described methods, and the processing circuit 1101 performs the other steps.

[0150] In some embodiments, the interface circuit, interface, transceiver pin, transceiver, and the like can be replaced with each other.

[0151] In some embodiments, the chip 1100 further includes one or more memories 1103 for storing instructions. Optionally, all or part of the memory 1103 can be outside the chip 1100.

[0152] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the present application comply with relevant laws and regulations and do not violate public order and good customs.

[0153] It should be noted that the personal information from the user should be collected for legal and reasonable purposes, and not shared or sold outside these legal uses. In addition, such collection / sharing should be carried out after the user's informed consent, including but not limited to informing the user to read the user agreement / user notice before the user uses the function, and signing the agreement / authorization including authorization of relevant user information. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data, and ensure that other people with access to personal information data comply with their privacy policy and processes.

[0154] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, the person skilled in the art can combine and combine the different embodiments or examples described in the present specification and the features of the different embodiments or examples without contradiction.

[0155] In addition, the terms "first", "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "multiple" is at least two, for example, two, three, etc., unless otherwise specifically limited.

[0156] Any processes or methods described in the flowcharts or otherwise described herein can be understood as representing modules, segments, or portions of code that include one or more executable instructions for implementing specific logical functions or steps in the processes. The scope of preferred embodiments of the present application encompasses other implementations in which the steps are performed in a different order, including substantially simultaneously, or in reverse order, according to the functions involved, as will be understood by those skilled in the art of the embodiments described herein.

[0157] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a list of executable instructions for implementing the logic function, and can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor- containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-readable medium can be a more specific example (non-exhaustive list) including the following: an electronic connection having one or more wires (electronic apparatus), a portable computer diskette (magnetic apparatus), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium can even be paper or other suitable medium on which the program can be printed, as the program can be electronically obtained, for example, by optically scanning the paper or other medium, then

[0158] It should be understood that portions of the present application can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As in another embodiment, if implemented in hardware, any of the following technologies known in the art or their combinations can be used: discrete logic circuitry having logic gates for implementing logic functions on data signals, application specific integrated circuits having appropriate combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.

[0159] Those skilled in the art of the present technology can understand that all or part of the steps carried out by the above-mentioned embodiment method can be completed by programs instructing related hardware, and the programs can be stored in a computer readable storage medium. When the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0160] In addition, each functional unit in each embodiment of the present application can be integrated into one processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The integrated module can be realized in the form of hardware or in the form of a software functional module. When the integrated module is realized in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer readable storage medium.

[0161] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it should be understood that the above-mentioned embodiments are exemplary and cannot be understood as limiting the present application, and those skilled in the art can make changes, modifications, replacements and variations to the above-mentioned embodiments within the scope of the present application.

Claims

1. A method for determining the impedance of a loudspeaker, characterized in that, include: Acquire the original audio signal and a reference single-frequency signal at the set target frequency; The target audio signal played by the speaker is obtained by superimposing the reference single-frequency signal of the target frequency and the original audio signal. Obtain the first voltage signal and the first current signal corresponding to the target audio signal; The first voltage signal and the first current signal are respectively input into the corresponding target adaptive filter for filtering to obtain the second voltage signal and the second current signal at the target frequency; The amplitudes of the second voltage signal and the second current signal are adjusted respectively to obtain the target voltage signal and the target current signal after amplitude adjustment. The impedance signal of the loudspeaker is determined based on the target voltage signal and the target current signal.

2. The method as described in claim 1, characterized in that, Amplitude control is applied to the second voltage signal to obtain the target voltage signal, including: A sliding window is used to detect the peak amplitude of the second voltage signal to obtain a third voltage signal; wherein, the third voltage signal is generated based on multiple voltage peaks obtained from the peak amplitude detection. The target voltage signal is obtained by amplitude control based on the third voltage signal and the set voltage amplitude threshold range.

3. The method as described in claim 2, characterized in that, The step of obtaining the target voltage signal by amplitude control based on the third voltage signal and a set voltage amplitude threshold range includes: Compare the voltage amplitude value of each sampling point in the third voltage signal with the voltage amplitude threshold range; In response to determining that there is a first target sampling point with a voltage amplitude value greater than the upper limit of the voltage amplitude threshold interval, and / or a second target sampling point with a voltage amplitude value less than the lower limit of the voltage amplitude threshold interval; The voltage amplitude values ​​of the determined first target sampling point and / or second target sampling point are adjusted to obtain the target voltage signal.

4. The method as described in claim 3, characterized in that, The voltage amplitude value of the determined first target sampling point is adjusted to obtain the adjusted target voltage signal, including: Compare the number of the first target sampling points with the set threshold for the number of consecutive sampling points; In response to the number of the first target sampling points being greater than or equal to the threshold number of consecutive sampling points, the voltage amplitude value corresponding to each of the first target sampling points is maintained to obtain the target voltage signal; or, In response to the fact that the number of the first target sampling points is less than the threshold of the number of consecutive sampling points, a set voltage amplitude value is used as the voltage amplitude value of each of the first target sampling points to obtain the target voltage signal.

5. The method as described in claim 3, characterized in that, The method further includes: In response to determining that the voltage amplitude value of each sampling point in the third voltage signal is greater than or equal to the lower limit of the voltage amplitude threshold interval and less than or equal to the upper limit of the voltage amplitude threshold interval; The third voltage signal is used as the target voltage signal.

6. The method as described in claim 1, characterized in that, The reference single-frequency signal is a reference voltage signal, the first voltage signal includes voltage signals from multiple sampling points, and the method further includes: Obtain the voltage signals from historical sampling points preceding the first voltage signal; The voltage signals from the historical sampling points are input into the corresponding adaptive filter, and a predicted voltage signal at the first frequency is output. The first frequency difference is determined based on the target frequency of the reference voltage signal carried by the voltage signal at the historical sampling points and the first frequency of the predicted voltage signal; Based on the first frequency difference, the coefficients of the adaptive filter corresponding to the voltage signal of the historical sampling point are adjusted to obtain the target adaptive filter corresponding to the first voltage signal.

7. The method as described in claim 1, characterized in that, The reference single-frequency signal is a reference current signal, the first current signal includes current signals from multiple sampling points, and the method further includes: Obtain the current signals from historical sampling points preceding the first current signal; The current signal from the historical sampling points is input into the corresponding adaptive filter, and the predicted current signal of the second frequency is output. The second frequency difference is determined based on the target frequency of the reference current signal carried by the current signal at the historical sampling points and the second frequency of the predicted current signal; Based on the second frequency difference, the coefficients of the adaptive filter corresponding to the current signal of the historical sampling point are adjusted to obtain the target adaptive filter corresponding to the first current signal.

8. An impedance determination device for a loudspeaker, characterized in that, include: The acquisition module is used to acquire the original audio signal and a reference single-frequency signal of the set target frequency; The target audio signal played by the speaker is obtained by superimposing the reference single-frequency signal of the target frequency and the original audio signal; the first voltage signal and the first current signal corresponding to the target audio signal are obtained. The filtering module is used to input the first voltage signal and the first current signal into the corresponding target adaptive filter for filtering, so as to obtain the second voltage signal and the second current signal at the target frequency. The control module is used to adjust the amplitude of the second voltage signal and the second current signal respectively to obtain the target voltage signal and the target current signal after amplitude adjustment; The determining module is used to determine the impedance signal of the loudspeaker based on the target voltage signal and the target current signal.

9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the method as described in any one of claims 1-7.

10. A chip, characterized in that, The chip includes processing circuitry configured to perform the method as described in any one of claims 1-7.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-7.

12. A computer program product, characterized in that, It includes a computer program, which, when executed by a processor, implements the method of any one of claims 1-7.

Citation Information

Patent Citations

  • Loudspeaker amplifier

    CN115053538A

  • Loudspeaker load diagnosis method, system, equipment and medium

    CN117750288A