Audio signal adaptive equalization method, system and device, and storage medium

In audio signal processing, the difference curve between the exponential moving average curve and the short-time spectrum is used to correct the equalization curve, which solves the problem of offset between the EMA curve and the real music curve, and improves the accuracy and user experience of audio signal equalization processing.

WO2024183547A1PCT designated stage expired Publication Date: 2024-09-12BIGO TECH PTE LTD +1

Patent Information

Application Number
PCT/CN2024/078296
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-07
Filing Date
2024-02-23
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

When existing audio signal equalization processing methods process non-music component signals, the EMA curve deviates greatly from the real music curve, resulting in an inaccurate match between the equalization parameters and the short-term spectrum, affecting the user's listening experience.

Method used

By determining the exponential moving average curve of the audio signal and the difference curve of the short-time spectrum, calculating the correction curve and correcting the equalization curve, a second equalization curve is obtained, and the equalization parameters of the audio signal are determined based on the second equalization curve for processing.

Benefits of technology

It improves the accuracy of audio signal equalization processing, avoids inaccurate equalization parameters caused by differences between EMA curves and audio signals, and improves the user's listening experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078296_12092024_PF_FP_ABST
    Figure CN2024078296_12092024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the embodiments of the present application are an audio signal adaptive equalization method, system and device, and a storage medium. The technical solution provided in the embodiments of the present application comprises: determining an exponential moving average curve of an audio signal, and determining a first equalization curve on the basis of the exponential moving average curve and preset reference information; then, determining a difference curve between the exponential moving average curve and a short-time frequency spectrum of the audio signal, calculating a correction curve on the basis of the difference curve, and correcting a first equalization curve on the basis of the correction curve, so as to obtain a second equalization curve; and then, determining an equalization parameter of the audio signal on the basis of the second equalization curve, and performing equalization processing on the audio signal on the basis of the equalization parameter. By means of the technical solution, the situation whereby an equalization parameter is inaccurate due to the difference between an exponential moving average curve and an audio signal can be avoided, such that the precision of audio signal equalization processing is improved, thereby improving the auditory experience of a user.
Need to check novelty before this filing date? Find Prior Art

Description

Audio signal adaptive equalization method, system, device and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 7, 2023, with application number 202310252793.5, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of audio processing technology, and in particular to a method, system, device, and storage medium for adaptive equalization of audio signals. Background Art

[0003] Currently, in audio signal processing scenarios, equalizers are often used to improve audio quality by eliminating the effects of the physical environment. An EMA (Exponential Moving Average) curve is used to track the static spectrum of the target signal. The resulting static spectrum is then compared with reference information and used as equalization parameters to adjust the target signal based on these parameters.

[0004] However, for audio signals with non-musical components, the EMA curve will have a large deviation from the real music curve, resulting in inaccurate matching of the equalization parameters and the short-time spectrum, causing the processed signal to have a significant deterioration in the listening experience, affecting the user's listening experience.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide an audio signal adaptive equalization method, system, device and storage medium, which can perform real-time adaptive equalization processing on audio signals and solve the technical problem of inaccurate music equalization processing.

[0007] In a first aspect, an embodiment of the present application provides a method for adaptively equalizing an audio signal, comprising:

[0008] Determining an exponential moving average curve of the audio signal, and determining a first equalization curve based on the exponential moving average curve and preset reference information;

[0009] Determining a difference curve between the exponential moving average curve and the short-time spectrum of the audio signal, calculating a correction curve according to the difference curve, and correcting the first equalization curve based on the correction curve to obtain a second equalization curve;

[0010] An equalization parameter of the audio signal is determined based on the second equalization curve, and equalization processing is performed on the audio signal based on the equalization parameter.

[0011] In a second aspect, an embodiment of the present application provides an audio signal adaptive equalization system, comprising:

[0012] a curve tracing module configured to determine an exponential moving average curve of the audio signal;

[0013] an balancing curve calculation module, configured to determine a first balancing curve based on an exponential moving average curve and preset reference information;

[0014] a gain dynamic correction module configured to determine a difference curve between the exponential moving average curve and the short-time spectrum of the audio signal, calculate a correction curve based on the difference curve, and correct the first equalization curve based on the correction curve to obtain a second equalization curve;

[0015] The equalization implementation module is configured to determine equalization parameters of the audio signal based on the second equalization curve, and perform equalization processing on the audio signal based on the equalization parameters.

[0016] In a third aspect, an embodiment of the present application provides an audio signal adaptive equalization device, comprising:

[0017] memory and one or more processors;

[0018] The memory is configured to store one or more programs;

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the audio signal adaptive equalization method as described in the first aspect.

