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

By detecting the speaker status and using feedback circuit parameters for nonlinear compensation, the speaker's high power consumption and distortion problems under large volume signals are solved, reducing device power consumption and improving sound quality and service life.

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

Patent Information

Application Number
CN202310680236.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 high power consumption of the equipment and large calculation amounts, making it difficult to effectively reduce the distortion of the speaker and maintain sound quality.

Method used

By detecting whether the speaker is in a high volume state, if the nonlinear compensation processing instruction is received, the feedback circuit parameters of the previous frame signal are obtained, and the current signal is nonlinear compensation process is performed based on these parameters, and the signal is adjusted to drive the speaker to sound, including linear and nonlinear parameters are processed to reduce actual displacement.

Benefits of technology

It is realized that when receiving the nonlinear compensation processing command, the speaker performs nonlinear compensation from time to time, thereby reducing the power consumption of the device and improving the sound quality and the service life of the speaker.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119110218A_ABST
    Figure CN119110218A_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: detecting whether a starting instruction for starting nonlinear compensation processing is received or not; if the starting instruction is received, feedback circuit parameters of a previous frame of signal of the current frame of signal are obtained, and the feedback circuit parameters comprise feedback current and feedback voltage; and determining a signal parameter of the previous frame of signal based on the feedback current and the feedback voltage, performing nonlinear compensation processing on the current frame of signal through the signal parameter to obtain a target signal, and driving a loudspeaker to produce sound according to the target signal. According to the non-linear compensation method and device, the non-linear compensation processing is carried out when the instruction of starting the non-linear compensation processing is received, so that the equipment applying the non-linear compensation algorithm does not need to carry out non-linear compensation at any time, and the power consumption of the equipment applying the non-linear 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] Detecting whether a start instruction for starting nonlinear compensation processing is received;

[0006] If the start instruction is received, the feedback circuit parameters of the previous frame signal of the current frame signal are obtained, wherein the feedback circuit parameters include: feedback current and feedback voltage;

[0007] The signal parameters of the previous frame signal are determined based on the feedback current and the feedback voltage, and the current frame signal is subjected to nonlinear compensation processing by 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 signal parameters include linear parameters and nonlinear parameters of 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:

[0009] 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;

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

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

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

[0013] 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.

[0014] Optionally, the step of processing the linear signal by using the nonlinear parameter to obtain a target signal includes:

[0015] Using the nonlinear parameters as filter coefficients of a nonlinear filter of the loudspeaker to obtain a target filter;

[0016] The linear signal is inversely filtered by the target filter to obtain a target signal.

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

[0018] Acquire a linear displacement caused by the linear signal, and determine an estimated linear displacement caused by the current frame signal based on preset basic parameters;

[0019] If it is detected that the linear displacement caused by the linear signal is greater than the estimated linear displacement, limiting the linear signal;

[0020] The step of performing nonlinear filtering on the linear signal by using the nonlinear parameter to obtain the target signal comprises:

[0021] The target signal is obtained by performing nonlinear filtering on the linear signal after the amplitude limiting process using the nonlinear parameter.

[0022] Optionally, before the step of detecting whether an instruction to start the nonlinear compensation process is received, the method further includes:

[0023] Detecting whether the speaker is in a high volume state, wherein the high volume state is a state in which the volume of a signal input to the speaker is greater than a preset volume range;

[0024] The step of detecting whether an instruction to start the nonlinear compensation process is received comprises:

[0025] If the speaker is in the high volume state, it is detected whether an on instruction for starting the nonlinear compensation process is received.

[0026] Optionally, the step of detecting whether the speaker is in a high volume state includes:

[0027] 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 is less than a preset gain;

[0028] If the previous frame signal does not meet the volume condition, it is determined that the speaker is in the high volume state.

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

[0030] A detection module, used to detect whether an instruction to start nonlinear compensation processing is received;

[0031] An acquisition module, configured to acquire feedback circuit parameters of a previous frame signal of a current frame signal if the start instruction is received, wherein the feedback circuit parameters include: feedback current and feedback voltage;

[0032] A processing module is used to determine the signal parameters of the previous frame signal based on the feedback current and the feedback voltage, and 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.

[0033] 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.

[0034] 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.

