Signal processing method, device and equipment and computer readable storage medium

By obtaining the feedback circuit parameters of the speaker, the nonlinear compensation mode is automatically turned on, which solves the problem of nonlinear distortion of the speaker in high volume signal processing, reduces equipment power consumption and improves sound quality, and realizes effective compensation processing of the speaker.

CN119110217APending Publication Date: 2024-12-10GEER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310680229.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-08
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

In the prior art, when dealing with loudspeakers receiving large volume signals, nonlinear distortion problems lead to large power consumption of equipment and large calculations of compensation algorithms, making it difficult to effectively reduce the distortion of speakers.

Method used

By obtaining the feedback circuit parameters of the speaker, if the detected parameter is greater than the preset threshold, the nonlinear compensation mode will be automatically turned on, the signal parameters are determined based on the feedback circuit parameters and the nonlinear compensation process is performed, and the circuit impedance and temperature of the speaker are adjusted to optimize signal driving.

Benefits of technology

It reduces the power consumption of nonlinear compensation algorithm equipment, reduces the time-consuming demand for nonlinear compensation, improves the sound quality and service life of the speaker, and reduces the occurrence of nonlinear distortion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119110217A_ABST
    Figure CN119110217A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of signal processing, in particular to a signal processing method, device and equipment and a computer readable storage medium, and the method comprises the steps: obtaining a feedback circuit parameter of a previous frame signal driving loudspeaker circuit of a current frame signal; if it is detected that the feedback circuit parameter is greater than a preset parameter threshold, determining a signal parameter of a previous frame of signal based on the feedback circuit parameter; and performing nonlinear compensation processing on the current frame of signal through the signal parameter to obtain a target signal, so as to drive a loudspeaker to produce sound according to the target signal. When it is determined that the feedback circuit parameter of the loudspeaker driven by the previous frame of signal is larger than the preset parameter threshold value, the nonlinear compensation mode is automatically started, so that equipment applying a nonlinear compensation algorithm does not need to be subjected to nonlinear compensation all the time, and the power consumption of the equipment applying the nonlinear compensation algorithm is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of signal processing technology, and in particular to a signal processing method, device, equipment and computer-readable storage medium. Background Art

[0002] When the speaker receives a loud signal, it receives a higher driving voltage, and nonlinear distortion will occur in the speaker. At present, in order to reduce the nonlinear distortion of the speaker and ensure the quality of the speaker's output audio, the loud signal is compensated by inverse filtering nonlinear distortion, so as to reduce the distortion of the loud signal played by the speaker without losing the sound quality and volume. However, this nonlinear compensation method has a large amount of calculation, which makes the device using this algorithm consume a lot of power. Summary of the invention

[0003] The main purpose of the present invention is to provide a signal processing method, apparatus, device and computer-readable storage medium, aiming to reduce the power consumption of a device applying a nonlinear compensation algorithm.

[0004] To achieve the above object, the present invention provides a signal processing method, which comprises the following steps:

[0005] Obtaining the feedback circuit parameters of the previous frame signal of the current frame signal driving the speaker circuit;

[0006] If it is detected that the feedback circuit parameter is greater than a preset parameter threshold, determining the signal parameter of the previous frame signal based on the feedback circuit parameter;

[0007] The current frame signal is subjected to nonlinear compensation processing by using the signal parameters to obtain a target signal, so as to drive the speaker to produce sound according to the target signal.

[0008] Optionally, the feedback circuit parameter includes a feedback voltage and a feedback current, and if it is detected that the feedback circuit parameter is greater than a preset parameter threshold, the step of determining the signal parameter of the previous frame signal based on the feedback circuit parameter includes:

[0009] If it is detected that the feedback voltage is greater than a preset voltage threshold, calculating the circuit impedance of the speaker circuit based on the feedback voltage and the feedback current;

[0010] A signal parameter of the previous frame signal is determined based on the circuit impedance.

[0011] Optionally, the signal parameters include nonlinear parameters corresponding to the previous frame signal, and the step of performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain the target signal includes:

[0012] The target signal is obtained by processing the current frame signal through the nonlinear parameter to adjust the actual nonlinear displacement caused by the current frame signal.

[0013] Optionally, the signal parameters further include linear parameters corresponding to the previous frame signal, and the step of performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain the target signal further includes:

[0014] Processing the current frame signal by the linear parameter to obtain a linear signal, so as to adjust the actual linear displacement caused by the current frame signal;

[0015] The linear signal is processed by the nonlinear parameter to obtain a target signal, so as to adjust the actual nonlinear displacement.

[0016] Optionally, the step of processing the current frame signal by using the linear parameter to obtain a linear signal includes:

[0017] Calculating a theoretical linear displacement caused by the current frame signal based on the linear parameter;

[0018] The voltage of the current frame signal is adjusted according to the theoretical linear displacement to obtain a linear signal, wherein the actual linear displacement is consistent with the theoretical linear displacement.

