Signal processing method, chip and electronic equipment

By determining the nonlinear excitation signal from the excitation signal and establishing a signal prediction model, the problem of harmonic distortion in the loudspeaker is solved, the modeling difficulty and parameter amount are reduced, and the robustness and user experience are improved.

CN118870271APending Publication Date: 2024-10-29SHANGHAI AWINIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410890702.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In the existing technology, speakers are prone to harmonic distortion when processing excitation signals, causing noise and damage to the voice coil. Moreover, the model has many parameters and is difficult to model, which affects the user's sense of hearing.

Method used

By determining the nonlinear excitation signal from the excitation signal, establishing a signal prediction model whose input is the nonlinear excitation signal and whose output is the harmonic signal in the diaphragm displacement signal, the number of parameters of the signal prediction model is reduced, and the difficulty of modeling is reduced. Power processing determines the order of the harmonic signal.

Benefits of technology

It effectively distinguishes the linear and nonlinear components of the diaphragm displacement signal, reduces the number of parameters, improves robustness, reduces modeling difficulty, improves user hearing, and reduces harmonic distortion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118870271A_ABST
    Figure CN118870271A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of loudspeakers, and discloses a signal processing method, a chip and electronic equipment. The signal processing method is applied to the loudspeaker and comprises the following steps: acquiring an excitation signal; determining a first peak value from the excitation signal; determining a nonlinear excitation signal from the excitation signals; the input of the signal prediction model is a nonlinear excitation signal, the output of the signal prediction model is a harmonic signal in a vibrating diaphragm displacement signal, and parameters to be determined can be a first coefficient of a fundamental wave excitation signal in the nonlinear excitation signal, a second coefficient of a second-order nonlinear excitation signal and a third coefficient of a third-order nonlinear excitation signal; and predicting a harmonic signal in the diaphragm displacement signal of the loudspeaker based on the signal prediction model. Therefore, the parameter quantity of the signal prediction model can be reduced, the modeling difficulty is reduced, the robustness is improved, and practical application is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of loudspeakers, and in particular to a signal processing method, a chip, and an electronic device. Background Art

[0002] The speaker includes structures such as a diaphragm, a voice coil, and a magnet. When an excitation signal is input to the speaker, an electric current can be generated in the voice coil, and then a magnetic field is generated by electromagnetic induction. The magnetic field can interact with the magnetic field of the magnet to generate thrust or suction to make the diaphragm vibrate, resulting in diaphragm displacement, thereby outputting sound waves. Among them, there is a nonlinear mapping relationship between the excitation signal and the diaphragm displacement. Generally, the diaphragm displacement increases proportionally with the increase of the excitation signal. However, when the excitation signal increases to a certain threshold, the diaphragm displacement no longer increases proportionally. When the diaphragm displacement is described by a signal, the harmonic signal in the signal corresponding to the diaphragm displacement will increase, and then harmonic distortion will occur, causing the voice coil to produce noise, and even damage the speaker, thereby affecting the user's hearing experience.

[0003] In some related technologies, a lumped parameter model can be established or a Volterra nonlinear filter can be used to establish a signal prediction model whose input is an excitation signal, including a linear excitation signal and a nonlinear excitation signal, and whose output is a diaphragm displacement signal corresponding to the diaphragm displacement, to estimate the diaphragm displacement signal under different excitation signals, thereby determining the harmonic signal from the diaphragm displacement signal and processing it to improve the user's hearing experience. However, the above model has many model parameters and is difficult to model, which is not conducive to practical application. Summary of the invention

[0004] The embodiments of the present application provide a signal processing method, a chip, and an electronic device. By determining a nonlinear excitation signal from an excitation signal, a signal prediction model is established with the nonlinear excitation signal as input and the harmonic signal in the diaphragm displacement signal as output, thereby reducing the number of parameters of the signal prediction model and thus reducing the difficulty of modeling.

[0005] In a first aspect, the present application provides a signal processing method, including: obtaining an excitation signal; determining a first peak value from the excitation signal; determining a nonlinear excitation signal based on the amplitude in the excitation signal; establishing a signal prediction model, the signal prediction model is used to predict the harmonic signal in the diaphragm displacement signal of the speaker, and predicting the harmonic signal in the diaphragm displacement signal of the speaker based on the nonlinear excitation signal, the first peak value and the signal prediction model.