[0035] In the present invention, by detecting whether a start instruction for starting nonlinear compensation processing is received; if a start instruction is received, the feedback circuit parameters of the previous frame signal of the current frame signal are obtained, wherein the feedback circuit parameters include: feedback current and feedback voltage; based on the feedback current and feedback voltage, the signal parameters of the previous frame signal are determined, and 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 implements nonlinear compensation processing when a start instruction for starting nonlinear compensation processing is received, 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

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

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

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

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

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

[0041] 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

[0042] 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.

[0043] 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.

[0044] 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.

[0045] 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.

[0046] Those skilled in the art will understand that Figure 1 The 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.

[0047] 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:

[0048] Detecting whether a start instruction for starting nonlinear compensation processing is received;

[0049] If the start instruction is received, the feedback circuit parameters of the previous frame signal of the current frame signal are obtained, wherein the feedback circuit parameters include: feedback current and feedback voltage;

[0050] The signal parameters of the previous frame signal are determined based on the feedback current and the feedback voltage, and the current frame signal is subjected to nonlinear compensation processing by the signal parameters to obtain a target signal, so as to drive the speaker to produce sound according to the target signal.

[0051] Furthermore, the signal parameters include linear parameters and nonlinear parameters of 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:

[0052] 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;

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

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

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

[0056] 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.

[0057] Further, the operation of processing the linear signal by using the nonlinear parameter to obtain the target signal includes:

[0058] Using the nonlinear parameters as filter coefficients of a nonlinear filter of the loudspeaker to obtain a target filter;

[0059] The linear signal is inversely filtered by the target filter to obtain a target signal.

[0060] Further, after the operation of processing the current frame signal by using the linear parameter to obtain a linear signal, the processor 1001 may also be used to call a signal processing program stored in the memory 1005 and perform the following operations:

[0061] Acquire a linear displacement caused by the linear signal, and determine an estimated linear displacement caused by the current frame signal based on preset basic parameters;

[0062] If it is detected that the linear displacement caused by the linear signal is greater than the estimated linear displacement, limiting the linear signal;

[0063] The operation of performing nonlinear filtering on the linear signal by using the nonlinear parameter to obtain the target signal includes:

[0064] The target signal is obtained by performing nonlinear filtering on the linear signal after the amplitude limiting process using the nonlinear parameter.

[0065] Furthermore, before the operation of detecting whether an instruction to start the nonlinear compensation process is received, the processor 1001 may also be used to call a signal processing program stored in the memory 1005 and perform the following operations:

[0066] Detecting whether the speaker is in a high volume state, wherein the high volume state is a state in which the volume of a signal input to the speaker is greater than a preset volume range;

[0067] The operation of detecting whether an instruction to start the nonlinear compensation process is received includes:

[0068] If the speaker is in the high volume state, it is detected whether an on instruction for starting the nonlinear compensation process is received.

[0069] Further, the operation of detecting whether the speaker is in a high volume state includes:

[0070] 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 is less than a preset gain;

[0071] If the previous frame signal does not meet the volume condition, it is determined that the speaker is in the high volume state.

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

[0073] 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.

[0074] 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:

[0075] Step S10, detecting whether a start instruction for starting nonlinear compensation processing is received;

[0076] 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.

[0077] Before the sound source signal is input to the speaker to be reproduced through the speaker audio, the sound source signal may be processed. In the process of processing the sound source signal, the sound source signal is processed in frames. Specifically, in this embodiment, in the process of processing the sound source signal, it is detected whether an instruction for starting the nonlinear compensation process is received. The instruction is referred to as the start instruction for distinction. The start instruction is detected to determine whether the nonlinear compensation process is performed on a frame of the sound source signal currently being processed (hereinafter referred to as the current frame signal for distinction).

[0078] Specifically, in one feasible embodiment, the start instruction may be an instruction issued by a manual operation of the user, for example, the user issues the start instruction by pressing a button or voice control; in another feasible embodiment, the start instruction may also be an instruction automatically triggered according to the current frame signal or the state of the speaker. For example, in one feasible embodiment, when it is determined that the speaker is in a high volume state, the start instruction is triggered, wherein the high volume state is a state where the signal volume of the input speaker exceeds a preset volume range.