[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a computer processor, the computer-executable instructions are configured to perform the audio signal adaptive equalization method as described in the first aspect.

[0021] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes instructions. When the instructions are executed on a computer or a processor, the computer or the processor executes the audio signal adaptive equalization method as described in the first aspect.

[0022] The embodiment of the present application determines the exponential moving average curve of the audio signal, determines a first equalization curve based on the exponential moving average curve and preset reference information; then determines the difference curve between the exponential moving average curve and the short-time spectrum of the audio signal, calculates a correction curve based on the difference curve, and corrects the first equalization curve based on the correction curve to obtain a second equalization curve; then determines the equalization parameters of the audio signal based on the second equalization curve, and performs equalization processing on the audio signal based on the equalization parameters. By adopting the above-mentioned technical means, the difference curve between the exponential moving average curve and the short-time spectrum of the audio signal is used to correct the equalization curve based on the difference curve, and then the corrected equalization curve is used to perform equalization processing on the audio signal. This can avoid the situation where the difference between the exponential moving average curve and the audio signal causes inaccurate equalization parameters, improve the accuracy of the audio signal equalization processing, and thus improve the user's listening experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] FIG1 is a flow chart of an audio signal adaptive equalization method provided by an embodiment of the present application;

[0024] FIG2 is a flow chart of determining the first equalization curve in an embodiment of the present application;

[0025] FIG3 is a flow chart of equalization curve correction in an embodiment of the present application;

[0026] FIG4 is a flow chart of voice shielding in an embodiment of the present application;

[0027] FIG5 is a schematic structural diagram of an audio signal adaptive equalization system provided in an embodiment of the present application;

[0028] FIG6 is a schematic structural diagram of an audio signal adaptive equalization device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solutions and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. It should also be noted that, for ease of description, only parts related to the present application, not all of the contents, are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0030] The present application provides an adaptive equalization method for audio signals, which aims to correct the equalization curve based on the difference curve between the exponential moving average curve and the short-time spectrum of the audio signal, and then use the corrected equalization curve to equalize the audio signal, thereby improving the accuracy of the audio signal equalization processing.

[0031] Existing audio equalization solutions generally require measuring the static spectrum of the target signal and determining the equalization parameters by comparing the differences in the static spectrum between the target signal and the reference signal. This method has two shortcomings: First, it does not take into account the time-varying characteristics of the audio signal. When the audio signal changes significantly over time, the fixed equalization parameters cannot match the changed spectrum. Second, it is difficult to obtain the long-term static spectrum of the target signal in real-time processing. Since the signal in real-time processing is causal, the signal is processed in frames. The information that can be obtained in a single processing is limited. In addition, the real-time calculation of the target signal spectrum may result in large gain changes between frames, which may cause the output result to have inter-frame distortion.

[0032] To this end, the EMA curve tracking method is usually introduced in the calculation of the static spectrum. The short-time spectrum at the frame level in real-time processing is weighted and calculated to obtain an approximate long-time static spectrum. This method obtains a short-time stable static spectrum while retaining the time-varying characteristics of the signal.

[0033] However, since the comparison result of the static spectrum obtained by directly using the EMA curve tracking and the reference information is used as the equalization parameter, the difference between the EMA curve and the short-time spectrum is ignored, and the problem of over-gain still exists in scenarios such as live broadcasts where the signal changes significantly over time. At the same time, this method is applicable to pure music scenarios. For audio signals with non-musical components, the EMA curve will have a large offset from the real music curve, resulting in inaccurate matching of the equalization parameters and the short-time spectrum, causing the processed signal to have a significant deterioration in the auditory sense, affecting the user's listening experience. Based on this, an audio signal adaptive equalization method of an embodiment of the present application is provided to solve the technical problem of inaccurate music equalization processing.

[0034] Example:

[0035] FIG1 shows a flow chart of an audio signal adaptive equalization method provided in an embodiment of the present application. The audio signal adaptive equalization method provided in this embodiment can be performed by an audio signal adaptive equalization device. The audio signal adaptive equalization device can be implemented by software and / or hardware. The audio signal adaptive equalization device can be composed of two or more physical entities or a single physical entity. Generally speaking, the audio signal adaptive equalization device can be an audio processing server, a live broadcast terminal device, a computer, a mobile phone, a tablet, or other processing device.

[0036] The following description will be made by taking the audio signal adaptive equalization device as an example to implement the audio signal adaptive equalization method. Referring to FIG1 , the audio signal adaptive equalization method specifically includes:

[0037] S110, determining an exponential moving average curve of the audio signal, and determining a first equalization curve based on the exponential moving average curve and preset reference information;