[0006] In some optional embodiments of the first aspect, the excitation signal includes at least one of the following: a sinusoidal signal, a square wave signal, a pulse signal, a Gaussian signal, a random signal, and a pulse sequence.

[0007] In some optional embodiments of the first aspect, a first peak value is determined according to the amplitude in an excitation signal, including: based on the excitation signal and a window function, determining the excitation signal within a fixed window length corresponding to the window function, wherein the window function is a function for dividing the signal; based on the excitation signal within the fixed window length, determining the first peak value of the excitation signal, wherein the first peak value is the maximum amplitude, average amplitude or a fixed amplitude set according to the strength of the excitation signal within the fixed window length.

[0008] In some optional embodiments of the first aspect, determining a nonlinear excitation signal from an excitation signal includes: performing power processing on the excitation signal to determine a nonlinear excitation signal of an order corresponding to the power.

[0009] In some optional embodiments of the first aspect, the nonlinear excitation signal includes a fundamental wave excitation signal, a second-order nonlinear excitation signal, and a third-order nonlinear excitation signal.

[0010] In some optional embodiments of the first aspect, a signal prediction model is established to predict a harmonic signal in a diaphragm displacement signal of a loudspeaker based on a nonlinear excitation signal, a first peak value and the signal prediction model, including: inputting a swept frequency signal into the loudspeaker to obtain a diaphragm displacement signal of the loudspeaker under the swept frequency signal; performing convolution processing on an inverse swept frequency signal and a diaphragm displacement signal corresponding to the swept frequency signal to determine multi-order harmonic impulse response signals; performing filtering processing on the multi-order harmonic impulse response signals to determine multi-order harmonic signals to be adjusted; in the signal prediction model, adjusting the multi-order harmonic signal to be adjusted based on the first peak value to obtain the harmonic signal in the diaphragm displacement signal of the loudspeaker.

[0011] In some optional embodiments of the first aspect, filtering is performed on multi-order harmonic impulse response signals to obtain multi-order harmonic signals to be adjusted, including: convolution processing is performed on nonlinear excitation signals and multi-order harmonic impulse response signals to determine the multi-order harmonic signals to be adjusted.

[0012] In some optional embodiments of the first aspect, the multi-order harmonic signal to be adjusted is adjusted based on the first peak value to obtain the harmonic signal in the diaphragm displacement signal of the speaker, including: determining the target correction coefficient based on the first peak value; adjusting the multi-order harmonic signal to be adjusted based on the target correction coefficient to obtain the harmonic signal in the diaphragm displacement signal of the speaker.

[0013] In some optional embodiments of the first aspect, the multi-order harmonic signal to be adjusted is adjusted based on the target correction coefficient to obtain the harmonic signal in the diaphragm displacement signal of the speaker, including: obtaining an initialization correction coefficient for initializing the correction coefficient when the input excitation signal is obtained; adjusting the initialization correction coefficient based on the target correction coefficient to obtain the adjusted correction coefficient; adjusting the multi-order harmonic signal to be adjusted based on the adjusted correction coefficient to obtain the harmonic signal in the diaphragm displacement signal of the speaker.

[0014] In some optional embodiments of the first aspect, the initialization correction coefficient is adjusted based on the target correction coefficient to obtain the adjusted correction coefficient, including: adjusting the initialization correction coefficient based on a fixed step size until the difference between the initialization correction coefficient and the target correction coefficient is within a preset difference range, thereby obtaining the adjusted correction coefficient.

[0015] In a second aspect, the present application provides a chip, which includes the signal processing method mentioned in the first aspect.

[0016] In a third aspect, an embodiment of the present application provides an electronic device, which includes a speaker and the chip mentioned in the second aspect, wherein the speaker includes a voice coil and a diaphragm.

[0017] The beneficial effects of the present application are as follows: the signal prediction model distinguishes the linear excitation signal and the nonlinear excitation signal of the excitation signal, thereby distinguishing the linear component and the nonlinear component (harmonic signal) of the diaphragm displacement signal, that is, the nonlinear excitation signal is used as the input of the signal prediction model, and the harmonic signal in the diaphragm displacement signal is used as the output. Through methods such as harmonic impulse response measurement and peak detection, a harmonic signal that changes with the amplitude of the excitation signal is output, which can reduce the number of parameters of the signal prediction model, and by performing power processing on the nonlinear excitation signal, the order of the output harmonic signal can be determined, which reduces the difficulty of modeling, has good robustness, and is conducive to practical applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 According to some embodiments of the present application, a flow chart of a signal processing method is shown;