[0079] Step S20, if the start instruction is received, obtaining the feedback circuit parameters of the previous frame signal of the current frame signal, wherein the feedback circuit parameters include: feedback current and feedback voltage;

[0080] In this embodiment, if a start instruction for starting the nonlinear compensation process is detected, the feedback circuit parameters of the previous frame signal of the current frame signal are obtained. Specifically, the feedback circuit parameters may include the signal current (hereinafter referred to as feedback voltage for distinction) and the signal voltage (hereinafter referred to as feedback current for distinction) when the previous frame signal drives the speaker to sound. In one feasible implementation, the feedback voltage and feedback current may be directly read by a smartPA (intelligent power amplifier) ​​chip that performs nonlinear compensation processing; in another feasible implementation, the feedback voltage and feedback current may also be obtained by a circuit device such as a multimeter.

[0081] Step S30, determining the signal parameters of the previous frame signal based on the feedback current and the feedback voltage, and performing 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.

[0082] In this embodiment, after determining the feedback current and the feedback voltage, the impedance of the speaker is calculated based on the feedback voltage and the feedback current, and the parameters of the previous frame signal (hereinafter referred to as signal parameters for distinction) are obtained based on the impedance of the speaker. The current frame signal is subjected to nonlinear compensation processing through the signal parameters to obtain the target signal, so as to drive the speaker to produce sound according to the target signal.

[0083] Specifically, in one feasible implementation, the signal parameters may include the parameters of the speaker system corresponding to the harmonic part generated when the speaker reproduces the previous frame signal (i.e., nonlinear parameters). In this implementation, the specific process of the nonlinear compensation processing may be to process the linear signal through the nonlinear parameters to obtain the target signal. In another feasible implementation, the signal parameters may include the nonlinear parameters and the system parameters of the speaker system corresponding to the fundamental wave part (i.e., the previous frame signal) when the speaker reproduces the previous frame signal. In this implementation, the specific process of the nonlinear compensation processing may be to process the current frame signal through the linear parameters to obtain the linear signal, and to process the linear signal through the nonlinear parameters to obtain the target signal. The specific settings can be made according to actual needs and are not limited here.

[0084] Specifically, the signal parameters may include a mechanoelectric coupling coefficient BL, an elastic coefficient K, and a voice coil inductance coefficient L, wherein the linear parameters are zero-order signal parameters, i.e., zero-order mechanoelectric coupling coefficient BL(0), zero-order elastic coefficient K(0), and zero-order voice coil inductance coefficient L(0); the nonlinear parameters are non-zero-order signal parameters, such as 1st-order signal parameters to 5th-order signal parameters. 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.

[0085] 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.

[0086] 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.

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

[0088] Step S40, detecting whether the speaker is in a high volume state, wherein the high volume state is a state in which the volume of a signal input to the speaker is greater than a preset volume range;

[0089] In this implementation, before detecting the start instruction, it is detected whether the speaker is in a high volume state, wherein the high volume state is a state in which the signal volume input to the speaker is greater than a preset volume range.

[0090] Specifically, in one feasible implementation, whether the speaker is in a high volume state may be determined based on the signal volume and gain that the speaker has received; in another feasible implementation, whether the speaker is in a high volume state may also be determined based on the signal voltage that the speaker has received. The specific settings may be made according to actual needs and are not limited here.

[0091] In this embodiment, step S10 includes:

[0092] Step S101: if the speaker is in the high volume state, detecting whether an instruction to start nonlinear compensation processing is received.

[0093] If the speaker is in a high volume state, it is determined that nonlinear distortion occurs in the speaker, and at this time, it is detected whether an instruction to start nonlinear compensation processing is received.

[0094] This embodiment detects whether the speaker is in a high volume state before detecting the start instruction to determine whether the speaker has nonlinear distortion, and detects the start instruction under the condition that it is determined that the speaker has nonlinear distortion. This embodiment makes it possible for the device that applies the nonlinear compensation algorithm to not need to perform nonlinear compensation all the time, thereby reducing the power consumption of the device that applies the nonlinear compensation algorithm.

[0095] Further, in a feasible implementation manner, the step S40 includes:

[0096] Step S401, 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 is less than a preset gain;