[0019] Optionally, the step of processing the current frame signal by using the linear parameter to obtain a linear signal includes:

[0020] Modify the module parameters of the linear displacement module of the loudspeaker according to the linear parameters to obtain a target module;

[0021] The signal voltage of the current frame signal is processed by the target module to obtain a linear signal.

[0022] Optionally, before the step of performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain a target signal, the method further includes:

[0023] Determining a current temperature of the speaker based on the feedback circuit parameter, and detecting whether the current temperature is within a preset temperature range;

[0024] If the current temperature is not within the preset temperature range, adjusting the gain of the current frame signal based on the current temperature, wherein the higher the current temperature is, the lower the gain of the current frame signal after the gain is adjusted;

[0025] The step of performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain a target signal comprises:

[0026] The target signal is obtained by performing nonlinear compensation processing on the current frame signal after the gain is adjusted using the signal parameters.

[0027] To achieve the above object, the present invention further provides a signal processing device, the signal processing device comprising:

[0028] An acquisition module, used for acquiring the feedback circuit parameters of the previous frame signal of the current frame signal driving the speaker circuit;

[0029] A determination module, configured to determine the signal parameter of the previous frame signal based on the feedback circuit parameter if it is detected that the feedback circuit parameter is greater than a preset parameter threshold;

[0030] The output module is used to perform nonlinear compensation processing on the current frame signal through the signal parameters to obtain a target signal, so as to drive the speaker to produce sound according to the target signal.

[0031] To achieve the above-mentioned purpose, the present invention also provides a signal processing device, which includes: a memory, a processor, and a signal processing program stored in the memory and executable on the processor, and the signal processing program implements the steps of the signal processing method described above when executed by the processor.

[0032] In addition, to achieve the above-mentioned purpose, the present invention further proposes a computer-readable storage medium, on which a signal processing program is stored, and when the signal processing program is executed by a processor, the steps of the signal processing method described above are implemented.

[0033] In the present invention, the feedback circuit parameters of the speaker circuit driven by the previous frame signal of the current frame signal are obtained; if it is detected that the feedback circuit parameters are greater than the preset parameter threshold, it is determined that the circuit parameters of the speaker driven by the previous frame signal are too large, and the speaker has nonlinear distortion, and the signal parameters of the previous frame signal are determined based on the feedback circuit parameters; the current frame signal is subjected to nonlinear compensation processing through the signal parameters to obtain a target signal, so as to drive the speaker to sound according to the target signal. The present invention realizes determining whether the speaker has nonlinear distortion through the feedback circuit parameters, and automatically turns on the nonlinear compensation mode when it is determined that the feedback circuit parameters of the speaker driven by the previous frame signal are greater than the parameter threshold (that is, the speaker has nonlinear distortion), so that the device applying the nonlinear compensation algorithm does not need to perform nonlinear compensation all the time, thereby reducing the power consumption of the device applying the nonlinear compensation algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention;

[0035] Figure 2 It is a flowchart of a first embodiment of a signal processing method of the present invention;

[0036] Figure 3 A schematic diagram of a flow chart of an implementation method of a signal processing method of the present invention;

[0037] Figure 4 A schematic diagram of a nonlinear compensation process involved in an embodiment of a signal processing method of the present invention;

[0038] Figure 5 Schematic diagram of functional modules of a preferred embodiment of a signal processing device of the present invention.

[0039] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0040] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0041] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.

[0042] It should be noted that the signal processing device in the embodiment of the present invention may be a smart phone, a personal computer, a server, a head-mounted device (such as an extended reality device), etc., and no specific limitation is made here.

[0043] like Figure 1 As shown, the signal processing device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0044] Those skilled in the art will understand that Figure 1The device structure shown in the figure does not constitute a limitation on the signal processing device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0045] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a signal processing program. The operating system is a program that manages and controls the hardware and software resources of the device and supports the operation of the signal processing program and other software or programs. Figure 1 In the device shown, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing a communication connection with the server; and the processor 1001 can be used to call the signal processing program stored in the memory 1005 and perform the following operations:

[0046] Obtaining the feedback circuit parameters of the previous frame signal of the current frame signal driving the speaker circuit;

[0047] If it is detected that the feedback circuit parameter is greater than a preset parameter threshold, determining the signal parameter of the previous frame signal based on the feedback circuit parameter;

[0048] The current frame signal is subjected to nonlinear compensation processing by using the signal parameters to obtain a target signal, so as to drive the speaker to produce sound according to the target signal.

[0049] Further, the feedback circuit parameter includes a feedback voltage and a feedback current, and if it is detected that the feedback circuit parameter is greater than a preset parameter threshold, the operation of determining the signal parameter of the previous frame signal based on the feedback circuit parameter includes:

[0050] If it is detected that the feedback voltage is greater than a preset voltage threshold, calculating the circuit impedance of the speaker circuit based on the feedback voltage and the feedback current;