[0019] Figure 2 According to some embodiments of the present application, a structural schematic diagram of a signal processing method is shown;

[0020] Figure 3 According to some embodiments of the present application, a schematic diagram of determining a multi-order harmonic signal to be adjusted is shown;

[0021] Figure 4 According to some embodiments of the present application, a method for acquiring a multi-order harmonic impulse response signal is shown;

[0022] Figure 5 According to some embodiments of the present application, a schematic diagram of determining an adjusted correction coefficient for correcting a harmonic signal in a diaphragm displacement signal is shown. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0024] The electronic device in the embodiments of the present application may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The electronic device may be a mobile phone, a tablet computer (Pad), a computer with wireless transceiver function, a wireless terminal in industrial control, etc.

[0025] The following is an introduction to the terms involved in this application:

[0026] Harmonic signal: refers to a signal containing multiple frequency components, including fundamental wave signals and high-order harmonic signals. High-order harmonic signals can be, for example, second-order harmonic signals, third-order harmonic signals, etc. The presence of harmonic signals may cause overheating, vibration and noise in the speaker, cause noise in the voice coil, and even damage the speaker, affecting the user's hearing experience.

[0027] Excitation signal: The excitation signal is a signal input to a vibration system (e.g., a system consisting of a diaphragm and a voice coil of a loudspeaker in the above text), which is intended to cause a response from the vibration system, initiate a specific behavior, or generate an output of interest. It is understood that the excitation signal in the embodiments of the present application refers to the input signal of the loudspeaker.

[0028] Window function: a function that truncates a signal, such as Rectangle Window, Triangular Window, Hanning Window, Hamming Window, Blackman Window, etc.

[0029] As mentioned above, the implementation method of model prediction of harmonic signals can also include coupling the linear components and nonlinear components of the speaker, predicting the diaphragm displacement generated by the speaker under different excitation signals through the model, and predicting the diaphragm displacement signal of the speaker as a whole. However, this implementation method not only increases the difficulty of modeling, has poor robustness, and is difficult to achieve high prediction accuracy, but is also not conducive to processing the harmonic signal in the diaphragm displacement signal. In addition, the speaker has a complex diaphragm displacement generation mechanism, and is affected by many aspects of the speaker's physical parameters. The harmonic signal complexity of the speaker's diaphragm displacement signal is relatively high. Therefore, under complex and changeable excitation signals, complex models are difficult to guarantee prediction accuracy.

[0030] Therefore, in order to solve the above-mentioned problem of many model parameters and high modeling difficulty, the present application provides a signal processing method. In this method, an excitation signal is obtained, a nonlinear excitation signal is determined from the excitation signal, and a signal prediction model is established with the nonlinear excitation signal as input and the harmonic signal in the diaphragm displacement signal as output. In this way, the number of parameters of the signal prediction model can be reduced, thereby reducing the difficulty of modeling.

[0031] It can be understood that, as mentioned above, the input of the signal prediction model can be a nonlinear excitation signal, the output can be a harmonic signal in the diaphragm displacement signal, and the parameters to be determined can be the first coefficient of the fundamental excitation signal, the second coefficient of the second-order nonlinear excitation signal, and the third coefficient of the third-order nonlinear excitation signal.

[0032] In some specific implementations, the signal prediction model can be established in the following ways:

[0033] It can be understood that first, a sweep frequency signal can be input to the speaker to obtain the diaphragm displacement signal of the speaker under the sweep frequency signal, and a convolution operation is performed on the inverse sweep frequency signal corresponding to the sweep frequency signal and the diaphragm displacement signal of the speaker under the sweep frequency signal to determine a multi-order harmonic impulse response signal. Since the multi-order harmonic impulse response can filter high-order harmonic signals after convolution operation, the nonlinear excitation signal and the multi-order harmonic impulse response signal can be convolutionally operated to filter out the fourth-order and higher harmonic signals to determine the multi-order harmonic signal to be adjusted. The multi-order harmonic signal to be adjusted can include a fundamental harmonic signal, a second-order harmonic signal and a third-order harmonic signal, and the parameters to be determined can be the first coefficient of the fundamental excitation signal in the nonlinear excitation signal, the second coefficient of the second-order nonlinear excitation signal, and the third coefficient of the third-order nonlinear excitation signal.