[0038] S120, determining a difference curve between the exponential moving average curve and the short-time spectrum of the audio signal, calculating a correction curve according to the difference curve, and correcting the first equalization curve based on the correction curve to obtain a second equalization curve;

[0039] S130: Determine an equalization parameter of the audio signal based on the second equalization curve, and perform equalization processing on the audio signal based on the equalization parameter.

[0040] When performing adaptive equalization processing on the audio signal, the embodiment of the present application utilizes an EMA (Exponential Moving Average) curve to track the audio signal, so as to fit the long-term characteristics of the live signal through the short-term signal information in the live broadcast. Then, based on the obtained long-term characteristics (i.e., the EMA curve) and the preset reference information, the equalization parameter curve of the filter in the frequency domain, i.e., the first equalization curve, is calculated. Furthermore, in order to avoid the situation where the EMA curve differs too much from the actual signal curve, resulting in inaccurate matching of the equalization parameters with the short-term spectrum, the embodiment of the present application further optimizes the equalization curve, and dynamically corrects the equalization curve according to the difference between the EMA curve and the short-term spectrum curve of the current frame audio signal to obtain the final equalization curve.

[0041] Understandably, in music-related applications, an equalizer is often used to process the music signal to eliminate the impact of the physical environment on the music signal, improving the music quality by adjusting the energy distribution of different frequency bands. However, simple adaptive equalization methods based on spectrum matching suffer from inaccurate matching between equalization parameters and short-term spectra in real-time processing scenarios, resulting in a noticeable deterioration in the listening experience of the processed signal. Therefore, using this dynamically corrected equalization curve allows adaptive equalization of the audio signal, resulting in a precisely balanced audio signal.

[0042] For example, in a live broadcast scenario, the audio signal generated by the host end is processed by a near-end acoustic algorithm, and then the audio signal adaptive equalization method of the embodiment of the present application is used for audio equalization. By receiving label information from the acoustic scene detection module, it is used to determine whether the current signal is a music signal, and to guide the algorithm to process the input signal. By automatically equalizing the music of the live broadcast on the Internet, the short-time spectrum of the signal is approximately converted into a long-time static spectrum using the EMA curve, and the static spectrum is compared with the preset reference information to obtain the equalization parameters, and the obtained equalization parameters are dynamically corrected over time, so as to correct the spectrum of the signal while avoiding the equalization mismatch and inter-frame distortion caused by the change of the signal over time. For the frequency response abnormality problem in the music signal of the host end, the audio adaptive equalization method of the embodiment of the present application is used to adaptively calculate the equalization parameters and correct the signal. At the same time, non-music signals can also be retained nearly losslessly, thereby improving the user's listening experience.

[0043] Specifically, when performing adaptive equalization of an audio signal, the EMA tracking module first determines the exponential moving average (EMA) curve of the audio signal. The EMA tracking module determines the frame increment of the audio signal based on the short-time spectrum of the audio signal and a set increment limit threshold. The EMA curve of the audio signal is then determined based on the frame increment, the set curve coefficient, and the EMA curve of the previous audio frame.

[0044] When performing adaptive equalization of audio signals, it is necessary to first apply for space for the EMA curve and initialize it to be completely consistent with the reference curve. The calculation formula for EMA curve tracking is as follows: EMA k =αEMA k-1 +(1-α)Y k

[0045] Where k is the frame index, α is the EMA coefficient, and Y K is the k-th frame increment, Y K The calculation formula is:

[0046] Among them, X K is the short-time spectrum of the k-th frame signal, and thr1 is the incremental limit threshold. In real-world scenarios, the EMA tracking module simultaneously receives the output label of the acoustic scene classification module and adjusts the EMA coefficient α. If the label indicates a non-music scene, it is set to 0.

[0047] Based on the EMA curve obtained above, the first equilibrium curve can be determined by the equilibrium curve calculation module in combination with the preset reference information. Referring to FIG2 , the process of determining the first equilibrium curve includes:

[0048] S1101, calculating an initial equilibrium curve based on an exponential moving average curve and preset reference information;

[0049] S1102: Adjust the initial equalization curve based on the set tolerance range to obtain a first equalization curve.

[0050] It should be noted that although the curve of the preset reference information conforms to the general trend of certain music styles, there will still be certain differences between different music, which reflects the different artistic expressions of the music makers. Therefore, in order to avoid the equalized signal being overly consistent with the reference information in the frequency domain, causing the signal to lose its original details, it is necessary to retain the changes in these small ranges and maintain the diversity of different songs. Based on this, the embodiment of the present application introduces a tolerance method to calculate the first equalization curve, and presets the acceptable tolerance range information while presetting the reference information. If the difference between the current EMA curve and the curve of the reference information is within the tolerance range, no processing is performed; if the difference between the current EMA curve and the curve of the reference information is outside the tolerance range, processing is performed.