[0051] A signal parameter of the previous frame signal is determined based on the circuit impedance.

[0052] Furthermore, the signal parameters include nonlinear parameters corresponding to the previous frame signal, and the operation of performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain the target signal includes:

[0053] The target signal is obtained by processing the current frame signal through the nonlinear parameter to adjust the actual nonlinear displacement caused by the current frame signal.

[0054] Furthermore, the signal parameters also include linear parameters corresponding to the previous frame signal, and the operation of performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain the target signal also includes:

[0055] Processing the current frame signal by the linear parameter to obtain a linear signal, so as to adjust the actual linear displacement caused by the current frame signal;

[0056] The linear signal is processed by the nonlinear parameter to obtain a target signal, so as to adjust the actual nonlinear displacement.

[0057] Further, the operation of processing the current frame signal by using the linear parameter to obtain a linear signal includes:

[0058] Calculating a theoretical linear displacement caused by the current frame signal based on the linear parameter;

[0059] The voltage of the current frame signal is adjusted according to the theoretical linear displacement to obtain a linear signal, wherein the actual linear displacement is consistent with the theoretical linear displacement.

[0060] Further, the operation of processing the current frame signal by using the linear parameter to obtain a linear signal includes:

[0061] Modify the module parameters of the linear displacement module of the loudspeaker according to the linear parameters to obtain a target module;

[0062] The signal voltage of the current frame signal is processed by the target module to obtain a linear signal.

[0063] Further, before the operation of performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain the target signal, the processor 1001 may also be used to call the signal processing program stored in the memory 1005 and perform the following operations:

[0064] Determining a current temperature of the speaker based on the feedback circuit parameter, and detecting whether the current temperature is within a preset temperature range;

[0065] If the current temperature is not within the preset temperature range, adjusting the gain of the current frame signal based on the current temperature, wherein the higher the current temperature is, the lower the gain of the current frame signal after the gain is adjusted;

[0066] The operation of performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain a target signal includes:

[0067] The target signal is obtained by performing nonlinear compensation processing on the current frame signal after the gain is adjusted using the signal parameters.

[0068] Based on the above structure, various embodiments of the signal processing method are proposed.

[0069] Reference Figure 2 , Figure 2 FIG. 4 is a flow chart of a first embodiment of a signal processing method according to the present invention.

[0070] The embodiments of the present invention provide embodiments of the signal processing method. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here. In this embodiment, the execution subject of the signal processing method may be a personal computer, a smart phone, a head-mounted device (such as an extended reality device) and other devices, which are not limited in this embodiment. For the sake of ease of description, the execution subject is omitted to explain each embodiment. In this embodiment, the signal processing method includes:

[0071] Step S10, obtaining the feedback circuit parameters of the speaker circuit driven by the previous frame signal of the current frame signal;

[0072] When the loudspeaker receives a loud volume signal exceeding the preset volume range, the loudspeaker is subjected to a larger driving voltage, and the voice coil in the loudspeaker moves beyond the maximum displacement allowed by the loudspeaker without distortion. At this time, harmonic resonance occurs in the loudspeaker, causing the output signal of the loudspeaker to contain harmonic signals that are not included in the sound source signal (that is, the signal that the loudspeaker needs to reproduce the audio), that is, nonlinear distortion occurs in the loudspeaker.

[0073] Before the sound source signal is input into the speaker to be reproduced through the speaker audio, the sound source signal can be processed. In the process of processing the sound source signal, the sound source signal is processed in frames, and the currently processed frame of the sound source signal is called the current frame signal for distinction.

[0074] In this embodiment, the feedback circuit parameters of the speaker circuit driven by the previous frame signal of the current frame signal are obtained. Specifically, the feedback circuit parameters may include the circuit parameters of the speaker when the previous frame signal drives the speaker to make a sound, and may specifically include the signal current (hereinafter referred to as feedback voltage for distinction), signal voltage (hereinafter referred to as feedback current for distinction) and speaker power when the previous frame signal drives the speaker to make a sound. In one feasible implementation, the feedback circuit parameters may be directly read by a smartPA (intelligent power amplifier) ​​chip with nonlinear compensation processing; in another feasible implementation, the feedback circuit parameters may also be obtained by a circuit device such as a multimeter.

[0075] Step S20, if it is detected that the feedback circuit parameter is greater than a preset parameter threshold, determining the signal parameter of the previous frame signal based on the feedback circuit parameter;

[0076] In this embodiment, it is detected whether the feedback circuit parameter is greater than a preset parameter threshold. If it is detected that the feedback circuit parameter is greater than the preset parameter threshold, it is determined that the circuit parameter of the previous frame signal driving the speaker is too large, and the previous frame signal is a high volume signal. At this time, the speaker has nonlinear distortion, and the signal parameter of the previous frame signal is determined based on the feedback circuit parameter. In a specific implementation, it can be detected whether the feedback voltage is greater than the corresponding voltage parameter threshold, or it can be detected whether the feedback current is greater than the corresponding current parameter threshold, which is not specifically limited here.