[0034] In some instances, considering that the amplitude of the excitation signal is complex and changeable, determining the harmonic signal in the diaphragm displacement signal solely based on the nonlinear excitation signal will reduce the accuracy of determining the harmonic signal. Therefore, the target correction coefficient can be determined based on the first peak value of the excitation signal, and the multi-order harmonic signal to be adjusted can be adjusted based on the target correction coefficient. In this way, the accuracy of the determined harmonic signal can be improved.

[0035] Combine the following Figure 1 and Figure 2 Introduce the signal processing method in this application, Figure 1 A schematic flow chart of a signal processing method is shown. Figure 2 A structural schematic diagram of a signal processing method is shown, such as Figure 1 and Figure 2 As shown, the signal processing method includes:

[0036] 101: Obtain an excitation signal.

[0037] It can be understood that the excitation signal may refer to the input sound source of the input speaker. The excitation signal may be a signal composed of one or more signals such as a sine signal, a square wave signal, a pulse signal, a Gaussian signal, a random signal, a pulse sequence, etc., and the embodiment of the present application does not make specific limitations.

[0038] 102: Determine a first peak value according to the amplitude of the excitation signal.

[0039] It can be understood that the first peak value may refer to the maximum amplitude, average amplitude, or a fixed amplitude set according to the strength of the excitation signal.

[0040] It can be understood that in some specific implementations, since the amplitude of the excitation signal changes in real time, in order to improve the accuracy of the determined first peak value, the excitation signal can be divided and processed. Specifically, the excitation signal can be divided and processed using a window function. In the specific implementation of the present application, the excitation signal can also be divided in other ways, which is not specifically limited in the embodiments of the present application.

[0041] The following takes the use of a window function to divide the excitation signal as an example to introduce how to determine the first peak value from the excitation signal.

[0042] In some optional examples, the excitation signal within the fixed window length can be determined by multiplying the excitation signal by the window function, thereby determining the first peak of the excitation signal based on the excitation signal within the fixed window length. It can be understood that the window function can include a rectangular window function, a Hanning window function, a Hamming window function, etc., and this application does not make specific restrictions.

[0043] For example, the excitation signal is a sinusoidal signal x(n) = Asin(ωn), and the window function is a rectangular window function. Where x(n) is the excitation signal, A is the amplitude of the excitation signal, is a rectangular window function, m is the window length, M is the sampling length, and when m=60, the maximum amplitude of the excitation signal within the window length when the window length is 60 can be determined and taken as the first peak of the excitation signal.

[0044] 103: Determine a nonlinear excitation signal from the excitation signal.

[0045] In some optional examples, the excitation signal may be subjected to power processing to determine a nonlinear excitation signal of an order corresponding to the power, as specifically shown in formula (1):

[0046] x k (n) = x k (n) (1)

[0047] Among them, x k (n) represents the nonlinear excitation signal of the order corresponding to the power when the excitation signal is subjected to power processing, x(n) represents the excitation signal, and k represents the power.

[0048] In some embodiments, since the fourth-order and higher nonlinear excitation signals are weak and have many parameters, in order to reduce the number of parameters, third-order and lower nonlinear excitation signals can be determined, including fundamental excitation signals, second-order nonlinear excitation signals, and third-order nonlinear excitation signals.

[0049] In some specific examples, taking the excitation signal as a sinusoidal signal x(n)=Asin(ωn) as an example, the excitation signal can be respectively calculated to the first power, the second power and the third power, as shown in formula (2), formula (3) and formula (4):

[0050] A 1 sin(ωn) 1 =Asin(ωn) (2)

[0051]

[0052] Where A is the amplitude of the excitation signal, and ω is the digital angular frequency. Therefore, the fundamental excitation signal x1(n) shown in formula (5) can be derived from formula (1), the second-order nonlinear excitation signal x2(n) shown in formula (6) can be derived from formula (3), and the third-order nonlinear excitation signal x3(n) shown in formula (7) can be derived from formula (4):

[0053] x1(n)=x(n) (5)

[0054]