[0051] The input of the equilibrium curve calculation module is the EMA curve of the previous module and the preset reference curve, and the output is the first equilibrium curve. The calculation formula of the first equilibrium curve is as follows: Eq k =EMA k -Ref

[0052] Among them, Eq. k is the first equalization curve, Ref is the preset reference information, and tol is the preset tolerance information. In the actual calculation process, the tolerance information can be a fixed value or multiple fixed values ​​of the curve or sub-band.

[0053] Based on the first equalization curve, correction is performed through the gain dynamic correction module. Among them, by determining the difference curve between the exponential moving average curve and the short-time spectrum of the audio signal, a correction curve is calculated according to the difference curve. By determining the correction parameters of the correction curve, the correction curve is calculated based on the correction parameters and the difference curve, and then the first equalization curve is corrected using the correction curve to obtain the second equalization curve. When correcting the equalization curve, it is necessary to first detect whether there is sibilance in the audio signal, so as to adaptively select the correction parameters to calculate the correction curve. By performing sibilance detection on the audio signal, when sibilance is detected in the audio signal, the correction parameters based on the sibilance correction parameters are used as the correction parameters of the correction curve. When sibilance is not detected in the audio signal, the correction parameters based on the default correction parameters are used as the correction parameters of the correction curve.

[0054] Specifically, sibilance detection is performed on the audio signal, including: estimating the gain curve based on the exponential moving average curve and the first equalization curve, calculating the sibilance energy and non-sibilance energy of the gain curve; calculating the probability of short-time impact sound and the energy proportion of the sibilance band based on the sibilance energy and the non-sibilance energy, and determining the sibilance detection result according to the probability of short-time impact sound and the energy proportion of the sibilance band. In audio signals, sibilance is usually in the frequency range of 4KHz to 12KHz. When sibilance occurs, it is usually manifested as a sudden increase in the energy of the sibilance band, which quickly falls back after a short duration. Therefore, sibilance can be detected by judging the two characteristics of the short-time impact of the sibilance band and the energy proportion of the sibilance band. In addition, conditions such as flat friction sound and energy fluctuation curve can be introduced to assist in the detection of sibilance. There are many ways to detect sibilance, which are not described here one by one.

[0055] Based on the above-mentioned sibilance judgment result, the gain dynamic correction module can generate a corresponding correction curve to correct the first equalization curve. Referring to Figure 3, the correction parameters are first calculated based on the results of the sibilance detection. If it is determined that sibilance exists, the sibilance correction parameters are used. If it is determined that sibilance does not exist, the default correction parameters are used. The input of the gain dynamic correction module includes the EMA curve and the short-time spectrum of the current frame. The difference curve is obtained by subtracting the two inputs, and then combined with the difference curve D k and correction parameters (teeth correction parameters or default correction parameters), calculate the correction curve F k , the calculation formula of the correction process is as follows: Eq k1 =Eq k -F k

[0056] Among them, thr3 is the correction threshold parameter, β is the correction ratio parameter, thr4 is the correction limit parameter, Eq k1 is the second equilibrium curve, Eq. k is the first equilibrium curve.

[0057] At this point, the second equalization curve can be used by the equalization implementation module to perform equalization processing on the audio signal. The input of the equalization implementation module is the second equalization curve obtained by the above calculation and the spectrum curve of the current frame audio signal. According to the time-frequency transformation characteristics, filtering in the time domain is equivalent to filtering in the frequency domain. Therefore, in the equalization implementation, direct multiplication in the frequency domain is used instead of time domain convolution, and frequency domain mask, linear phase FIR filter, minimum phase FIR filter and other methods are used for gain control. At the same time, in order to avoid the problem of distortion caused by the difference in equalization parameters of adjacent frames, the signal is reconstructed by adding the overlapping parts to complete the equalization processing of the audio signal. In practical applications, other frequency domain features such as mel spectrum and bark spectrum can also be used for spectrum calculation. This application does not impose fixed restrictions on specific frequency domain features, which will not be elaborated here.

[0058] By determining the exponential moving average curve of the audio signal, a first equalization curve is determined based on the exponential moving average curve and preset reference information; then, a difference curve between the exponential moving average curve and the short-time spectrum of the audio signal is determined, a correction curve is calculated based on the difference curve, and the first equalization curve is corrected based on the correction curve to obtain a second equalization curve; then, based on the second equalization curve, equalization parameters of the audio signal are determined, and the audio signal is equalized based on the equalization parameters. By using the above technical means, the difference curve between the exponential moving average curve and the short-time spectrum of the audio signal is used to correct the equalization curve based on the difference curve, and then the audio signal is equalized using the corrected equalization curve. This can avoid the situation where the difference between the exponential moving average curve and the audio signal causes inaccurate equalization parameters, improve the accuracy of the audio signal equalization processing, and thus enhance the user's listening experience.