[0077] In a feasible implementation, after the feedback current and the feedback voltage are determined, the impedance of the speaker is calculated based on the feedback voltage and the feedback current, and the signal parameters of the previous frame signal are obtained based on the impedance of the speaker. The specific process of determining the signal parameters according to the impedance of the speaker can refer to the conventional calculation process, which will not be described in detail here.

[0078] Since harmonic resonance may occur when a loudspeaker plays a loudspeaker signal, specifically, the signal parameters may include parameters of the loudspeaker system corresponding to the harmonic part generated when the loudspeaker reproduces the previous frame signal (i.e., nonlinear parameters); in another feasible implementation, the signal parameters may include nonlinear parameters and system parameters of the loudspeaker system corresponding to the fundamental wave part (i.e., the previous frame signal) when the loudspeaker reproduces the previous frame signal (i.e., linear parameters).

[0079] Step S30, performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain a target signal, so as to drive the speaker to produce sound according to the target signal.

[0080] In this embodiment, the current frame signal is subjected to nonlinear compensation processing by using signal parameters to obtain a target signal. In one feasible implementation, the specific process of the nonlinear compensation processing can refer to the conventional nonlinear compensation processing process; in another feasible implementation, the nonlinear compensation processing process can also be improved, and the processing is performed according to the improved nonlinear compensation processing process. For example, the improved nonlinear compensation processing process can be: the current frame signal is processed by linear parameters to obtain a linear signal, and then the linear signal is processed by nonlinear parameters to obtain a target signal. The specific setting can be based on actual needs and is not limited here.

[0081] In this embodiment, the target signal is output to the speaker to drive the speaker to produce sound. Specifically, the target signal is output to the positive and negative ends of the speaker, and the target signal drives the speaker voice coil to reciprocate, thereby driving the speaker to produce sound.

[0082] Furthermore, in a feasible implementation manner, the target signal may be power amplified and then the amplified signal may be output to both ends of the speaker, thereby driving the speaker to produce sound.

[0083] Furthermore, in a feasible implementation manner, the signal processing performed on the current frame signal may specifically include gain, volume adjustment, equalization, dynamic range control and other processing, and the nonlinear compensation processing may be the last processing step of the multiple processing of the sound source signal. That is, in this implementation manner, after performing gain, volume adjustment, equalization, dynamic range control and other processing on the current frame signal, the processed current frame signal is subjected to nonlinear compensation processing, and then the current frame signal after nonlinear compensation is output to the speaker.

[0084] Furthermore, in another feasible implementation, it is also possible to detect whether the speaker is in a high volume state, wherein the high volume state is a state where the signal volume input to the speaker is greater than a preset volume range; if the speaker is in a high volume state, the step of obtaining the feedback circuit parameters is performed. In this implementation, detecting whether the speaker is in a high volume state may be by detecting whether the previous frame signal meets a preset volume condition, wherein the volume condition is that the signal volume is less than a preset volume and the signal gain value is less than a preset gain value; if the previous frame signal does not meet the volume condition, it is determined that the speaker is in a high volume state.

[0085] Further, in a feasible implementation, it may be determined that an on instruction for starting the nonlinear processing is received after detecting that the feedback circuit parameter is greater than a preset parameter threshold. Specifically, in a feasible implementation, the on instruction may be an instruction issued by a user manually, for example, the user issues the on instruction by a key or voice control; in another feasible implementation, the on instruction may also be an instruction automatically triggered according to the current frame signal or the state of the speaker. For example, in a feasible implementation, when it is determined that the speaker is in a high volume state, it is determined that the on instruction is triggered.

[0086] Further, in a feasible implementation manner, the feedback circuit parameters include feedback voltage and feedback current, and the step S20 includes:

[0087] Step S201, if it is detected that the feedback voltage is greater than a preset voltage threshold, calculating the circuit impedance of the speaker circuit based on the feedback voltage and the feedback current;

[0088] In this embodiment, whether the speaker has nonlinear distortion is detected based on the feedback voltage. Specifically, if it is detected that the feedback voltage is greater than the preset voltage threshold, it is determined that the circuit parameters of the speaker driven by the previous frame signal are too large, and the previous frame signal is a high-volume signal. At this time, the speaker has nonlinear distortion. At this time, the circuit impedance of the speaker circuit is calculated based on the feedback voltage and the feedback current.

[0089] Step S202: determining a signal parameter of the previous frame signal based on the circuit impedance.