[0055] It can be understood that, from the above, the nonlinear excitation signal can include a fundamental excitation signal, a second-order nonlinear excitation signal and a third-order nonlinear excitation signal. For example, the nonlinear excitation signal y(n)=x1(n)+x2(n)+x3(n), wherein x1(n) is represented as the fundamental excitation signal, x2(n) is represented as the second-order nonlinear excitation signal, and x3(n) is represented as the third-order nonlinear excitation signal.

[0056] It can be understood that the execution order of step 102 and step 103 can be to execute step 102 and step 103 simultaneously, or to execute step 102 first and then step 103, or to execute step 103 first and then step 102, which is not specifically limited in the embodiments of the present application.

[0057] 104: Establish a signal prediction model.

[0058] It can be understood that, as mentioned above, a signal prediction model can be established with a nonlinear excitation signal as input and a harmonic signal in a diaphragm displacement signal as output, wherein the parameters to be determined can be the first coefficient of the fundamental excitation signal in the nonlinear excitation signal, the second coefficient of the second-order nonlinear excitation signal, and the third coefficient of the third-order nonlinear excitation signal.

[0059] Specifically, a frequency sweep signal may be input to the speaker, and a diaphragm displacement signal of the speaker under the frequency sweep signal may be obtained, and a convolution operation may be performed on an inverse frequency sweep signal corresponding to the frequency sweep signal and a diaphragm displacement signal of the speaker under the frequency sweep signal to determine a multi-order harmonic impulse response signal. Since a multi-order harmonic impulse response may filter a high-order harmonic signal after a convolution operation, a convolution operation may be performed on a nonlinear excitation signal and a multi-order harmonic impulse response signal to filter out fourth-order and higher harmonic signals, and determine a multi-order harmonic signal to be adjusted, the multi-order harmonic signal to be adjusted may include a fundamental harmonic signal, a second-order harmonic signal, and a third-order harmonic signal, and the parameters to be determined may be a first coefficient of a fundamental excitation signal in the nonlinear excitation signal, a second coefficient of a second-order nonlinear excitation signal, and a third coefficient of a third-order nonlinear excitation signal.

[0060] 105: Predicting a harmonic signal in a diaphragm displacement signal of a loudspeaker based on the nonlinear excitation signal, the first peak value and a signal prediction model.

[0061] In some optional examples, the harmonic signal in the diaphragm displacement signal of the loudspeaker may be predicted based on the nonlinear excitation signal, the first peak value, and the signal prediction model.

[0062] It can be understood that the target correction coefficient for correcting the harmonic signal in the diaphragm displacement signal can be determined based on the one-to-one correspondence between the first peak value of the excitation signal and the correction coefficient, which can improve the accuracy of the determined harmonic signal, so that the correction coefficient initialized when the excitation signal is input can be adjusted based on the target correction coefficient. For example, the initialized correction coefficient can be adjusted to a difference with the target correction coefficient within a preset difference range to obtain the adjusted correction coefficient, which is the correction coefficient for correcting the coefficients in the nonlinear excitation signal (e.g., the first coefficient, the second coefficient, and the third coefficient).

[0063] In this process, the signal prediction model distinguishes the linear excitation signal and the nonlinear excitation signal of the excitation signal, thereby distinguishing the linear component and the nonlinear component (harmonic signal) of the diaphragm displacement signal, that is, the nonlinear excitation signal is used as the input of the signal prediction model, and the harmonic signal in the diaphragm displacement signal is used as the output. Through methods such as harmonic impulse response measurement and peak detection, a harmonic signal that changes with the amplitude of the excitation signal is output, which can reduce the number of parameters of the signal prediction model, and by performing power processing on the nonlinear excitation signal, the order of the output harmonic signal can be determined, which can reduce the difficulty of modeling, has good robustness, and is conducive to practical applications.

[0064] Furthermore, in some other implementations, the signal prediction model may also help subsequent speakers eliminate harmonic distortion, thereby achieving the effect of reducing the harmonic distortion of the speakers.

[0065] In an embodiment of the present application, a signal prediction model is established by means of polynomial fitting, wherein the input of the signal prediction model is a nonlinear excitation signal, and the output is a harmonic signal in the diaphragm displacement signal, thereby being able to describe the corresponding relationship between the amplitude of the excitation signal and the strength of the harmonic impulse response signal.

[0066] The signal prediction model for predicting the harmonic signal in the diaphragm displacement signal of the loudspeaker is described in detail below with reference to the accompanying drawings.