[0059] In practical applications, the second equalization curve can be further optimized to further improve the accuracy of audio equalization processing. Optionally, after correcting the first equalization curve based on the correction curve to obtain the second equalization curve, the method further includes: detecting the cutoff frequency point of the exponential moving average curve, determining the point on the second equalization curve corresponding to the cutoff frequency point, and performing a roll-off adjustment on the parameter values ​​after the corresponding point.

[0060] The characteristic of the cutoff frequency is that the energy decays rapidly at the cutoff frequency. At this point, the slope of the frequency curve at this point is less than 0, and the absolute value reaches the maximum. In addition, the energy decays significantly in a wide band after the cutoff frequency. Therefore, this application determines the cutoff frequency by calculating the slope of the energy at the frequency point of the EMA curve and the wideband energy, and then optimizes the cutoff frequency. For this EMA curve, first determine the search starting point a and the slope calculation bandwidth band, and calculate the energy attenuation θ at the two end points of the band pwr , and compare it with the set energy threshold thr5. If the energy attenuation is greater than the set energy threshold thr5, the average energy in a narrow band is calculated with point a and point a+band as the midpoints. The difference is compared with the set energy threshold thr5 to prevent misjudgment caused by the two points being extreme points. If the energy attenuation meets the conditions, update thr5 to θ pwr At the same time, calculate the slope of the EMA curve at the current point and record the maximum slope and the corresponding frequency point a. Move point a toward the high frequency and repeat the above steps. The point corresponding to the maximum slope is the cutoff frequency. After obtaining the cutoff frequency point, determine the parameter point on the second equalization curve that corresponds to the cutoff frequency point. Starting from this corresponding parameter point, process the parameter values ​​after this parameter point according to the following formula:

[0061] Among them, n is the curve sampling point index, N is the curve length, is the roll-off coefficient, Eq. k2 Indicates the adjusted second equalization curve.

[0062] Furthermore, frequency band retrieval isn't limited to searching for the point with the maximum slope of the curve; other features, such as the energy drop, can also be used. Furthermore, when processing based on the cutoff frequency, the processing isn't limited to rolling off the coefficient; other methods, such as directly setting it to zero, are also possible.

[0063] Optionally, after correcting the first equalization curve based on the correction curve to obtain the second equalization curve, the method further includes: smoothing the second equalization curve based on a triangular window function, wherein the window length of the triangular window function varies with the frequency of the second equalization curve.

[0064] Since the correction of the equalization curve by the front-end module is performed in frequency bands, which may cause large differences between adjacent frequency bands, the embodiment of the present application also introduces a triangular window to perform curve smoothing operation. The triangular window calculation formula is as follows:

[0065] Where n is the triangular window sampling point index, and M is the window length. During smoothing calculation, the window function slides on the curve, and the covered segments are multiplied and added with the window function to obtain the smoothed result of the center point. In addition, during the smoothing process, since the human ear's perception of the frequency domain is nonlinear, the length of the smoothing window will increase as the frequency increases. In practical applications, window functions such as rectangular windows can also be selected for smoothing. The embodiments of the present application do not impose fixed restrictions on the specific window function.

[0066] Optionally, after correcting the first equalization curve based on the correction curve to obtain the second equalization curve, the method further includes: determining an energy compensation coefficient according to the spectrum energy of the audio signal before and after equalization, and performing energy compensation on the second equalization curve based on the energy compensation coefficient.

[0067] Since the preset reference information is a preset static signal, the energy of the spectrum is fixed, but the signal obtained in the actual application scenario is dynamically changing, so the energy change should be considered when calculating the equalization parameters. Based on this, the embodiment of the present application adds an energy compensation module after the second equalization curve, and determines the energy compensation coefficient by calculating the energy before and after equalization, and then performs energy correction on the equalization parameters of the second equalization curve. The energy compensation calculation formula is as follows:

[0068] Among them, P front represents the signal energy before equalization, P Estimation represents the estimation of the signal energy after equalization, Eq k3 It represents the second equalization curve after energy compensation.

[0069] Optionally, after correcting the first equalization curve based on the correction curve to obtain the second equalization curve, the method further includes:

[0070] A category label of the audio signal is obtained, and when it is determined according to the category label that the audio signal includes a speech signal, the second equalization curve is modified based on a set speech masking coefficient.