[0090] The signal parameters of the previous frame signal are determined based on the circuit impedance. In a specific embodiment, the signal parameters may include a force-electric coupling coefficient BL, an elastic coefficient K, and a voice coil inductance coefficient L. When the signal parameters are linear parameters, the linear parameters are zero-order signal parameters, that is, zero-order force-electric coupling coefficient BL(0), zero-order elastic coefficient K(0), and zero-order voice coil inductance coefficient L(0); when the signal parameters are non-linear parameters, the non-linear parameters are non-zero-order signal parameters, for example, 1st-order signal parameters to 5th-order signal parameters.

[0091] In this embodiment, the feedback circuit parameters of the speaker circuit driven by the previous frame signal of the current frame signal are obtained; if it is detected that the feedback circuit parameters are greater than the preset parameter threshold, it is determined that the circuit parameters of the speaker driven by the previous frame signal are too large, and nonlinear distortion occurs in the speaker. The signal parameters of the previous frame signal are determined based on the feedback circuit parameters; nonlinear compensation processing is performed on the current frame signal through the signal parameters to obtain a target signal, so as to drive the speaker to make sound according to the target signal.

[0092] This embodiment realizes determining whether a speaker has nonlinear distortion through feedback circuit parameters, and automatically turns on the nonlinear compensation mode when it is determined that the feedback circuit parameter of the speaker driven by the previous frame signal is greater than the parameter threshold (that is, the speaker has nonlinear distortion), so that the device applying the nonlinear compensation algorithm does not need to perform nonlinear compensation all the time, thereby reducing the power consumption of the device applying the nonlinear compensation algorithm. In addition, this embodiment automatically turns on nonlinear compensation according to the detection result. Compared with turning on nonlinear compensation after receiving a user instruction, this embodiment can reduce user operations and improve the user experience.

[0093] Further, in one possible implementation, referring to Figure 3In this embodiment, whether the speaker has nonlinear distortion is detected based on the feedback voltage, specifically, whether the feedback voltage is greater than the voltage threshold. If the feedback voltage is greater than the voltage threshold, it is determined that the speaker is in a high volume state where nonlinear distortion occurs. At this time, the nonlinear compensation algorithm is turned on to process the signal, and after the nonlinear compensation processing, the processed signal is output to the speaker and played through the speaker. If the feedback voltage is not greater than the voltage threshold, the nonlinear compensation mode is not turned on, and the sound source signal is directly output to both ends of the speaker and played through the speaker.

[0094] Further, based on the above first embodiment, a second embodiment of the signal processing method of the present invention is proposed. In this embodiment, the signal parameter includes a nonlinear parameter corresponding to the previous frame signal, and the step S30 includes:

[0095] Step S301 : Processing the current frame signal by using the nonlinear parameters to obtain a target signal, so as to adjust the actual nonlinear displacement caused by the current frame signal.

[0096] In this embodiment, the signal parameters include nonlinear parameters corresponding to the previous frame signal, and the specific process of nonlinear compensation processing is: processing the current frame signal through the nonlinear parameters to obtain the target signal to adjust the actual nonlinear displacement caused by the current frame signal.

[0097] Specifically, in one feasible implementation, the target signal obtained by processing the nonlinear parameters can be: the nonlinear parameters are used as the filter coefficients of the nonlinear filter of the loudspeaker to obtain the target filter, and the linear signal is inversely filtered by the target filter to obtain the target signal, so as to eliminate the harmonic part generated when the loudspeaker reproduces the current frame signal. In this implementation, the nonlinear parameters are used as the filter coefficients of the nonlinear filter of the loudspeaker to obtain the target filter. Specifically, the nonlinear filter can be an extended Kalman filter (EKF, Extended Kalman Filter), an unscented Kalman filter (UKF, Unscented Kalman Filter), a particle filter (PF, Particle Filter) and other filters, which are not specifically limited here.

[0098] In another feasible implementation, obtaining the target signal by processing the nonlinear parameters may also be: establishing a nonlinear model of the speaker, using the nonlinear parameters as variable parameters of the nonlinear model, using the linear signal as an independent variable, and calculating the target signal. In this implementation, the nonlinear model may be:

[0099]

[0100] Among them, R is the resistance of the speaker, which can be calculated based on the feedback voltage and feedback current, L is the voice coil inductance in the nonlinear parameters, BL(x) is the electromechanical coupling coefficient in the nonlinear parameters, i is the current, and x is the linear signal.

[0101] In a specific implementation, the target signal may be obtained by processing through nonlinear parameters in other ways, which is not limited here.

[0102] Furthermore, in a feasible implementation manner, the signal parameters further include linear parameters corresponding to the previous frame signal, and the step S30 includes:

[0103] Step S302, processing the current frame signal by using the linear parameter to obtain a linear signal, so as to adjust the actual linear displacement caused by the current frame signal;

[0104] In this embodiment, the signal parameters include linear parameters corresponding to the fundamental wave part when the speaker reproduces the previous frame signal and nonlinear parameters corresponding to the harmonic wave part. Specifically, the voice coil displacement caused by the fundamental wave part when the speaker reproduces the current frame sound signal is called linear displacement, and the voice coil displacement caused by the harmonic part generated by the harmonic resonance when the speaker reproduces the current frame sound signal is called nonlinear displacement.