[0067] 1041: Determine the multi-order harmonic signal to be adjusted.

[0068] In some specific embodiments, Figure 3 A schematic diagram of determining a multi-order harmonic signal to be adjusted is shown, by performing a convolution operation on a nonlinear excitation signal and a multi-order harmonic impulse response signal to filter out fourth-order and higher harmonic signals, and determining the multi-order harmonic signal to be adjusted, the multi-order harmonic signal to be adjusted may include a fundamental harmonic signal, a second-order harmonic signal, and a third-order harmonic signal. Among them, the impulse response of the harmonic signal only needs to be measured once, which can reduce processing resources and improve system processing efficiency.

[0069] It can be understood that the impulse response is the zero-state response of a vibration system (such as the system consisting of the diaphragm and voice coil of the speaker in the previous article) under the excitation of a unit impulse function. In a continuous-time system, any signal can be decomposed into a superposition of impulse signals with different time delays, and the convolution operation method can be used to calculate multi-order harmonic impulse response signals.

[0070] Among them, the method of obtaining multi-order harmonic impulse response signals is as follows: Figure 4 As shown. A frequency sweep signal is a signal whose vibration frequency varies with time. The frequency sweep signal can be an input voltage signal of a speaker, which is used to excite the speaker. In some specific implementations, the frequency sweep signal can be determined by parameters such as the frequency range of the speaker, the duration of exciting the speaker, and the initial amplitude. In an embodiment of the present application, considering that a logarithmic frequency sweep signal is used to measure the harmonic impulse response, the impulse response signals of the fundamental wave and each order of harmonics are basically separated, which facilitates the extraction of the impulse response signals of the fundamental wave and each order of harmonics. Therefore, the present application takes the frequency sweep signal as a logarithmic frequency sweep signal as an example for introduction.

[0071] First, a sweep frequency signal is input to the speaker, and then the displacement of the diaphragm in the speaker collected by a measuring device such as a laser rangefinder can be obtained to obtain a speaker diaphragm displacement signal. Then, the corresponding sweep frequency inverse signal is determined based on the sweep frequency signal. For example, formula (8) shows a formula for a logarithmic sweep frequency signal. The sweep frequency inverse signal corresponding to the sweep frequency signal shown in formula (8) can be calculated according to the calculation formula of the sweep frequency inverse signal in formula (9).

[0072]

[0073] Among them, x sweep (n) is the sweep signal, n=0, 1, 2...N-1; ω1 and ω2 are the digital angular frequencies of the start and end frequencies of the sweep signal respectively, and N is the length of the sweep signal.

[0074]

[0075] Among them, x inv (n) is the inverse signal of the frequency sweep corresponding to the frequency sweep signal shown in formula (8), n = 0, 1, 2...N-1; ω1 and ω2 are the digital angular frequencies of the start and end frequencies of the frequency sweep signal, respectively, and N is the length of the frequency sweep signal. sweep The value of n in (n) is (Nn-1), and formula (8) is substituted into formula (9) to obtain the swept frequency inverse signal shown in formula (9).

[0076] In some specific implementations, the frequency sweep signal shown in formula (8) is used as the input voltage signal of the speaker to excite the speaker, and the displacement of the diaphragm of the speaker is acquired by a measuring device such as a laser rangefinder to obtain a diaphragm displacement signal of the speaker. By performing a convolution operation on the frequency sweep inverse signal and the diaphragm displacement signal, multi-order harmonic impulse response signals are calculated, and the multi-order harmonic impulse response signals may include a fundamental harmonic impulse response signal h1, a second-order harmonic impulse response signal h2, a third-order harmonic impulse response signal h3, etc.

[0077] Therefore, a convolution operation can be performed based on the multi-order harmonic impulse response signal and the nonlinear excitation signal to determine the multi-order harmonic signal z1(n) to be adjusted. Since the multi-order harmonic impulse response can filter the high-order harmonic signal after the convolution operation, the nonlinear excitation signal and the multi-order harmonic impulse response signal can be convolved to filter out the fourth-order and higher harmonic signals to determine the multi-order harmonic signal z1(n) to be adjusted. The multi-order harmonic signal z1(n) to be adjusted may include a fundamental harmonic signal, a second-order harmonic signal and a third-order harmonic signal. Therefore, the multi-order harmonic signal z1(n) to be adjusted is shown in formula (10):

[0078]