[0071] In the live broadcast scenario, in order to avoid damage to the host's voice caused by the equalization algorithm, as shown in Figure 4, this application further detects the voice signal in the audio signal and shields the voice signal. Among them, the category label of the acoustic scene classification module is received to determine whether the current audio signal is a voice signal, and the method of calculating the continuous state is used to determine whether the current period is long-term voice or long-term music. If it is long-term voice, the equalization parameter is shielded by the voice shielding coefficient to ensure the stability and integrity of the voice signal, further improving the user's listening experience.

[0072] It should be noted that the above-mentioned optimization process for the second equalization curve can be executed sequentially, and the optimized second equalization curve can be used for audio signal equalization processing. It is also possible to select one of the optimization processes to optimize the second equalization curve according to actual needs. This application does not impose fixed restrictions on the specific curve optimization process and sequence, and will not be elaborated here.

[0073] Optionally, for an audio signal to be equalized, before using the equalization method of the present application, the signal may first pass through a silence frame detector. If the input signal is a silence frame, no gain calculation is performed.

[0074] Through the above-mentioned audio adaptive equalization method, the variation is constrained when calculating the EMA curve to avoid sudden abnormal sounds in the live broadcast scene causing significant disturbances to the tracking results. Secondly, a calculation method with tolerance is used when comparing the EMA curve with the reference curve to better preserve the details of the original spectrum curve of the signal. Then, a sibilance detector is introduced to detect possible sibilance from the EMA curve and suppress it. At the same time, the difference between the EMA curve and the short-time spectrum is compared, and the frequency bands with large differences are dynamically corrected. Secondly, a cutoff band retriever is introduced to detect the cutoff frequency point of the EMA curve and process the equalization parameters in the cutoff band to prevent the cutoff band energy from being applied with a large gain, thereby amplifying the tiny noise in the signal. Before applying the gain, the EMA curve is used to estimate the energy change before and after equalization, and energy compensation is performed to avoid drastic fluctuations in signal energy due to equalization processing. Finally, the frequency domain product method is used to implement equalization to reduce the amount of calculation. In addition, this application also incorporates a linkage with the acoustic scene classification module into the algorithm based on specific business scenarios. Through the category labels output by the module, it effectively distinguishes between music scenes and non-music scenes, performs adaptive equalization on the music signal in music scenes, and protects the voice signal in non-music scenes. In this way, the music signal in the live broadcast scene is adaptively equalized in real time, compensating for the damage caused by the physical environment to the signal, making the music signal objectively closer to the state of three-band balance, making the user's subjective listening experience more pleasant.

[0075] Based on the above embodiments, FIG5 is a schematic diagram of the structure of an audio signal adaptive equalization system provided by this application. Referring to FIG5, the audio signal adaptive equalization system provided by this embodiment specifically includes: a curve tracking module 21, an equalization curve calculation module 22, a gain dynamic correction module 23, and an equalization implementation module 24.

[0076] Wherein, the curve tracing module 21 is configured to determine an exponential moving average curve of the audio signal;

[0077] The equalization curve calculation module 22 is configured to determine a first equalization curve based on the exponential moving average curve and preset reference information;

[0078] The gain dynamic correction module 23 is configured to determine a difference curve between the exponential moving average curve and the short-time spectrum of the audio signal, calculate a correction curve according to the difference curve, and correct the first equalization curve based on the correction curve to obtain a second equalization curve;

[0079] The equalization implementation module 24 is configured to determine equalization parameters of the audio signal based on the second equalization curve, and perform equalization processing on the audio signal based on the equalization parameters.

[0080] Specifically, determining an exponential moving average curve of an audio signal includes:

[0081] The frame increment of the audio signal is determined based on the short-time spectrum of the audio signal and a set increment limiting threshold, and the exponential moving average curve of the audio signal is determined according to the frame increment, the set curve coefficient and the exponential moving average curve of the previous frame of audio signal.

[0082] Specifically, determining the first equalization curve based on the exponential moving average curve and preset reference information includes:

[0083] Calculate the initial equilibrium curve based on the exponential moving average curve and preset reference information;

[0084] The initial equalization curve is adjusted based on the set tolerance range to obtain a first equalization curve.

[0085] Specifically, calculating the correction curve according to the difference curve includes:

[0086] A correction parameter of the correction curve is determined, and the correction curve is calculated based on the correction parameter and the difference curve.

[0087] Determining the correction parameters of the correction curve includes:

[0088] Sibilance detection is performed on the audio signal. If sibilance is detected in the audio signal, the sibilance correction parameter is used as the correction parameter of the correction curve. If sibilance is not detected in the audio signal, the default correction parameter is used as the correction parameter of the correction curve.

[0089] The sibilance detection of the audio signal includes:

[0090] estimating a gain curve based on the exponential moving average curve and the first equalization curve, and calculating sibilant energy and non-sibilant energy of the gain curve;

[0091] The short-term impact sound probability and the sibilant sound band energy ratio are calculated based on the sibilant sound energy and the non-sibilant sound energy, and the sibilant sound detection result is determined according to the short-term impact sound probability and the sibilant sound band energy ratio.

[0092] Optionally, after correcting the first equalization curve based on the correction curve to obtain the second equalization curve, the method further includes:

[0093] The cutoff frequency point of the exponential moving average curve is detected, and when the parameter value of the cutoff frequency point is smaller than the parameter value of the corresponding point of the second equalization curve, the parameter value of the corresponding point of the second equalization curve is adjusted.

[0094] Optionally, after correcting the first equalization curve based on the correction curve to obtain the second equalization curve, the method further includes:

[0095] The second equalization curve is smoothed based on a triangular window function, and the window length of the triangular window function varies with the frequency of the second equalization curve.

[0096] Optionally, after correcting the first equalization curve based on the correction curve to obtain the second equalization curve, the method further includes:

[0097] An energy compensation coefficient is determined according to the spectrum energy of the audio signal before and after equalization, and energy compensation is performed on the second equalization curve based on the energy compensation coefficient.

[0098] Optionally, after correcting the first equalization curve based on the correction curve to obtain the second equalization curve, the method further includes:

[0099] A category label of the audio signal is obtained, and when it is determined according to the category label that the audio signal includes a speech signal, the second equalization curve is modified based on a set speech masking coefficient.

[0100] In the above, the exponential moving average curve of the audio signal is determined, and a first equalization curve is determined based on the exponential moving average curve and preset reference information; then, a difference curve between the exponential moving average curve and the short-time spectrum of the audio signal is determined, a correction curve is calculated based on the difference curve, and the first equalization curve is corrected based on the correction curve to obtain a second equalization curve; then, the equalization parameters of the audio signal are determined based on the second equalization curve, and the audio signal is equalized based on the equalization parameters. By adopting the above technical means, the difference curve between the exponential moving average curve and the short-time spectrum of the audio signal is used to correct the equalization curve based on the difference curve, and then the audio signal is equalized using the corrected equalization curve. This can avoid the situation where the difference between the exponential moving average curve and the audio signal causes inaccurate equalization parameters, improve the accuracy of the audio signal equalization processing, and thus improve the user's listening experience.

[0101] The audio signal adaptive equalization system provided in the embodiment of the present application can be configured to execute the audio signal adaptive equalization method provided in the above embodiment, and has corresponding functions and beneficial effects.

[0102] Based on the above practical example, an embodiment of the present application further provides an audio signal adaptive equalization device. Referring to FIG6 , the audio signal adaptive equalization device includes: a processor 31, a memory 32, a communication module 33, an input device 34, and an output device 35. The memory 32, as a computer-readable storage medium, can be configured to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the audio signal adaptive equalization method described in any embodiment of the present application (for example, the curve tracking module, the equalization curve calculation module, the gain dynamic correction module, and the equalization implementation module in the audio signal adaptive equalization system). The communication module 33 is configured to perform data transmission. The processor 31 executes the software programs, instructions, and modules stored in the memory to execute various functional applications and data processing of the device, thereby implementing the above-mentioned audio signal adaptive equalization method. The input device 34 can be configured to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 35 may include a display device such as a display screen. The above-mentioned audio signal adaptive equalization device can be configured to execute the audio signal adaptive equalization method provided in the above-mentioned embodiment, and has corresponding functions and beneficial effects.

[0103] Based on the above embodiments, embodiments of the present application further provide a computer-readable storage medium storing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are configured to execute a method for adaptively equalizing an audio signal. The storage medium may be any of various types of memory devices or storage devices. Of course, the computer-executable instructions of the computer-readable storage medium provided in embodiments of the present application are not limited to the method for adaptively equalizing an audio signal described above, but may also execute related operations of the method for adaptively equalizing an audio signal provided in any embodiment of the present application.

[0104] Based on the above embodiments, the embodiments of the present application also provide a computer program product. The essence of the technical solution of the present application or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer program product is stored in a storage medium and includes several instructions for enabling a computer device, a mobile terminal or a processor therein to execute all or part of the steps of the audio signal adaptive equalization method described in each embodiment of the present application.

Claims

1. A method for adaptive equalization of an audio signal, wherein: include: Determine an exponential moving average curve of the audio signal, and determine a first equalization curve based on the exponential moving average curve and preset reference information; Determine a difference curve between the exponential moving average curve and the short-time spectrum of the audio signal, calculate a correction curve according to the difference curve, and correct the first equalization curve based on the correction curve to obtain a second equalization curve; An equalization parameter of the audio signal is determined based on the second equalization curve, and equalization processing is performed on the audio signal based on the equalization parameter.