[0105] The current frame signal is processed by linear parameters, and the signal voltage of the current frame signal is adjusted, thereby adjusting the linear displacement caused by the current frame signal, so that the linear displacement actually caused by the current frame signal (hereinafter referred to as the actual linear displacement for distinction) is determined based on the linear parameters, and the actual linear displacement caused by the current frame signal matches the actual parameters of the loudspeaker, thereby improving the accuracy of the loudspeaker in reproducing the current frame signal. The current frame signal after linear parameter processing is hereinafter referred to as the linear signal for distinction.

[0106] In a feasible implementation, linear parameters may be used to modify module parameters of a linear displacement module in a loudspeaker nonlinear compensation algorithm, and a linear signal may be obtained by processing a current frame signal through the linear displacement module after the module parameters are modified.

[0107] Step S303: Processing the linear signal by using the nonlinear parameter to obtain a target signal, so as to adjust the actual nonlinear displacement.

[0108] In this embodiment, after the current frame signal is processed by linear parameters to obtain linear parameters, the linear signal is processed by nonlinear parameters to adjust the signal voltage of the linear signal, thereby reducing the nonlinear displacement of the voice coil caused by the harmonics generated when the speaker reproduces the current frame signal (hereinafter referred to as actual nonlinear displacement for distinction) to obtain the target signal.

[0109] Further, in a feasible implementation manner, the step S302 includes:

[0110] Step S3021, calculating the theoretical linear displacement caused by the current frame signal based on the linear parameters;

[0111] In this implementation, the theoretical linear displacement caused by the current frame signal is calculated based on the linear parameters, wherein the theoretical linear displacement is the displacement of the voice coil caused by the current frame signal under the condition that the speaker does not distort. The specific method of calculating the theoretical linear displacement based on the linear parameters is not described in detail here.

[0112] Step S3022: adjusting the voltage of the current frame signal according to the theoretical linear displacement to obtain a linear signal, wherein the actual linear displacement is consistent with the theoretical linear displacement.

[0113] The voltage of the current frame signal is adjusted according to the theoretical linear displacement to obtain a linear signal, so that the actual linear displacement generated when the speaker reproduces the current frame sound signal is consistent with the theoretical linear displacement, thereby improving the output sound quality of the speaker and extending the service life of the speaker.

[0114] Further, in a feasible implementation manner, the step S302 includes:

[0115] Step S3023, modifying the module parameters of the linear displacement module of the speaker according to the linear parameters to obtain a target module;

[0116] In this implementation, the linear displacement caused by the linear signal is obtained, that is, the theoretical linear displacement caused by the current frame signal. The preset basic parameters are obtained, where the preset basic parameters are circuit parameters pre-configured when the speaker leaves the factory, for example, the speaker resistance under the condition that the speaker is not distorted. The linear displacement caused by the speaker reproducing the current frame signal according to the basic parameters is determined (hereinafter referred to as estimated linear displacement for distinction).

[0117] Step S3024: Process the signal voltage of the current frame signal through the target module to obtain a linear signal.

[0118] If the detected linear displacement of the linear signal is greater than the estimated linear displacement, it is determined that the amplitude of the linear signal exceeds the maximum amplitude range allowed by the speaker. At this time, the speaker will still be distorted. At this time, the linear signal is limited, and the linear signal after the limiting processing is subjected to the step of nonlinear filtering of the linear signal through nonlinear parameters to obtain the target signal.

[0119] This implementation achieves limiting the fundamental wave portion when the speaker reproduces the current frame signal, so that the actual linear displacement of the current frame signal does not exceed the allowable range of the speaker, thereby reducing the speaker distortion.

[0120] Furthermore, in a feasible implementation, after the steps of processing the current frame signal by linear parameters to obtain a linear signal and processing the linear signal by nonlinear parameters to obtain a target signal, the target signal is limited according to the voltage of the target signal. This implementation achieves limiting of the fundamental wave part and the harmonic wave part when the speaker reproduces the current frame signal, limits the actual linear displacement and actual nonlinear displacement of the current frame signal, and further reduces the speaker distortion.

[0121] Furthermore, in a feasible implementation manner, before step S30, the following steps are further included:

[0122] Step S40, determining the current temperature of the speaker based on the feedback circuit parameter, and detecting whether the current temperature is within a preset temperature range;

[0123] In this embodiment, before performing nonlinear filtering, the gain of the current frame signal is also adjusted according to the temperature of the speaker. Specifically, the current temperature of the speaker is determined based on the feedback circuit parameters, and it is detected whether the current temperature is within a preset temperature range. The specific process of determining the current temperature is not described in detail here.

[0124] Step S50, if the current temperature is not within the preset temperature range, adjusting the gain of the current frame signal based on the current temperature, wherein the higher the current temperature is, the lower the gain of the current frame signal after the gain is adjusted;