[0097] In this embodiment, the signal condition when the speaker is not in a high volume state (hereinafter referred to as the volume condition for distinction) is preset, wherein the volume condition is that the signal volume is less than a preset volume and the signal gain is less than a preset gain. The preset volume and preset gain can be set according to actual needs and are not limited here.

[0098] Specifically, it is detected whether the previous frame signal meets a preset volume condition to determine whether the speaker is in a high volume state.

[0099] Step S402: If the previous frame signal does not meet the volume condition, it is determined that the speaker is in the high volume state.

[0100] If the previous frame signal does not meet the volume condition, it is determined that the signal volume of the previous frame signal is too loud or the gain is too high, and at this time it is determined that the speaker is in a high volume state.

[0101] Furthermore, in another feasible implementation, it is also possible to detect whether the feedback voltage of the previous frame signal is greater than a preset voltage threshold to determine whether the speaker is in a high volume state. If the feedback voltage is greater than the voltage threshold, it is determined that the speaker is in a high volume state. At this time, nonlinear compensation processing needs to be performed on the current frame signal.

[0102] Furthermore, in a feasible implementation, before the step of detecting whether the previous frame signal meets the preset volume condition, the method further includes: obtaining the ambient sound signal of the external environment in which the speaker is located, and determining the volume level of the ambient sound signal; adjusting the signal volume of the previous frame signal based on the volume level. This implementation can reduce user operations and improve user experience by adaptively adjusting the signal volume. Specifically, in a feasible implementation, the process of adjusting the signal volume of the previous frame signal based on the volume level can be: using the volume level as the signal volume of the previous frame signal; in another feasible implementation, when the volume level is greater than the signal volume of the previous frame signal, adjusting the signal volume of the previous frame signal, wherein the signal volume of the previous frame signal is greater than the volume level after adjustment.

[0103] In this embodiment, by detecting whether a start instruction for starting the nonlinear compensation process is received; if the speaker is in a high volume state, detecting whether a start instruction for starting the nonlinear compensation process is received; determining the signal parameters of the previous frame signal based on the feedback current and the feedback voltage, and performing nonlinear compensation processing on the current frame signal through the signal parameters to obtain a target signal; and outputting the target signal to the speaker to drive the speaker to sound. This embodiment implements nonlinear compensation processing when receiving a command to start the nonlinear compensation process, 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 can make the nonlinear compensation process more in line with the actual needs of users and improve the user's experience of using nonlinear compensation devices.

[0104] In one possible implementation, referring to Figure 3 In this embodiment, the soc (System on-a-Chip) detects whether the current volume level is greater than or equal to 10 (that is, the preset volume), or the gain is greater than or equal to -3 (that is, the preset gain), that is, the soc detects whether the previous frame signal meets the preset volume condition.

[0105] If the current volume level is greater than or equal to 10 or the gain is greater than or equal to -3, it is determined that the speaker is in a high volume state, and an intelligent voice reminder is given to remind the user that the volume is high at this time and ask whether to turn on the non-linear compensation mode; if the current volume level is less than 10 and the gain is less than -3, the non-linear 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.

[0106] Detect whether the user chooses to turn on the nonlinear compensation mode. If the user chooses yes, the nonlinear compensation module algorithm is turned on, and the processed signal is output to the speaker after nonlinear compensation processing and played through the speaker; if the user chooses no, the nonlinear compensation mode is not turned on at this time, and the sound source signal is directly output to both ends of the speaker and played through the speaker.

[0107] Further, based on the above first embodiment, the signal parameters include linear parameters and nonlinear parameters of the previous frame signal, and a second embodiment of the signal processing method of the present invention is proposed. In this embodiment, the step S30 includes:

[0108] Step S301, 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;

[0109] 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.

[0110] 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 adjusted based on the linear parameters, so that 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.

[0111] 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.

[0112] Step S302: Processing the linear signal by using the nonlinear parameter to obtain a target signal, so as to adjust the actual nonlinear displacement caused by the current frame signal.

[0113] 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 harmonics generated when the speaker reproduces the current frame signal (hereinafter referred to as actual nonlinear displacement for distinction), so that the actual nonlinear displacement caused by the current frame signal is adjusted based on the nonlinear parameters. The signal obtained by nonlinear parameter processing is referred to as the target signal below.