2. The audio signal adaptive equalization method according to claim 1, wherein: Determining an exponential moving average curve of the audio signal includes: The frame increment of the audio signal is determined based on the short-time spectrum of the audio signal and the set increment limiting threshold, and the exponential moving average curve of the audio signal is determined according to the frame increment, the set curve coefficient and the exponential moving average curve of the previous frame of the audio signal.

3. The audio signal adaptive equalization method according to claim 1, wherein: The determining of the first equalization curve based on the exponential moving average curve and preset reference information includes: Calculating an initial equilibrium curve according to the exponential moving average curve and preset reference information; The initial equalization curve is adjusted based on a set tolerance range to obtain a first equalization curve.

4. The audio signal adaptive equalization method according to claim 1, wherein: The calculating of the correction curve according to the difference curve comprises: A correction parameter of the correction curve is determined, and the correction curve is calculated based on the correction parameter and the difference curve.

5. The audio signal adaptive equalization method according to claim 4, wherein: Determining correction parameters of the correction curve includes: Perform sibilance detection on the audio signal. When sibilance is detected in the audio signal, use sibilance correction parameters as correction parameters of the correction curve. When sibilance is not detected in the audio signal, use default correction parameters as correction parameters of the correction curve.

6. The audio signal adaptive equalization method according to claim 5, wherein: The performing sibilance detection on the audio signal comprises: estimating a gain curve based on the exponential moving average curve and the first equalization curve, and calculating sibilant energy and non-sibilant energy of the gain curve; Calculate the short-term impulse sound probability and the sibilant sound band energy based on the sibilant sound energy and the non-sibilant sound energy The dental sound detection result is determined according to the short-term impact sound probability and the dental sound band energy proportion.

7. The audio signal adaptive equalization method according to claim 1, wherein: After the first equalization curve is corrected based on the correction curve to obtain a second equalization curve, the method further includes: The cutoff frequency point of the exponential moving average curve is detected, a point on the second equalization curve corresponding to the cutoff frequency point is determined, and a roll-off adjustment is performed on the parameter value after the corresponding point.

8. The audio signal adaptive equalization method according to claim 1, wherein: After the first equalization curve is corrected based on the correction curve to obtain a second equalization curve, the method further includes: The second equalization curve is smoothed based on a triangular window function, and the window length of the triangular window function varies with the frequency of the second equalization curve.

9. The audio signal adaptive equalization method according to claim 1, wherein: After the first equalization curve is corrected based on the correction curve to obtain a second equalization curve, the method further includes: An energy compensation coefficient is determined according to the spectrum energy of the audio signal before and after equalization, and energy compensation is performed on the second equalization curve based on the energy compensation coefficient.

10. The audio signal adaptive equalization method according to claim 1, wherein: After the first equalization curve is corrected based on the correction curve to obtain a second equalization curve, the method further includes: The category label of the audio signal is obtained, and when it is determined according to the category label that the audio signal includes a speech signal, the second equalization curve is corrected based on a set speech masking coefficient.

11. An audio signal adaptive equalization system, wherein: include: a curve tracing module configured to determine an exponential moving average curve of the audio signal; an equalization curve calculation module, configured to determine a first equalization curve based on the exponential moving average curve and preset reference information; a gain dynamic correction module, configured to determine a difference curve between the exponential moving average curve and the short-time spectrum of the audio signal, calculate a correction curve according to the difference curve, and correct the first equalization curve based on the correction curve to obtain a second equalization curve; The equalization implementation module is configured to determine an equalization parameter of the audio signal based on the second equalization curve, and perform equalization processing on the audio signal based on the equalization parameter.

12. An audio signal adaptive equalization device, wherein: include: memory and one or more processors; The memory is configured to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the audio signal adaptive equalization method according to any one of claims 1 to 10.

13. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a computer processor, the computer-executable instructions are configured to execute the audio signal adaptive equalization method according to any one of claims 1 to 10.

14. A computer program product, wherein: The computer program product includes instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes the audio signal adaptive equalization method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Equalizer filtering parameter generation method, audio signal filtering method and equalizer

    CN111933161A

  • Adjusting tooth sound detection based on detecting specific sound in audio signal

    CN114127848A

  • Adaptive equalization method and system for acoustic system

    CN115691543A

  • Audio signal adaptive equalization method, system and device and storage medium

    CN116259327A

  • Adaptive Equalization System

    US20130297306A1

Cited By

  • Audio processing method, electronic device, chip system, storage medium and program product

    CN119418716A