[0125] If the current temperature is not within the preset temperature range, the gain of the current frame signal is adjusted based on the current temperature, wherein the higher the current temperature is, the lower the gain of the current frame signal after the gain adjustment is.

[0126] In this implementation, step S30 includes:

[0127] Step S304: performing nonlinear compensation processing on the current frame signal after gain adjustment using the signal parameters to obtain a target signal.

[0128] In this embodiment, after adjusting the gain of the current frame signal based on the current temperature of the speaker, the target signal is obtained by performing nonlinear compensation processing on the current frame signal after the gain is adjusted through the signal parameter. This embodiment realizes controlling the temperature of the speaker through the signal gain to avoid the speaker temperature being too high and affecting the service life of the speaker.

[0129] In this embodiment, the current frame signal is processed by nonlinear parameters to obtain a target signal to adjust the actual nonlinear displacement caused by the current frame signal. This implementation achieves the control of the nonlinear displacement caused by the speaker reproducing the current frame signal, thereby reducing the nonlinear distortion of the speaker.

[0130] Further, in one possible implementation, referring to Figure 4 , the specific processing process of nonlinear compensation can be:

[0131] The feedback voltage (V output by the AMP) and feedback current (I output by the AMP) of the previous frame signal after the signal is amplified by the power amplifier (AMP) are obtained, and a threshold judgment (V judgment) is performed on the feedback voltage to detect whether the feedback voltage is greater than a preset voltage threshold. If the feedback voltage is greater than the preset voltage threshold, the nonlinear compensation process is started. Specifically, the feedback current and feedback voltage are output to the impedance identification system (Nonlinear inpedance identification) to obtain signal parameters (Parameters), including linear parameters and nonlinear parameters.

[0132] The target nonlinear filter is obtained by modifying the nonlinear filter (also known as the Nonlinear inverse model) through nonlinear parameters, and the signal parameters are returned to the temperature tracking module (also known as Temperature tracking). The gain value of the gain device (also known as Gain) is reset based on the result of the temperature tracking module to perform temperature protection on the speaker.

[0133] The current frame signal (ie, audio source) is input into the equalizer (ie, EQ, Equalize) and the gainer after the gain value is reset for audio effect processing.

[0134] The linear displacement module adjusts the current frame signal after the sound effect processing to obtain a linear signal, and the voltage of the linear signal is controlled by the limiter, thereby controlling the actual linear displacement generated by the current frame signal. The linear signal after the limiting processing is processed by the target linear filter to obtain the target signal, and the target signal is amplified by the power amplifier and output to the speaker for playback.

[0135] In addition, the embodiment of the present invention also provides a signal processing device, referring to Figure 5 , the signal processing device comprises:

[0136] An acquisition module 10 is used to acquire feedback circuit parameters of a previous frame signal of a current frame signal to drive a speaker circuit;

[0137] A determination module 20, configured to determine the signal parameter of the previous frame signal based on the feedback circuit parameter if it is detected that the feedback circuit parameter is greater than a preset parameter threshold;

[0138] The output module 30 is used to perform nonlinear compensation processing on the current frame signal according to the signal parameters to obtain a target signal, so as to drive the speaker to produce sound according to the target signal.

[0139] Further, the feedback circuit parameters include feedback voltage and feedback current, and the determination module 20 is further used for:

[0140] If it is detected that the feedback voltage is greater than a preset voltage threshold, calculating the circuit impedance of the speaker circuit based on the feedback voltage and the feedback current;

[0141] A signal parameter of the previous frame signal is determined based on the circuit impedance.

[0142] Furthermore, the signal parameters include nonlinear parameters corresponding to the previous frame signal, and the output module 30 is further used for:

[0143] The target signal is obtained by processing the current frame signal through the nonlinear parameter to adjust the actual nonlinear displacement caused by the current frame signal.

[0144] Furthermore, the signal parameters also include linear parameters corresponding to the previous frame signal, and the output module 30 is further used for:

[0145] Processing the current frame signal by the linear parameter to obtain a linear signal, so as to adjust the actual linear displacement caused by the current frame signal;

[0146] The linear signal is processed by the nonlinear parameter to obtain a target signal, so as to adjust the actual nonlinear displacement.

[0147] Furthermore, the output module 30 is also used for:

[0148] Calculating a theoretical linear displacement caused by the current frame signal based on the linear parameter;

[0149] The voltage of the current frame signal is adjusted according to the theoretical linear displacement to obtain a linear signal, wherein the actual linear displacement is consistent with the theoretical linear displacement.

[0150] Furthermore, the output module 30 is also used for:

[0151] Modify the module parameters of the linear displacement module of the loudspeaker according to the linear parameters to obtain a target module;

[0152] The signal voltage of the current frame signal is processed by the target module to obtain a linear signal.

[0153] Furthermore, the signal processing device further includes a detection module, which is used to:

[0154] Determining a current temperature of the speaker based on the feedback circuit parameter, and detecting whether the current temperature is within a preset temperature range;

[0155] If the current temperature is not within the preset temperature range, adjusting the gain of the current frame signal based on the current temperature, wherein the higher the current temperature is, the lower the gain of the current frame signal after the gain is adjusted;

[0156] The output module 30 is further used for:

[0157] The target signal is obtained by performing nonlinear compensation processing on the current frame signal after the gain is adjusted using the signal parameters.

[0158] The various embodiments of the signal processing device of the present invention may refer to the various embodiments of the signal processing method of the present invention, which will not be described in detail here.

[0159] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a signal processing program is stored. When the signal processing program is executed by a processor, the steps of the signal processing method described below are implemented.

[0160] The various embodiments of the signal processing device and the computer-readable storage medium of the present invention may refer to the various embodiments of the signal processing method of the present invention, which will not be described in detail here.

[0161] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0162] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0163] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0164] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A signal processing method, characterized in that: The signal processing method comprises the following steps: Obtaining the feedback circuit parameters of the previous frame signal of the current frame signal driving the speaker circuit; If it is detected that the feedback circuit parameter is greater than a preset parameter threshold, determining the signal parameter of the previous frame signal based on the feedback circuit parameter; The current frame signal is subjected to nonlinear compensation processing by using the signal parameters to obtain a target signal, so as to drive the speaker to produce sound according to the target signal.

2. The signal processing method according to claim 1, characterized in that: The feedback circuit parameters include feedback voltage and feedback current. If it is detected that the feedback circuit parameters are greater than a preset parameter threshold, the step of determining the signal parameters of the previous frame signal based on the feedback circuit parameters includes: If it is detected that the feedback voltage is greater than a preset voltage threshold, calculating the circuit impedance of the speaker circuit based on the feedback voltage and the feedback current; A signal parameter of the previous frame signal is determined based on the circuit impedance.

3. The signal processing method according to claim 1, characterized in that: The signal parameters include nonlinear parameters corresponding to the previous frame signal, and the step of performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain a target signal includes: The target signal is obtained by processing the current frame signal through the nonlinear parameter to adjust the actual nonlinear displacement caused by the current frame signal.

4. The signal processing method according to claim 3, characterized in that: The signal parameters also include linear parameters corresponding to the previous frame signal, and the step of performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain the target signal further includes: Processing the current frame signal by the linear parameter to obtain a linear signal, so as to adjust the actual linear displacement caused by the current frame signal; The linear signal is processed by the nonlinear parameter to obtain a target signal, so as to adjust the actual nonlinear displacement.

5. The signal processing method according to claim 4, characterized in that: The step of processing the current frame signal by using the linear parameter to obtain a linear signal comprises: Calculating a theoretical linear displacement caused by the current frame signal based on the linear parameter; The voltage of the current frame signal is adjusted according to the theoretical linear displacement to obtain a linear signal, wherein the actual linear displacement is consistent with the theoretical linear displacement.

6. The signal processing method according to claim 4, characterized in that: The step of processing the current frame signal by using the linear parameter to obtain a linear signal comprises: Modify the module parameters of the linear displacement module of the loudspeaker according to the linear parameters to obtain a target module; The signal voltage of the current frame signal is processed by the target module to obtain a linear signal.

7. The signal processing method according to any one of claims 1 to 6, characterized in that: Before the step of performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain a target signal, the method further includes: Determining a current temperature of the speaker based on the feedback circuit parameter, and detecting whether the current temperature is within a preset temperature range; If the current temperature is not within the preset temperature range, adjusting the gain of the current frame signal based on the current temperature, wherein the higher the current temperature is, the lower the gain of the current frame signal after the gain is adjusted; The step of performing nonlinear compensation processing on the current frame signal by using the signal parameters to obtain a target signal comprises: The target signal is obtained by performing nonlinear compensation processing on the current frame signal after the gain is adjusted using the signal parameters.

8. A signal processing device, characterized in that: The signal processing device comprises: An acquisition module, used for acquiring the feedback circuit parameters of the previous frame signal of the current frame signal driving the speaker circuit; A determination module, configured to determine the signal parameter of the previous frame signal based on the feedback circuit parameter if it is detected that the feedback circuit parameter is greater than a preset parameter threshold; The output module is used to perform nonlinear compensation processing on the current frame signal through the signal parameters to obtain a target signal, so as to drive the speaker to produce sound according to the target signal.

9. A signal processing device, characterized in that: The signal processing device comprises: a memory, a processor, and a signal processing program stored in the memory and executable on the processor, wherein the signal processing program implements the steps of the signal processing method according to any one of claims 1 to 7 when executed by the processor.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a signal processing program, and when the signal processing program is executed by a processor, the steps of the signal processing method according to any one of claims 1 to 7 are implemented.