[0079] Among them, z1(n) represents the multi-order harmonic signal to be adjusted, x1(n) represents the fundamental excitation signal, x2(n) represents the second-order nonlinear excitation signal, x3(n) represents the third-order nonlinear excitation signal, h1 represents the fundamental harmonic impulse response signal, h2 represents the second-order harmonic impulse response signal, and h3 represents the third-order harmonic impulse response signal.

[0080] In other specific implementations, as mentioned above, there is a nonlinear mapping relationship between the diaphragm displacement of the speaker and the amplitude of the input signal (such as the above-mentioned sweep signal). When the amplitude of the input signal is small, there is almost no nonlinear distortion in the diaphragm displacement of the speaker. When the amplitude of the input signal is large, there is nonlinear distortion in the diaphragm displacement of the speaker. Therefore, in the measurement process, the amplitude of the partial signal corresponding to the initial time of the sweep signal is generally small, and the amplitude of the sweep signal is usually selected when the diaphragm displacement of the speaker is still in the linear range. Therefore, it is possible to judge whether the maximum displacement of the speaker diaphragm is reached based on the speaker diaphragm displacement result measured by the current laser rangefinder. If the diaphragm displacement of the speaker is less than the maximum displacement at this time, the sweep signal amplitude can be increased, such as increasing by 1dB, and then based on the increased amplitude sweep signal, the impulse response calculation of the diaphragm displacement signal is performed again, otherwise the measurement ends.

[0081] 1042: Determine an adjusted correction coefficient for correcting the harmonic signal in the diaphragm displacement signal.

[0082] In some specific examples, such as Figure 5 The figure shows a schematic diagram of determining the adjusted correction coefficient for correcting the harmonic signal in the diaphragm displacement signal. Specifically, in the process of inputting the excitation signal to the speaker, the target correction coefficient corresponding to the first peak value can be determined by the first peak value determined in step 102 above, and the one-to-one correspondence between the first peak value and the target correction coefficient.

[0083] Next, the difference between the initialization correction coefficient and the target correction coefficient is obtained. When the difference between the initialization correction coefficient and the target correction coefficient is not within the preset difference interval, the initialization correction coefficient is adjusted with a fixed step size until the difference between the initialization correction coefficient and the target correction coefficient is within the preset difference interval. The adjusted correction coefficient is determined, that is, the correction coefficient for correcting the coefficients in the nonlinear excitation signal (for example, the first coefficient, the second coefficient, and the third coefficient).

[0084] For example, if the target correction coefficient is 1.2, the fixed step size is 0.01, the obtained initialization correction coefficient is 0, and the preset difference interval is [-0.01, 0.01], the initialization correction coefficient can be gradually added in steps of 0.01 until the difference between the initialization correction coefficient 0 and the preset correction coefficient 1.2 satisfies [-0.01, 0.01].

[0085] In some specific implementations, in order to avoid problems such as harmonic noise caused by sudden changes in the correction coefficient, a fixed step size can be used to update the initialization correction coefficient instead of directly replacing the initialization correction coefficient with a preset correction coefficient, where the fixed step size is a set value.

[0086] The present application provides a chip, which is used to execute the signal processing method mentioned in the present application.

[0087] This embodiment is a chip implementation corresponding to the above-mentioned signal processing method embodiment, and this embodiment can be implemented in conjunction with the signal processing method implementation. The relevant technical details mentioned in the signal processing method implementation are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the signal processing method implementation.

[0088] An embodiment of the present application provides an electronic device, which may include a speaker and the above-mentioned chip, wherein the speaker includes a voice coil and a diaphragm.

[0089] The electronic device mentioned in the present application is introduced below. It can be understood that the electronic device can be any electronic device including the above chip and speaker. But not limited to: mobile phones (including foldable screen mobile phones and straight-screen mobile phones), tablet computers, desktop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (personal digital assistants), tablet computers (portable android devices, PAD), personal digital assistants (personal digital assistants, PDA), handheld devices with wireless communication functions, computing devices, vehicle-mounted devices or wearable devices, virtual reality (virtual reality, VR) terminal devices, augmented reality (augmented reality, AR) terminal devices, wireless terminals in industrial control (industrial control), wireless terminals in self driving, wireless terminals in remote medical, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, and other mobile terminals or fixed terminals, power banks and other electronic devices with data transmission synchronization requirements.