[0114] In a feasible implementation, obtaining the target signal by processing the nonlinear parameters may be: using the nonlinear parameters as filter coefficients of a nonlinear filter of a loudspeaker to obtain a target filter, and inverse filtering the linear signal by the target filter to obtain the target signal.

[0115] 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:

[0116]

[0117] 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.

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

[0119] Further, in a feasible implementation manner, the step S301 includes:

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

[0121] 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.

[0122] Step S3012: adjusting the amplitude of the fundamental wave part according to the linear displacement to obtain a linear signal.

[0123] 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.

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

[0125] Step S3021, using the nonlinear parameters as filter coefficients of a nonlinear filter of the loudspeaker to obtain a target filter;

[0126] In this implementation, the nonlinear parameters are used as filter coefficients of the nonlinear filter of the speaker to obtain the target filter. Specifically, the nonlinear filter can be an extended Kalman filter (EKF, Extended Kalman Filter), a lossless Kalman filter (UKF, Unscented Kalman Filter), a particle filter (PF, Particle Filter) and other filters, which are not specifically limited here.

[0127] Step S3022: Inverse filtering the linear signal through the target filter to obtain a target signal.

[0128] The linear signal is inversely filtered through the target filter, that is, the frequency response of the linear signal is modified through the target filter to obtain the target signal, so as to eliminate the harmonic part generated when the speaker reproduces the current frame signal.

[0129] Furthermore, in a feasible implementation manner, after step S301, the following further comprises:

[0130] Step S303, obtaining a linear displacement caused by the linear signal, and determining an estimated linear displacement caused by the current frame signal based on preset basic parameters;

[0131] 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).

[0132] Step S304, if it is detected that the linear displacement caused by the linear signal is greater than the estimated linear displacement, the linear signal is limited;

[0133] 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, and the linear signal is limited.

[0134] In this implementation, the step S302 includes:

[0135] Step S3023, performing nonlinear filtering on the linear signal after the amplitude limiting processing by using the nonlinear parameter to obtain a target signal;

[0136] In this implementation manner, after the linear signal is subjected to the amplitude limiting process, the linear signal subjected to the amplitude limiting process is subjected to nonlinear filtering by using the nonlinear parameter to obtain a target signal.

[0137] 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.

[0138] 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.

[0139] In this embodiment, the current frame signal is processed by linear parameters to obtain a linear signal, and the linear signal is processed by nonlinear parameters to obtain a target signal, wherein the actual linear displacement caused by the current frame signal is determined based on the linear parameters, and the actual nonlinear displacement caused by the current frame signal is determined based on the nonlinear parameters. In this embodiment, while controlling the actual nonlinear displacement of the current frame signal, the current frame signal is processed by linear parameters, so that the actual linear displacement caused by the current frame signal matches the actual parameters of the speaker, thereby improving the accuracy of the speaker in reproducing the current frame signal.

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

[0141] The feedback voltage (V output by the AMP) and feedback current (I output by the AMP) of the previous frame signal after signal amplification by the power amplifier (AMP) are obtained, and 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.

[0142] The linear displacement model is modified by linear parameters, and the nonlinear filter is modified by nonlinear parameters (nonlinear inverse model) to obtain the target nonlinear filter. The signal parameters are returned to the temperature tracking module (temperature tracking), and the gain of the gainer (gain) is reset based on the result of the temperature tracking module to protect the speaker from temperature.

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

[0144] The modified linear displacement module is used to adjust the current frame signal after the sound effect processing to obtain a linear signal, and the linear displacement generated by the linear signal, that is, the theoretical linear displacement (that is, x d ) is compared with the estimated linear displacement, and the voltage of the linear signal is controlled by a limiter, thereby controlling the actual linear displacement generated by the current frame signal.

[0145] 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 then output to the speaker for playback.

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

[0147] A detection module 10, used to detect whether an instruction to start nonlinear compensation processing is received;

[0148] The acquisition module 20 is used to acquire the feedback circuit parameters of the previous frame signal of the current frame signal if the start instruction is received, wherein the feedback circuit parameters include: feedback current and feedback voltage;

[0149] The processing module 30 is used to determine the signal parameters of the previous frame signal based on the feedback current and the feedback voltage, and 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.

