An audio power amplifier distortion correction method, device, equipment and medium
By combining FIR filters and LUT lookup tables to correct distortion in audio power amplifiers, and by integrating feedback data and error correction mechanisms, the problem of correction accuracy under dynamically changing operating conditions of audio power amplifiers is solved, achieving stability and adaptability for high-quality audio playback.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- MALANSHAN AUDIO & VIDEO LABORATORY
- Filing Date
- 2026-03-17
- Publication Date
- 2026-05-29
AI Technical Summary
Existing audio amplifiers are difficult to adapt to dynamic changing operating conditions, resulting in attenuation or failure of calibration accuracy, which affects the high-quality playback of audio signals.
An FIR filter is used to correct linear distortion of the audio signal, and a LUT lookup table is used to correct nonlinear distortion. The modeling coefficients of the filter and lookup table are dynamically adjusted through feedback data and error correction mechanism to achieve adaptive correction.
It maintains low distortion output under different operating conditions, improves the correction accuracy and stability of audio signals, and ensures high-quality audio playback.
Smart Images

Figure CN122120668A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of audio signal processing, and in particular to an audio power amplifier distortion correction method, apparatus, device, and medium. Background Technology
[0002] To achieve high-quality, distortion-free music playback, the power amplifier plays a crucial role in audio systems. High-performance power amplifiers are often more expensive, and their linear operation often results in lower efficiency. Existing technologies are mostly designed for fixed operating conditions, making it difficult to adapt to dynamic changes in real-world use, leading to a decrease or failure of calibration accuracy.
[0003] In conclusion, how to correct the distortion of audio power amplifiers is a problem that urgently needs to be solved. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide an audio power amplifier distortion correction method, apparatus, device, and medium capable of correcting audio power amplifier distortion. The specific solution is as follows: In a first aspect, this application provides an audio power amplifier distortion correction method, including: The audio signal to be corrected is determined, the linear distortion of the audio signal to be corrected is corrected using the current FIR filter, and the nonlinear distortion of the audio signal to be corrected is corrected using the current LUT lookup table, so as to generate the current distortion-corrected audio, so as to amplify the current distortion-corrected audio through a preset speaker; The analog signal corresponding to the current distortion-corrected audio after passing through the power amplifier is obtained, and the analog signal is converted into feedback data. Based on the audio signal to be corrected, the feedback data is time-delayed and amplitude-aligned to obtain aligned data. Based on the aligned data and the audio signal to be corrected, the corresponding initial error data is determined. Based on the initial error data, the first error data corresponding to the current FIR filter and the second error data corresponding to the current LUT lookup table are determined. The modeling coefficients of the current FIR filter and the current LUT lookup table are corrected using the first error data and the second error data, respectively, to obtain a new current FIR filter and a new current LUT lookup table. This allows the process to jump to the step of correcting the linear distortion of the audio signal to be corrected using the current FIR filter and correcting the nonlinear distortion of the audio signal to be corrected using the current LUT lookup table when a new audio signal to be corrected is acquired, in order to generate the current distortion-corrected audio.
[0005] Optionally, before correcting the linear distortion of the audio signal to be corrected using the current FIR filter, the method further includes: Obtain the target calibration requirements from the user's end; The cascade structure of the current FIR filter is determined according to the target correction requirements; wherein the cascade structure includes a parallel structure and / or a series structure.
[0006] Optionally, the step of correcting the linear distortion of the audio signal to be corrected using the current FIR filter and correcting the nonlinear distortion of the audio signal to be corrected using the current LUT lookup table to generate the current distortion-corrected audio includes: The audio signal to be corrected is subjected to frequency response equalization and phase compensation using the current FIR filter to eliminate linear distortion and generate an intermediate signal. The intermediate signal is input into the current LUT lookup table, and the intermediate signal is indexed in the current LUT lookup table according to its amplitude. The audio after nonlinear distortion compensation is then output.
[0007] Optionally, determining the first error data corresponding to the current FIR filter and the second error data corresponding to the current LUT lookup table based on the initial error data includes: Based on the initial error data, determine the second error data corresponding to the current LUT lookup table; The second error data is backpropagated to the output of the current FIR filter, and the first error data is obtained based on the second error data and the intermediate signal.
[0008] Optionally, the step of using the first error data and the second error data to correct the modeling coefficients of the current FIR filter and the current LUT lookup table respectively, to obtain a new current FIR filter and a new current LUT lookup table, includes: Determine the first current modeling coefficients of the current FIR filter and the second current modeling coefficients of the current LUT lookup table; The first current modeling coefficients are corrected based on the audio signal to be corrected and the first error data, and the second current modeling coefficients are corrected based on the intermediate signal and the second error data to obtain a new current FIR filter and a new current LUT lookup table.
[0009] Optionally, after determining the first error data corresponding to the current FIR filter and the second error data corresponding to the current LUT lookup table based on the initial error data, the method further includes: Determine whether the first error data is greater than a preset threshold; If so, then continue with the step of using the first error data and the second error data to correct the modeling coefficients of the current FIR filter and the current LUT lookup table respectively; If not, then the process ends directly.
[0010] Optionally, the step of acquiring the analog signal of the current distortion-corrected audio after power amplification, converting the analog signal into feedback data, and aligning the feedback data by time delay and amplitude based on the audio signal to be corrected to obtain aligned data includes: The analog signal output by the power amplifier is obtained through the preset coupling circuit; The analog signal is converted into feedback data via an analog-to-digital converter; The feedback data is time-delayed based on the audio signal to be corrected to generate compensated data. Determine the amplitude difference and phase difference between the audio signal to be corrected and the compensated data, and perform amplitude and phase compensation on the compensated data based on the amplitude difference and phase difference to obtain aligned data.
[0011] Secondly, this application provides an audio amplifier distortion correction device, comprising: The distortion correction module is used to determine the audio signal to be corrected, correct the linear distortion of the audio signal to be corrected using the current FIR filter, and correct the nonlinear distortion of the audio signal to be corrected using the current LUT lookup table, so as to generate the current distortion-corrected audio, so as to amplify the current distortion-corrected audio through a preset speaker. The data acquisition module is used to acquire the analog signal of the current distortion-corrected audio after passing through the power amplifier, convert the analog signal into feedback data, and perform time delay and amplitude alignment on the feedback data based on the audio signal to be corrected to obtain aligned data. The data determination module is used to determine the corresponding initial error data based on the aligned data and the audio signal to be corrected, and to determine the first error data corresponding to the current FIR filter and the second error data corresponding to the current LUT lookup table based on the initial error data. The FIR filter acquisition module is used to correct the modeling coefficients of the current FIR filter and the current LUT lookup table using the first error data and the second error data respectively, so as to obtain a new current FIR filter and a new current LUT lookup table. When a new audio signal to be corrected is acquired, the module jumps to the step of correcting the linear distortion of the audio signal to be corrected using the current FIR filter and correcting the nonlinear distortion of the audio signal to be corrected using the current LUT lookup table to generate the current distortion-corrected audio.
[0012] Thirdly, this application provides an electronic device, comprising: Memory, used to store computer programs; A processor is used to execute the computer program to implement the audio amplifier distortion correction method as described above.
[0013] Fourthly, this application provides a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned audio amplifier distortion correction method.
[0014] In summary, this application first determines the audio signal to be corrected, uses the current FIR filter to correct the linear distortion of the audio signal to be corrected, and uses the current LUT lookup table to correct the nonlinear distortion of the audio signal to be corrected, so as to generate the current distortion-corrected audio, so as to amplify the current distortion-corrected audio through a preset speaker; obtains the analog signal corresponding to the current distortion-corrected audio after amplification, and converts the analog signal into feedback data; performs time delay and amplitude alignment on the feedback data based on the audio signal to be corrected to obtain aligned data; and determines the corresponding initial error data according to the aligned data and the audio signal to be corrected. Based on the initial error data, the first error data corresponding to the current FIR filter and the second error data corresponding to the current LUT lookup table are determined. The modeling coefficients of the current FIR filter and the current LUT lookup table are corrected using the first and second error data respectively to obtain a new current FIR filter and a new current LUT lookup table. This allows the process to jump to the step of correcting the linear distortion of the audio signal using the current FIR filter and the nonlinear distortion of the audio signal using the current LUT lookup table when a new audio signal to be corrected is acquired, thereby generating the current distortion-corrected audio. As can be seen from the above, this application first processes the audio signal to be corrected, using the current FIR filter to eliminate linear distortion and then using the current LUT lookup table to eliminate nonlinear distortion, generating a pre-distorted audio signal and outputting it through a power amplifier. Subsequently, the analog signal after power amplification is acquired and converted into feedback data, which is then aligned with the original audio signal to be corrected in terms of time delay and amplitude. The initial error is calculated based on the aligned data. The error is backpropagated to determine the error data corresponding to the first and second FIR filters, respectively, and the modeling coefficients of the two FIR filters are independently corrected and updated accordingly. The updated FIR filters will be used for the next round of audio signal correction processing, thereby achieving adaptive adjustment based on changes in power amplifier characteristics and continuously maintaining low-distortion output. In this way, linear distortion is first corrected through FIR (Finite Impulse Response), and nonlinear distortion is corrected through LUT (Look-Up Table), avoiding mutual interference between the two types of correction and fully leveraging the advantages of each technology. In addition, by monitoring key operating parameters such as power amplifier load impedance and core component temperature in real time, matching correction parameters are dynamically switched to ensure the stability of correction accuracy under different operating conditions. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0016] Figure 1 This is a flowchart of an audio power amplifier distortion correction method disclosed in this application; Figure 2 This is a flowchart of a specific audio power amplifier distortion correction method disclosed in this application; Figure 3 This is a schematic diagram of the structure of an audio power amplifier distortion correction device disclosed in this application; Figure 4 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation
[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] Currently, power amplifiers play a crucial role in achieving high-quality, distortion-free music playback. High-performance power amplifiers are often expensive, and their linear operation results in lower efficiency. Existing technologies are mostly designed for fixed operating conditions, making it difficult to adapt to dynamic changes in actual use, leading to attenuation or failure of calibration accuracy. To address these technical problems, this application discloses an audio power amplifier distortion correction method, apparatus, device, and medium capable of correcting distortion in audio power amplifiers.
[0019] See Figure 1 As shown, this embodiment of the invention discloses an audio power amplifier distortion correction method, including: Step S11: Determine the audio signal to be corrected, use the current FIR filter to correct the linear distortion of the audio signal to be corrected, and use the current LUT lookup table to correct the nonlinear distortion of the audio signal to be corrected, so as to generate the current distortion-corrected audio, so as to amplify the current distortion-corrected audio through a preset speaker.
[0020] In this embodiment, the audio signal x to be calibrated is first determined. Then, the audio signal x is input to the forward module, which consists of cascaded FIR filters and LUTs. The FIR filters absorb linear distortions such as amplitude and phase unevenness in the analog link, while the LUTs absorb nonlinear distortions. The two cascaded modules work together to model the error signal, achieving pre-distortion of the forward signal. It is important to note that before using the current FIR filter for municipal calibration, the target calibration requirements at the user end are first obtained. The cascaded structure of the current FIR filter is determined based on these target calibration requirements. The cascaded structure includes parallel and / or series structures. Specifically, the entire FIR calibration module can consist of one or more fixed-length FIR filters connected in parallel. The cascaded structure of the FIR calibration module is determined based on the target calibration requirements, i.e., it consists of several FIR filters connected in parallel or in series.
[0021] Next, the current FIR filter is used to perform frequency response equalization and phase compensation operations on the audio signal to be corrected to eliminate linear distortion and generate an intermediate signal. The intermediate signal is then input into the current LUT lookup table, and indexed according to its amplitude. The output is the audio signal after nonlinear distortion compensation. Specifically, when correcting audio signal distortion, the current FIR filter is first used to process the audio signal to be corrected. The core role of the FIR filter at this stage is to accurately compensate for linear distortions such as uneven amplitude-frequency response and phase shift in the analog link. Through internally pre-configured or real-time updated filter coefficients, the FIR filter performs complex frequency response equalization and phase correction operations on the audio signal to be corrected, thereby eliminating linear distortions introduced by transmission cables, coupling circuits, or power amplifier input stages, and generating a linearly compensated intermediate signal. Subsequently, this intermediate signal is sent to the current LUT lookup table for nonlinear correction processing. The LUT lookup table is essentially a contiguous storage space addressed by signal amplitude, which pre-stores correction coefficients for compensating the nonlinear characteristics of the power amplifier tubes. When an intermediate signal is input, its instantaneous amplitude is detected in real time, and the corresponding nonlinear compensation value is retrieved from a lookup table using this value as an address. This compensation value undergoes specific mathematical operations with the input signal to compensate for harmonic distortion or intermodulation distortion caused by device nonlinearity during amplification in the power amplifier stage. The output signal after LUT lookup table correction is the current distortion-corrected audio signal, which simultaneously eliminates both linear and nonlinear distortion. y Afterward, the distortion-corrected audio will be sent to the power amplifier stage for power amplification to drive the preset speaker to produce sound.
[0022] Step S12: Obtain the analog signal of the current distortion-corrected audio after power amplifier, convert the analog signal into feedback data, and perform time delay and amplitude alignment on the feedback data based on the audio signal to be corrected to obtain aligned data.
[0023] In this embodiment, the generated audio after current distortion correction y While the signal is amplified and played through a preset speaker, a coupling circuit simultaneously acquires the amplified analog signal from the amplifier output. Because the signal voltage at the amplifier output is high and contains a large drive current, it cannot be directly sent to the analog-to-digital converter (ADC) for processing. Therefore, the coupling circuit first attenuates, isolates, or differentially converts the signal to bring it within the acceptable level range for the ADC. The conditioned analog signal is then sent to the ADC, where it is converted into a digital representation through sampling, quantization, and encoding—this is the feedback data. It's important to understand that the feedback data is a digital signal acquired at the amplifier output, containing all the characteristics of the amplified audio signal after distortion correction. This includes the audio content to be preserved, various linear and nonlinear distortions introduced by the amplifier hardware, and potential environmental noise. To accurately extract the distortion information introduced by the amplifier from the feedback data, it needs to be aligned with the original audio signal to be corrected. Since the signal inevitably experiences a certain time delay after entering the FIR filter, it undergoes a series of processes including LUT lookup table processing, power amplifier amplification, coupling circuit acquisition, and analog-to-digital conversion. Furthermore, the amplitude-frequency characteristics of the analog link can also cause shifts in the signal's amplitude A and phase θ. Therefore, a time delay estimation and amplitude-phase correction algorithm is employed, using the original audio signal to be corrected as a reference, to dynamically adjust the feedback data. This ultimately yields aligned data that is time-aligned with the audio signal to be corrected and maintains consistent amplitude-phase characteristics. This provides accurate input for subsequent error calculations.
[0024] Step S13: Determine the corresponding initial error data based on the aligned data and the audio signal to be corrected, and determine the first error data corresponding to the current FIR filter and the second error data corresponding to the current LUT lookup table based on the initial error data.
[0025] In this embodiment, after obtaining the aligned data that is precisely aligned with the audio signal to be corrected in terms of time delay and amplitude and phase, the two are subtracted point by point. The audio signal to be corrected represents the distortion-free signal that is ideally expected to be output from the power amplifier, while the aligned data is the actual signal that has been amplified and collected by the power amplifier. The difference between the two is the initial error data.
[0026] Then, based on the initial error data, the second error data corresponding to the current LUT lookup table is determined; the second error data is backpropagated to the output of the current FIR filter, and the first error data is obtained based on the second error data and the intermediate signal. Specifically, the initial error data is directly used to determine the second error data at the output of the LUT lookup table. Because the LUT lookup table is located at the last stage of the cascaded structure, its output is closest to the power amplifier input, and the error at this point can directly reflect the remaining amount of nonlinear correction. After obtaining the second error data, it continues to propagate backward along the opposite direction of the forward path, that is, the second error data is passed in reverse through the input of the LUT lookup table, i.e., the intermediate signal. This allows for the calculation of the first error data corresponding to the output of the FIR filter. .
[0027] Furthermore, continuously freezing or resolving FIR+LUT coefficients cannot achieve a balance between performance and power consumption. The system determines whether the first error data exceeds a preset threshold; if so, it continues with the steps of correcting the modeling coefficients of the current FIR filter and the current LUT lookup table using the first and second error data respectively; otherwise, it terminates directly. Specifically, the system detects the first error data at the final output stage, sets a threshold, and only initiates the calculation module and coefficient updates when the error exceeds the threshold. If the error is less than the set threshold, calculation and coefficient updates are not initiated, and the coefficients in the forward module remain stable.
[0028] Step S14: Use the first error data and the second error data to correct the modeling coefficients of the current FIR filter and the current LUT lookup table respectively, so as to obtain a new current FIR filter and a new current LUT lookup table. So that when a new audio signal to be corrected is obtained, the process jumps to the step of using the current FIR filter to correct the linear distortion of the audio signal to be corrected and using the current LUT lookup table to correct the nonlinear distortion of the audio signal to be corrected, so as to generate the current distortion-corrected audio.
[0029] In this embodiment, the first current modeling coefficients of the current FIR filter and the second current modeling coefficients of the current LUT lookup table are determined. The first current modeling coefficients are corrected based on the audio signal to be corrected and the first error data, and the second current modeling coefficients are corrected based on the intermediate signal and the second error data to obtain a new current FIR filter and a new current LUT lookup table. Specifically, after obtaining the first and second error data, the filter coefficient update process is initiated. First, the first current modeling coefficients currently used by the FIR filter and the second current modeling coefficients stored in the current LUT lookup table need to be obtained. These two sets of coefficients represent the current compensation state of the predistorter for linear and nonlinear distortion. For the FIR filter coefficient update, the audio signal to be corrected is used as the reference input, and the first error data obtained from backpropagation is processed. The first error data reflects the remaining error of the FIR filter in linear correction, i.e., the part that has not yet been completely eliminated by the current frequency response equalization and phase compensation. Based on the magnitude and direction of the first error data, the first current modeling coefficients of the FIR filter are fine-tuned. ; in, The first current modeling coefficient; μ is the preset adjustment parameter; The audio signal to be corrected.
[0030] For updating the coefficients of the LUT lookup table, the intermediate signal output by the FIR filter is used as the reference for addressing and computation, and processed in conjunction with the corresponding second error data: ; in, This is the second current modeling coefficient; This is an intermediate signal.
[0031] Understandably, after correction, the nonlinear compensation value corresponding to that amplitude point in the LUT lookup table will be more accurate. After updating the above two sets of coefficients, a new FIR filter and a new LUT lookup table are obtained, which are used for audio signal distortion correction at the next time step.
[0032] As described above, the embodiments of this application first process the audio signal to be corrected, using the current FIR filter to eliminate linear distortion, and then using the current LUT lookup table to eliminate nonlinear distortion, generating a pre-distorted audio signal for power amplifier output. Subsequently, the analog signal after power amplification is acquired and converted into feedback data, which is then aligned with the original audio signal to be corrected in terms of time delay and amplitude. The initial error is calculated based on the aligned data. This error is backpropagated to determine the error data corresponding to the first and second FIR filters, and the modeling coefficients of the two FIR filters are independently corrected and updated accordingly. The updated FIR filters are used for the next round of audio signal correction processing, thereby achieving adaptive adjustment based on changes in power amplifier characteristics and continuously maintaining low-distortion output. In this way, linear distortion is corrected first using FIR, and nonlinear distortion is corrected using LUT, avoiding mutual interference between the two types of correction and fully leveraging their respective technical advantages. Furthermore, by real-time monitoring of key operating parameters such as power amplifier load impedance and core component temperature, matching correction parameters are dynamically switched to ensure the stability of correction accuracy under different operating conditions.
[0033] As can be seen from the previous embodiment, this application discloses an audio amplifier distortion correction method, which can correct the distortion of an audio amplifier, for example, an amplifier device used in professional stage sound systems or high-fidelity home theater systems. Next, we will discuss methods for correcting distortion in audio amplifiers. Figure 2 The audio amplifier distortion correction method shown is explained in detail.
[0034] First, when the audio source device sends a music signal to be played to the speaker, the FIR filter of this application performs frequency response equalization and phase compensation on the music signal to be played, eliminating the linear distortion that may occur in the transmission link. Subsequently, the intermediate signal after preliminary compensation is sent to the LUT lookup table, and the corresponding nonlinear correction coefficient is indexed in the lookup table according to the real-time amplitude of the signal to perform nonlinear distortion compensation on the signal, finally generating a corrected audio signal after complete pre-distortion.
[0035] Then, as the calibrated audio signal is amplified by the power amplifier stage and drives the speaker to produce sound, the coupling circuit simultaneously acquires this analog signal from the power amplifier output in real time. Since the signal voltage at the power amplifier output is too high to process directly, the coupling circuit first attenuates and isolates it before sending it to an analog-to-digital converter to convert it into a digital representation, obtaining feedback data. Using the original audio signal to be calibrated as a reference, the feedback data undergoes dynamic time delay adjustment and amplitude-phase correction, ultimately yielding aligned data that maintains consistency with the audio signal to be calibrated in terms of time and amplitude-phase characteristics.
[0036] Next, the precisely aligned data is subtracted point-by-point from the original music signal to be played to obtain the initial error data. The initial error data reflects the total distortion present in the current power amplifier link. To correct the FIR filter and LUT lookup table separately, an error backpropagation mechanism is used. First, the initial error is used as the second error data at the output of the LUT lookup table. Then, this error is reversed through the nonlinear mapping relationship of the LUT lookup table to calculate the first error data corresponding to the output of the FIR filter, thereby separating the residuals of linear distortion and nonlinear distortion.
[0037] Finally, the coefficients of both filters are updated using the acquired first and second error data. For the FIR filter, the first current modeling coefficient is fine-tuned using the audio signal to be corrected as input and the first error data. For the LUT lookup table, the second current modeling coefficient of the corresponding storage unit in the lookup table is corrected using the intermediate signal amplitude of the FIR filter output as an index and the second error data. After the coefficient update is completed, a new FIR filter and a new LUT lookup table are obtained. When a new audio segment needs to be played, the updated coefficients are used for a new round of pre-distortion processing. This ensures that the power amplifier can maintain low distortion output under conditions of temperature changes or component aging.
[0038] See Figure 3 As shown, an embodiment of the present invention discloses an audio power amplifier distortion correction device, comprising: The distortion correction module 11 is used to determine the audio signal to be corrected, use the current FIR filter to correct the linear distortion of the audio signal to be corrected, and use the current LUT lookup table to correct the nonlinear distortion of the audio signal to be corrected, so as to generate the current distortion-corrected audio, so as to amplify the current distortion-corrected audio through a preset speaker. Data acquisition module 12 is used to acquire the analog signal of the current distortion-corrected audio after passing through the power amplifier, convert the analog signal into feedback data, and perform time delay and amplitude alignment on the feedback data based on the audio signal to be corrected to obtain aligned data; The data determination module 13 is used to determine the corresponding initial error data based on the aligned data and the audio signal to be corrected, and to determine the first error data corresponding to the current FIR filter and the second error data corresponding to the current LUT lookup table based on the initial error data. The FIR filter acquisition module 14 is used to correct the modeling coefficients of the current FIR filter and the current LUT lookup table using the first error data and the second error data respectively, so as to obtain a new current FIR filter and a new current LUT lookup table. When a new audio signal to be corrected is acquired, the module jumps to the step of correcting the linear distortion of the audio signal to be corrected using the current FIR filter and correcting the nonlinear distortion of the audio signal to be corrected using the current LUT lookup table to generate the current distortion-corrected audio.
[0039] As described above, this application first processes the audio signal to be corrected, using the current FIR filter to eliminate linear distortion, and then using the current LUT lookup table to eliminate nonlinear distortion, generating a pre-distorted audio signal for power amplifier output. Subsequently, by acquiring the analog signal after power amplification and converting it into feedback data, it is aligned with the original audio signal to be corrected in terms of time delay and amplitude, and the initial error is calculated based on the aligned data. This error is backpropagated to determine the error data corresponding to the first and second FIR filters, and the modeling coefficients of the two FIR filters are independently corrected and updated accordingly. The updated FIR filters are used for the next round of audio signal correction processing, thereby achieving adaptive adjustment based on changes in power amplifier characteristics and continuously maintaining low-distortion output. In this way, linear distortion is corrected first through FIR, and nonlinear distortion is corrected through LUT, avoiding mutual interference between the two types of correction and fully leveraging their respective technical advantages. Furthermore, by monitoring key operating parameters such as power amplifier load impedance and core component temperature in real time, the matching correction parameters are dynamically switched to ensure the stability of correction accuracy under different operating conditions.
[0040] In some specific embodiments, the audio amplifier distortion correction device may further include: The requirement acquisition module is used to acquire the target calibration requirements from the user's end. The structure determination module is used to determine the cascade structure of the current FIR filter according to the target correction requirements; wherein the cascade structure includes a parallel structure and / or a series structure.
[0041] In some specific embodiments, the distortion correction module 11 includes: The signal generation unit is used to perform frequency response equalization and phase compensation operations on the audio signal to be corrected using the current FIR filter, so as to eliminate the linear distortion of the audio signal to be corrected and generate an intermediate signal. The audio output unit is used to input the intermediate signal into the current LUT lookup table, index the current LUT lookup table according to the amplitude of the intermediate signal, and output the audio after nonlinear distortion compensation and current distortion correction.
[0042] In some specific embodiments, the data determination module 13 includes: The second error data determination unit is used to determine the second error data corresponding to the current LUT lookup table based on the initial error data. The first error data determination unit is used to backpropagate the second error data to the output of the current FIR filter and obtain the first error data based on the second error data and the intermediate signal.
[0043] In some specific embodiments, the FIR filter acquisition module 14 includes: A coefficient determination unit is used to determine the first current modeling coefficient of the current FIR filter and the second current modeling coefficient of the current LUT lookup table; The coefficient correction unit is used to correct the first current modeling coefficient based on the audio signal to be corrected and the first error data, and to correct the second current modeling coefficient based on the intermediate signal and the second error data, so as to obtain a new current FIR filter and a new current LUT lookup table.
[0044] In some specific embodiments, the audio amplifier distortion correction device further includes: The data judgment module is used to determine whether the first error data is greater than a preset threshold. The first data determination module is used to continue executing the step of using the first error data and the second error data to correct the modeling coefficients of the current FIR filter and the current LUT lookup table respectively if the data is correct. The second data determination module is used to terminate the process directly if the condition is not met.
[0045] In some specific embodiments, the data acquisition module 12 includes: An analog signal output unit is used to acquire the analog signal output by the power amplifier through the preset coupling circuit; A signal conversion unit is used to convert the analog signal into feedback data via an analog-to-digital converter. A data generation unit is used to perform time delay compensation on the feedback data based on the audio signal to be corrected, so as to generate compensated data; The data acquisition unit is used to determine the amplitude difference and phase difference between the audio signal to be corrected and the compensated data, and to perform amplitude and phase compensation on the compensated data according to the amplitude difference and phase difference to obtain aligned data.
[0046] Furthermore, embodiments of this application also disclose an electronic device, Figure 4This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0047] Figure 4 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the audio amplifier distortion correction method disclosed in any of the foregoing embodiments. Alternatively, the electronic device 20 in this embodiment may specifically be a computer.
[0048] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0049] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0050] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the audio amplifier distortion correction method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks.
[0051] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned audio amplifier distortion correction method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0052] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0053] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0054] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0055] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0056] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for correcting distortion in an audio power amplifier, characterized in that, include: The audio signal to be corrected is determined, the linear distortion of the audio signal to be corrected is corrected using the current FIR filter, and the nonlinear distortion of the audio signal to be corrected is corrected using the current LUT lookup table, so as to generate the current distortion-corrected audio, so as to amplify the current distortion-corrected audio through a preset speaker; The analog signal corresponding to the current distortion-corrected audio after passing through the power amplifier is obtained, and the analog signal is converted into feedback data. Based on the audio signal to be corrected, the feedback data is time-delayed and amplitude-aligned to obtain aligned data. Based on the aligned data and the audio signal to be corrected, the corresponding initial error data is determined. Based on the initial error data, the first error data corresponding to the current FIR filter and the second error data corresponding to the current LUT lookup table are determined. The modeling coefficients of the current FIR filter and the current LUT lookup table are corrected using the first error data and the second error data, respectively, to obtain a new current FIR filter and a new current LUT lookup table. This allows the process to jump to the step of correcting the linear distortion of the audio signal to be corrected using the current FIR filter and correcting the nonlinear distortion of the audio signal to be corrected using the current LUT lookup table when a new audio signal to be corrected is acquired, in order to generate the current distortion-corrected audio.
2. The audio power amplifier distortion correction method according to claim 1, characterized in that, Before using the current FIR filter to correct the linear distortion of the audio signal to be corrected, the method further includes: Obtain the target calibration requirements from the user's end; The cascade structure of the current FIR filter is determined according to the target correction requirements; wherein the cascade structure includes a parallel structure and / or a series structure.
3. The audio power amplifier distortion correction method according to claim 1, characterized in that, The step of correcting the linear distortion of the audio signal to be corrected using the current FIR filter and correcting the nonlinear distortion of the audio signal to be corrected using the current LUT lookup table to generate the current distortion-corrected audio includes: The audio signal to be corrected is subjected to frequency response equalization and phase compensation using the current FIR filter to eliminate linear distortion and generate an intermediate signal. The intermediate signal is input into the current LUT lookup table, and the intermediate signal is indexed in the current LUT lookup table according to its amplitude. The audio after nonlinear distortion compensation is then output.
4. The audio power amplifier distortion correction method according to claim 3, characterized in that, The step of determining the first error data corresponding to the current FIR filter and the second error data corresponding to the current LUT lookup table based on the initial error data includes: Based on the initial error data, determine the second error data corresponding to the current LUT lookup table; The second error data is backpropagated to the output of the current FIR filter, and the first error data is obtained based on the second error data and the intermediate signal.
5. The audio power amplifier distortion correction method according to claim 4, characterized in that, The step of using the first error data and the second error data to correct the modeling coefficients of the current FIR filter and the current LUT lookup table respectively, to obtain a new current FIR filter and a new current LUT lookup table, includes: Determine the first current modeling coefficients of the current FIR filter and the second current modeling coefficients of the current LUT lookup table; The first current modeling coefficients are corrected based on the audio signal to be corrected and the first error data, and the second current modeling coefficients are corrected based on the intermediate signal and the second error data to obtain a new current FIR filter and a new current LUT lookup table.
6. The audio power amplifier distortion correction method according to claim 5, characterized in that, After determining the first error data corresponding to the current FIR filter and the second error data corresponding to the current LUT lookup table based on the initial error data, the method further includes: Determine whether the first error data is greater than a preset threshold; If so, then continue with the step of using the first error data and the second error data to correct the modeling coefficients of the current FIR filter and the current LUT lookup table respectively; If not, then the process ends directly.
7. The audio power amplifier distortion correction method according to claim 1, characterized in that, The process of acquiring the analog signal of the current distortion-corrected audio after power amplification, converting the analog signal into feedback data, and aligning the feedback data by time delay and amplitude based on the audio signal to be corrected to obtain aligned data includes: The analog signal output by the power amplifier is obtained through the preset coupling circuit; The analog signal is converted into feedback data via an analog-to-digital converter; The feedback data is time-delayed based on the audio signal to be corrected to generate compensated data. Determine the amplitude difference and phase difference between the audio signal to be corrected and the compensated data, and perform amplitude and phase compensation on the compensated data based on the amplitude difference and phase difference to obtain aligned data.
8. An audio power amplifier distortion correction device, characterized in that, include: The distortion correction module is used to determine the audio signal to be corrected, correct the linear distortion of the audio signal to be corrected using the current FIR filter, and correct the nonlinear distortion of the audio signal to be corrected using the current LUT lookup table, so as to generate the current distortion-corrected audio, so as to amplify the current distortion-corrected audio through a preset speaker. The data acquisition module is used to acquire the analog signal of the current distortion-corrected audio after passing through the power amplifier, convert the analog signal into feedback data, and perform time delay and amplitude alignment on the feedback data based on the audio signal to be corrected to obtain aligned data. The data determination module is used to determine the corresponding initial error data based on the aligned data and the audio signal to be corrected, and to determine the first error data corresponding to the current FIR filter and the second error data corresponding to the current LUT lookup table based on the initial error data. The FIR filter acquisition module is used to correct the modeling coefficients of the current FIR filter and the current LUT lookup table using the first error data and the second error data respectively, so as to obtain a new current FIR filter and a new current LUT lookup table. When a new audio signal to be corrected is acquired, the module jumps to the step of correcting the linear distortion of the audio signal to be corrected using the current FIR filter and correcting the nonlinear distortion of the audio signal to be corrected using the current LUT lookup table to generate the current distortion-corrected audio.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the audio amplifier distortion correction method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, Used to store computer programs; wherein, when the computer programs are executed by a processor, they implement the audio amplifier distortion correction method as described in any one of claims 1 to 7.