[0090] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0091] Although the present application has been illustrated and described with reference to certain embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.

Claims

1. A signal processing method, applied to a loudspeaker, characterized in that: include: Obtaining an incentive signal; determining a first peak value according to the amplitude in the excitation signal; determining a nonlinear excitation signal from the excitation signal; Establishing a signal prediction model, wherein the signal prediction model is used to predict a harmonic signal in a diaphragm displacement signal of the loudspeaker; A harmonic signal in a diaphragm displacement signal of the loudspeaker is predicted based on the nonlinear excitation signal, the first peak value, and the signal prediction model.

2. The method according to claim 1, characterized in that: The excitation signal includes at least one of the following: Sine signal, square wave signal, pulse signal, Gaussian signal, random signal, pulse train.

3. The method according to claim 1, characterized in that The step of determining a first peak value according to the amplitude of the excitation signal comprises: Based on the excitation signal and the window function, determining the excitation signal within the fixed window length corresponding to the window function, wherein the window function is a function for dividing the signal; Based on the excitation signal within the fixed window length, a first peak value of the excitation signal is determined, wherein the first peak value is a maximum amplitude, an average amplitude, or a fixed amplitude set according to the strength of the excitation signal within the fixed window length.

4. The method according to claim 1, characterized in that: The determining of a nonlinear excitation signal from the excitation signal comprises: The excitation signal is subjected to power processing to determine a nonlinear excitation signal of an order corresponding to the power.

5. The method according to claim 4, characterized in that The nonlinear excitation signal includes a fundamental wave excitation signal, a second-order nonlinear excitation signal and a third-order nonlinear excitation signal.

6. The method according to claim 1, characterized in that The step of establishing a signal prediction model to predict a harmonic signal in a diaphragm displacement signal of the loudspeaker based on the nonlinear excitation signal, the first peak value, and the signal prediction model comprises: Inputting a frequency sweep signal to the speaker, and obtaining a diaphragm displacement signal of the speaker under the frequency sweep signal; Performing convolution processing on the inverse frequency sweep signal corresponding to the frequency sweep signal and the diaphragm displacement signal to determine multi-order harmonic impulse response signals; Performing filtering processing on the multi-order harmonic impulse response signals to determine the multi-order harmonic signals to be adjusted; In the signal prediction model, the multi-order harmonic signal to be adjusted is adjusted based on the first peak value to obtain the harmonic signal in the diaphragm displacement signal of the speaker.

7. The method according to claim 6, characterized in that The filtering process is performed on the multi-order harmonic impulse response signal to obtain the multi-order harmonic signal to be adjusted, including: The nonlinear excitation signal and the multi-order harmonic impulse response signal are subjected to convolution processing to determine the multi-order harmonic signal to be adjusted.

8. The method according to claim 6, characterized in that The step of adjusting the multi-order harmonic signal to be adjusted based on the first peak value to obtain the harmonic signal in the diaphragm displacement signal of the loudspeaker includes: determining a target correction factor based on the first peak value; The multi-order harmonic signal to be adjusted is adjusted based on the target correction coefficient to obtain a harmonic signal in the diaphragm displacement signal of the loudspeaker.

9. The method according to claim 8, characterized in that The step of adjusting the multi-order harmonic signal to be adjusted based on the target correction coefficient to obtain the harmonic signal in the diaphragm displacement signal of the loudspeaker includes: Obtaining an initialization correction coefficient for initializing the correction coefficient when the excitation signal is input; Adjusting the initialization correction coefficient based on the target correction coefficient to obtain an adjusted correction coefficient; The multi-order harmonic signal to be adjusted is adjusted based on the adjusted correction coefficient to obtain a harmonic signal in the diaphragm displacement signal of the loudspeaker.

10. The method according to claim 9, characterized in that The adjusting the initialization correction coefficient based on the target correction coefficient to obtain the adjusted correction coefficient includes: The initialization correction coefficient is adjusted based on a fixed step size until the difference between the initialization correction coefficient and the target correction coefficient is within a preset difference range, thereby obtaining an adjusted correction coefficient.

11. A chip, characterized in that: The chip is used to execute the signal processing method according to any one of claims 1 to 10.

12. An electronic device, characterized in that: The invention comprises a speaker and the chip as claimed in claim 11, wherein the speaker comprises a voice coil and a diaphragm.