[0150] Furthermore, the signal parameters include linear parameters and nonlinear parameters of the previous frame signal, and the processing module 30 is further used for:

[0151] 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;

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

[0153] Furthermore, the processing module 30 is also used for:

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

[0155] 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.

[0156] Furthermore, the processing module 30 is also used for:

[0157] Using the nonlinear parameters as filter coefficients of a nonlinear filter of the loudspeaker to obtain a target filter;

[0158] The linear signal is inversely filtered by the target filter to obtain a target signal.

[0159] Furthermore, the processing module 30 is also used for:

[0160] Acquire a linear displacement caused by the linear signal, and determine an estimated linear displacement caused by the current frame signal based on preset basic parameters;

[0161] If it is detected that the linear displacement caused by the linear signal is greater than the estimated linear displacement, limiting the linear signal;

[0162] The processing module 30 is also used for:

[0163] The target signal is obtained by performing nonlinear filtering on the linear signal after the amplitude limiting process using the nonlinear parameter.

[0164] Furthermore, the detection module 10 is also used for:

[0165] Detecting whether the speaker is in a high volume state, wherein the high volume state is a state in which the volume of a signal input to the speaker is greater than a preset volume range;

[0166] The detection module 10 is also used for:

[0167] If the speaker is in the high volume state, it is detected whether an on instruction for starting the nonlinear compensation process is received.

[0168] Furthermore, the detection module 10 is also used for:

[0169] 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 is less than a preset gain;

[0170] If the previous frame signal does not meet the volume condition, it is determined that the speaker is in the high volume state.

[0171] 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.

[0172] 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.

[0173] 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.

[0174] 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.

[0175] 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.

[0176] 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.

[0177] 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: Detecting whether a start instruction for starting nonlinear compensation processing is received; If the start instruction is received, the feedback circuit parameters of the previous frame signal of the current frame signal are obtained, wherein the feedback circuit parameters include: feedback current and feedback voltage; The signal parameters of the previous frame signal are determined based on the feedback current and the feedback voltage, and the current frame signal is subjected to nonlinear compensation processing by 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 signal parameters include linear parameters and nonlinear parameters of 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: 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 caused by the current frame signal.

3. The signal processing method according to claim 2, 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.

4. The signal processing method according to claim 2, characterized in that: The step of processing the linear signal by using the nonlinear parameter to obtain the target signal comprises: Using the nonlinear parameters as filter coefficients of a nonlinear filter of the loudspeaker to obtain a target filter; The linear signal is inversely filtered by the target filter to obtain a target signal.

5. The signal processing method according to claim 2, characterized in that: After the step of processing the current frame signal by using the linear parameter to obtain a linear signal, the method further includes: Acquire a linear displacement caused by the linear signal, and determine an estimated linear displacement caused by the current frame signal based on preset basic parameters; If it is detected that the linear displacement caused by the linear signal is greater than the estimated linear displacement, limiting the linear signal; The step of performing nonlinear filtering on the linear signal by using the nonlinear parameter to obtain the target signal comprises: The target signal is obtained by performing nonlinear filtering on the linear signal after the amplitude limiting process using the nonlinear parameter.

6. The signal processing method according to any one of claims 1 to 5, characterized in that: Before the step of detecting whether an instruction to start the nonlinear compensation process is received, the method further includes: Detecting whether the speaker is in a high volume state, wherein the high volume state is a state in which the volume of a signal input to the speaker is greater than a preset volume range; The step of detecting whether an instruction to start the nonlinear compensation process is received comprises: If the speaker is in the high volume state, it is detected whether an on instruction for starting the nonlinear compensation process is received.

7. The signal processing method according to claim 6, characterized in that: The step of detecting whether the speaker is in a high volume state comprises: 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 is less than a preset gain; If the previous frame signal does not meet the volume condition, it is determined that the speaker is in the high volume state.

8. A signal processing device, characterized in that: The signal processing device comprises: A detection module, used to detect whether an opening instruction for opening the nonlinear compensation process is received; An acquisition module, configured to acquire feedback circuit parameters of a previous frame signal of a current frame signal if the start instruction is received, wherein the feedback circuit parameters include: feedback current and feedback voltage; A processing module is used to determine the signal parameters of the previous frame signal based on the feedback current and the feedback voltage, and 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.