Dynamic EQ
The audio signal is processed by the dynamic equalizer (DynEQ), which solves the problems of low valley and resonance in amateur recording, achieves efficient equalization and dynamic range compression of the audio signal, and significantly improves the recording quality.
Patent Information
- Application Number
- CN201980046361.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-09-25
- Filing Date
- 2019-07-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2039-07-11
AI Technical Summary
Problems such as troughs, resonance, abnormal frequency response, uncontrolled dynamic range, and distortion often exist in amateur audio recordings, resulting in low recording quality. It is difficult for existing technology to effectively deal with these defects.
A dynamic equalizer (DynEQ) is used to divide the audio signal into frames and frequency bands. By analyzing the spectrum profile of the reference audio signal, time-varying gains are calculated and applied to match the target spectrum profile, and static and dynamic gain processing are combined to avoid noise enhancement and Signal processing in offline or online mode.
Significantly improves audio signal quality, avoids processing mismatches in different parts, enhances signal balance and depth, and improves recording clarity and consistency.
Smart Images

Figure CN112384976B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Spanish Patent Application No. P201830698, filed on July 12, 2018, U.S. Provisional Patent Application No. 62 / 730,780, filed on September 13, 2018, and European Patent Application No. 18196532.8, filed on September 25, 2018, which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates generally to audio signal processing, and more particularly to applying equalization and dynamic compression to audio signals. Background Art
[0004] Amateur audio recordings often contain some undesirable characteristics not present in professional recordings, such as dips and resonances due to room modes, frequency response anomalies associated with microphones, uncontrolled dynamic range, distortion, large variations in digital levels in the signal recorded by different devices, etc. These low-quality recordings can be improved by using equalization (EQ) and dynamic range compression (DRC) during recording and mixing. One of the uses of EQ and DRC is to control inherent imperfections in the signal chain (e.g., microphone positioning, strong room resonances, etc.) and help the user produce a more balanced recording with clarity and depth. Summary of the invention
[0005] Various embodiments are disclosed for applying EQ and DRC (hereinafter "DynEQ") to an audio signal (e.g., a song) (possibly simultaneously). DynEQ establishes and utilizes a spectral profile (hereinafter "target profile") by analyzing reference material, such as a well-mastered music track. The target profile includes statistics about the dynamics of each frequency band of the signal (e.g., in the form of quantile curves). Signal processing is applied to the audio signal to match the spectral profile of the audio signal to the target spectral profile in a manner that depends on the dynamic statistics. For example, the signal processing includes applying a time-varying, frequency-dependent gain to the original audio signal, which has the combined effects of a time-varying equalizer and a time-varying leveler.
[0006] In an embodiment, this allows DynEQ to be used in an "offline" mode, in which a first pass analysis is performed on the audio signal before signal processing is applied. The first pass allows DynEQ to obtain accurate statistics of the audio signal, which can be used to improve the quality of the audio signal. Accurate statistics allow DynEQ to avoid matching various portions of the audio signal to a target spectral profile when they should be processed differently. For example, in "offline" mode, an entire song can be analyzed to understand where soft parts (e.g., an intro) or loud parts (e.g., a chorus) are, so that different quantile curves of the same target profile can be used to equalize soft and loud parts of the song. In an embodiment, DynEQ can also be used in an "online" mode, in which dynamic statistics are obtained from the audio signal while the audio signal is being played back to a listener on an audio playback device.
[0007] In an embodiment, DynEQ may use an estimate of static background noise in the audio signal to avoid boosting time-frequency tiles in the audio signal that have a low signal-to-noise ratio (SNR). In an embodiment, DynEQ incorporates a normalization step that makes the DynEQ process independent of the overall digital level of the audio signal, which is typically unpredictable.
[0008] In an embodiment, a method includes: dividing an input audio signal into n frames, where n is a positive integer greater than 1; dividing each frame of the input audio signal into Nb frequency bands, where Nb is a positive integer greater than 1; for each frame n: calculating the input level of the input audio signal in each frequency band f to obtain an input audio level distribution of the input audio signal; calculating a gain for each frequency band f based at least in part on a mapping of one or more attributes of the input audio level distribution to a reference audio level distribution calculated from one or more reference audio signals; and applying each calculated gain for each frequency band f to each corresponding frequency band f of the input audio signal.
[0009] Other embodiments include systems, devices, and non-transitory computer-readable media.
[0010] The details of one or more embodiments of the inventive subject matter are set forth in the following drawings and description. Other features, aspects, and advantages of the inventive subject matter will become more apparent in the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a block diagram of an audio processing system for establishing a spectral profile of an audio signal according to an embodiment.
[0012] Figure 2 is a graph illustrating a quantile curve corresponding to a frequency spectrum profile according to an embodiment.
[0013] Figure 3A is a block diagram of an audio processing system for applying DynEQ to an audio signal in an offline workflow according to an embodiment.
[0014] Figure 3B is a block diagram of an audio processing system for applying DynEQ to an audio signal in an online workflow according to an embodiment.
[0015] Figure 4 Calculation of DynEQ gains in each frequency band of an audio signal according to an embodiment is illustrated.
[0016] Figure 5A and Figure 5B Respectively, the original version and the compressed version of the spectrum profile according to an embodiment.
[0017] Figure 6 It is modified according to an embodiment to enhance the spectral profile of high frequencies.
[0018] Figure 7 According to an embodiment, quantile curves of the spectral profiles of three different types of music are compared.
[0019] Figure 8 is a flow chart of a process for establishing a spectral profile of an audio signal, according to an embodiment.
[0020] Fig. 9 is a flow chart of a DynEQ process according to an embodiment.
[0021] Fig.10 Is used for execution reference Figures 1 to 9 A block diagram of an audio processing unit describing the process. DETAILED DESCRIPTION
[0022] Example System
[0023] Figure 1 is a block diagram of an audio processing system 100 for establishing a spectral profile of an audio signal according to an embodiment. The system 100 comprises a frame generator 101, a window function 102, a filter bank 103, a level detector 104 and a quantile generator 105.
[0024] The spectral profile of the input audio signal is the statistical distribution of the input audio signal level per frequency band calculated on the audio frame. The frame generator 101 divides the input audio signal s(t) into frames of samples of length frameLength (e.g., 4096 samples), wherein nOverlap samples (e.g., 2048 samples) overlap between consecutive frames. Hereinafter, the input audio signal at frame n is referred to as s(n). A window function 102 (e.g., fade-in, fade-out window) is applied to each frame n to ensure smooth interpolation between consecutive frames. In an embodiment, a Hanning window is used.
[0025] The filter bank 103 divides the windowed signal s(t) into Nb frequency bands (e.g., 83 frequency bands or sub-bands). The signal in the frequency band f at frame n is referred to as s(n, f). The level detector 104 calculates the level L of the input audio signal in each frequency band f at each frame n. in (n, f). E(n, f) is the energy of the input audio signal in the frequency band at a given frame n. Level is the energy converted to dB:
[0026] L in (n, f)=10·log10(E(n, f)).
[0027] In an embodiment, when calculating the energy of a new frame in each frequency band, the results may be smoothed over time by using a first order low pass filter, for example, as described by the following formula:
[0028] eSmooth(n, f)=eSmooth(n-1, f)·α+E(n, f)·(1-α),
[0029] The coefficient α may be selected from attack or release coefficients derived from different attack / release time constants, depending on whether the energy at the current frame is respectively greater or less than the smoothed value at the previous frame.
[0030] Figure 2 is an example of a quantile curve corresponding to a spectral profile generated by the system 100. The vertical axis is level (dBFS) and the horizontal axis is frequency (Hz). In each frequency band f, the xth quantile q of the level distribution x (f) is calculated as the value below which x% of the level on the frames in that band are contained. In this example, the spectral profile comprises 7 quantiles 207-201 (q 10 ,q 30 ,q 50 ,q 70 ,q 90 ,q 95 ,q 99). If the signal is multi-channel, the level in each frequency band at a given frame n can be calculated as, for example, the root mean square (RMS) average of the energy over the channels:
[0031]
[0032] Other choices such as taking the maximum over the channels will lead to similar results in general, but may be preferred in certain domains (e.g., applied to 5.1 audio tracks).
[0033] A. Building the outline (training)
[0034] During the training phase, a target profile is generated using system 100. The target profile is the spectral profile of a reference song or track or a collection of reference songs / tracks. A target profile can also be established for a vocal or instrument track, for example, by using a collection of male singer recordings, bass instrument recordings, etc. The term "song" or "track" is used generically to refer to each excerpt of a collection. If the target profile is generated from more than one song / track, the songs / tracks are normalized before calculating the profile so that they have the same loudness. In an embodiment, loudness is calculated as specified in the standard European Broadcasting Union Recommendation (EBU) R128. After normalization, statistics are established by analyzing the aggregate frames of all songs / tracks (as if all songs / tracks had been concatenated into one).
[0035] The system 100 can generate multiple target profiles, such as targets corresponding to different music genres, instrument tracks (e.g., vocals, bass, drums, etc.), movie stems (e.g., dialogue, effects, music, etc.), and store them for use in DynEQ processing as described with reference to FIG. 3. In some applications, various target profiles can be provided within the same group to allow the user to select and change the resulting output effect. For example, different vocal target profiles can be provided that represent different sound mixing styles or techniques used by content creators. In this way, the end user of the application can choose which target (or reference) profile to use to make creative decisions in the processing step.
[0036] B. Processing audio signals
[0037] Figure 3A 3 is a block diagram of an audio processing system 300 for applying DynEQ to an audio signal in an offline workflow according to an embodiment. Given a target profile and an input audio signal, the goal is to process the input audio signal so that its spectral profile (hereinafter referred to as the "input profile") matches the target profile. This operation includes calculating and applying a gain g(f,n) for each frequency band f in each frame n.
[0038] In the illustrated embodiment, the signal analyzer 301 analyzes the input audio signal and the background noise to establish an input profile and a noise profile. In offline mode, the calculation is as described in reference Figure 1 In online mode, the input profile is built while the song / track is playing. Online mode may result in some inaccuracies at the beginning of the song / track, but will converge to the offline version at the end of the song / track. In this case, the calculation of the gain for each frequency band may include additional conditions to minimize the potentially undesirable effects of the lack of information about the entire song / track during the initial frame.
[0039] When an estimate of the background noise profile is available (e.g., when a segment containing only noise is available and its profile is calculated), the signal analyzer 301 establishes an internal estimate of the SNR SNR(f,n) for each time-frequency slice. If a background noise estimate is not available, this step can be skipped by setting all SNRs to very large values (equivalent to assuming very low background noise) or values set by trial and error. The signal analyzer 301 also calculates an SNR score in each frequency band, SNRscore(f) is a real number in [0.0, 1.0] that indicates how close the quantile is to the quantile of the noise distribution. A value of 0.0 indicates a poor SNR (e.g., SNR<0.0), a value of 1.0 indicates a good SNR (e.g., SNR>12.0), and values in between are mapped to SNRscore(f) by linear interpolation.
[0040] In an embodiment, SNRscore(f) is calculated by applying a function F to SNR(f,n), where F maps the range of true values [-inf, +inf] to [0.0, 1.0]. An example of such a function F is:
[0041] F(SNR)=0.0, if SNR<0.0;
[0042] F(SNR) = 1.0, if SNR > 12.0; and
[0043] F(SNR)=SNR / 12.0, if 0.0<SNR<12.0; (linear interpolation)
[0044] Other functions that map [-inf, +inf] to [0.0, 1.0] may be used, such as the Sigmoid function.
[0045] The static gain generator 302 calculates the static gain g s (f) First, the target contour is shifted to have the same loudness as the input contour. In an embodiment, the target contour is shifted to have the same loudness as the input contour by shifting the target contour to have the same loudness as the input contour. 90) to calculate the loudness. This step ensures that the algorithm operates independently of the overall digital level of the input. As a result, all target quantiles are shifted: Q x,target (f) = q x,target (f)+<q 90,input (f)-q 90,tartet (f)>, where <...> represents the average operation over all frequency bands, where the average is obtained after the quantiles are expressed in energy levels. In each frequency band f, the quantile q between the shift target and the input 90 The difference is calculated as:
[0046] g diff (f) = Q 90,target (f)-q 90,input (f).
[0047] Then, the static gain generator 302 calculates meanGainDdB, i.e., the average value of gdiff(f) in the frequency band with a sufficiently good SNR score (e.g., SNRscore>0.3). Finally, the static gain is calculated as:
[0048] g s (f)=meanGainDdB+SNRscore(f)·(g diff (f)-meanGainDdB).
[0049] In an embodiment, the gains may be smoothed over certain frequency bands, primarily to avoid over-equalizing very sparse content in the frequency domain. For example, in a song where a bass instrument always plays the same note, a flat target profile would attempt to reduce that note and boost the surrounding empty frequency bands. This can be mitigated by averaging the gains so that in the low frequency band (e.g., f < 150 Hz), the gain is the average of the nearest neighbors in frequency, in the low-mid frequency band (e.g., 150 Hz < f < 250 Hz), the gain is the average of, for example, six neighbors' gains, and in the mid-high range (e.g., f > 250 Hz), the gain is the average of, for example, eight neighbors' gains. In summary, static gains are applied to all frames except for frequency bands where the SNR is bad, with the intention of adjusting the overall spectral balance of the song to the target.
[0050] The dynamic gain generator 303 calculates the dynamic gain g d (f, n). At each frame n and frequency band f, calculate the input level L in (n, f), and calculate its position in the input distribution ( Figure 4 The dynamic gain is the energy required to bring the input energy to its corresponding point in the statistical distribution of the target profile ( Figure 4 The amount of gain required for the star 402 on the right. 10or higher than q 99 The levels are clamped to q 10 and q 99 The desired output level L out (n, f) is such that the processed frame and frequency band will fall at the corresponding position of the output distribution (star 402). The desired dynamic gain g d (n, f) is calculated as:
[0051] g d (n, f) = L out (n, f)-L in (n, f)-g s (f)
[0052] Among them, g s (f) is the previously calculated static gain for a given frequency band f. This ensures that the resulting distribution of the processed input signal will match the target distribution. In an embodiment, SNRscore(f) is used to reduce the dynamic gain in the same way as the static gain. For example, in calculating the dynamic gain g d After (n, f), multiply it by SNRscore(f):
[0053] g d (n, f) = SNRscore(f)*g d (n, f).
[0054] If the dynamic range of the input profile is very limited (e.g., a constant, stable signal), mapping the input profile to the target profile may result in excessive and unwanted gain changes over time. To avoid this overexpansion, the gain is calculated by subtracting its corresponding q 90 and q 10 The dynamic range (DR) of the input contour and the target contour is calculated by in , DR target ), and defines the maximum expected dilation rate maxRatio. When the difference between the dynamic range of the input contour and the target contour exceeds the maximum expected dilation rate (DR in / DR target >maxRatio), the dynamic gain g d (n, f) is set to 0 dB. In the frequency band between okRatio and maxRatio, the gain is multiplied by (DR in / DR target -maxRatio) / (okRatiomaxRatio)
[0055] In an embodiment, maxRatio and okRatio are constants determined empirically. For example, maxRatio=10 corresponds approximately to 20 dB, and okRatio=5 corresponds approximately to 15 dB. If the dynamic range expands within a frequency band less than 15 dB, gain is applied. If the dynamic range expands by more than 20 dB, no gain is applied. If the dynamic range is between 15 dB and 20 dB, interpolation is applied between full gain and zero gain.
[0056] The gain combiner 304 combines the static gain and the dynamic gain. To avoid over-boosting, the gain can be limited (e.g., to +10 dB). In an embodiment, the amount of EQ for each band can be tuned by the user by specifying dynEQamount and staticEQamount (both between 0.0 and 1.0), where a value of 1.0 retains the calculated gain, 0.0 sets the gain to 0.0, and values in between reduce the EQ amount proportionally to the value. The final gain amount for band f and frame n thus becomes:
[0057] g(n,f)=dynEQamount·g d (n,f)+staticEQamount·g s (f).
[0058] In an embodiment, the final gain is smoothed over certain frequency bands to avoid potential artifacts due to abrupt changes in gain over frequency.
[0059] After calculating the final gain, the audio processor 305 applies the gain to the input audio signal. The processing performed by the system 300 described above is based on the analysis of the entire song / track, so it is suitable for offline workflows where the entire content has been recorded before processing.
[0060] Figure 3B 300 is a block diagram of an audio processing system 300 for applying DynEQ to an audio signal in an online workflow according to an embodiment. In this embodiment, the process can be adapted for an online workflow in which the input profile is initialized to a suitable profile and updated by an input profile updater 306 while the song / track is playing. The initialized profile can be determined in a variety of ways depending on the application. Examples include selecting a default profile for a music genre (e.g., rock, acoustic, classical, etc.), for a default vocal track, or by analyzing an initial, possibly brief, sample recording, such as a sound check, before the song begins. In such an embodiment, some inaccuracies may occur at the beginning of the performance, but converge to the offline version at the end of the song / track.
[0061] C. Further processing
[0062] The concept of adapting the content to a target frequency response and dynamic range defined by the quantiles of the target profile naturally allows for meaningful advanced modifications on top of DynEQ's default results. For example, if a more compressed dynamic range is desired, it is sufficient to pre-process the target quantiles, shifting them vertically so that the spacing between quantiles is reduced. Similarly, for a larger dynamic range, it is sufficient to increase the spacing between quantiles. Figure 5A It shows that previously Figure 2 The original target profile is shown in Figure 5B A compressed version of the target profile is shown, showing that the quantile curves are vertically shifted, thereby reducing the spacing between the quantile curves.
[0063] If a "brighter" sound is desired, it is sufficient to increase the amount of high frequencies in the target profile. Figure 6 The original target quantile curve 601 and the treble boost 602 are shown. Adjusting the amount of high or low frequencies allows the user's fine-tuning to be expressed and captured by the pre-processing target profile, creating a modified version. This technique provides predictable and repeatable changes regardless of the selected target profile and the input material processed.
[0064] In an embodiment, it is desirable to automatically select the most appropriate target profile among multiple possibilities. Figure 7 As shown, the target quantile curves 701 to 703 calculated from different types may differ significantly. When processing a song / track, a mismatch in the target quantile curves may result in excessive boosting in areas where the song / track has no meaningful signal. As an example, a rock target profile may have a large amount of bass energy. If an acoustic or vocal solo is processed to match such a target profile, unnecessary amounts of EQ may result in low frequencies. To avoid such a mismatch, the most appropriate target profile may be automatically selected. In an embodiment, a target profile is selected that maximizes the target q within a certain frequency range, such as 60 Hz < f < 500 Hz. 90 Q with song / track 90 The target contour with the smallest mean square error between them.
[0065] The processing described so far is presented in the context of music mastering, where corrections are made to a single file, which is typically a mix of multiple sources (instruments, tracks, etc.). However, DynEQ can also be applied to each (or some) of the individual tracks that contribute to the mix. The process will remain the same, but a specific target profile can be defined for each track (e.g., by creating a target profile for each instrument or source in the song). This embodiment provides the following advantages: 1) more control during the automatic mixing process; 2) optimized EQ / DRC for each instrument; 3) the user has the opportunity to make advanced fine-tuning to each instrument independently (e.g., to get brighter, more compressed drums); and 4) the opportunity to map a single advanced user fine-tuning to a targeted specific fine-tuning for each instrument. For example, selecting the "60s Rock" style will not only apply EQ and DRC in the final mix, but will actually process each instrument in a way that best suits that genre, thereby more closely matching the desired style.
[0066] Figure 8 8 is a flow chart of a process 800 for establishing a spectral profile of an audio signal according to an embodiment. The process 800 may be performed by Fig.10 An audio processing unit is implemented.
[0067] Process 800 may begin by dividing an input audio signal into n frames (801). For example, the audio signal s(t) may be divided into frames of length frameLength samples (e.g., 4096 samples), where consecutive frames overlap by nOverlap samples (e.g., 2048 samples). In an embodiment, a window function (e.g., a Hanning window) is applied to the frames to ensure smooth interpolation between consecutive frames.
[0068] The process 800 continues by dividing each frame n of the input audio signal into Nb frequency bands f (802). For example, the filter bank may divide the windowed signal s(t) into Nb frequency bands (eg, 83 frequency bands or sub-bands).
[0069] Process 800 continues by calculating the input level of the input audio signal in each frequency band f of frame n (803). For example, the level detector may calculate the level L of the input audio signal in each frequency band f of each frame n. in (n, f). In an embodiment, the level is energy E(n, f) converted to dB. In an embodiment, the level is amplitude or loudness.
[0070] Process 800 continues by calculating a plurality of quantile curves of the input level distribution in frequency band f (804). For example, in each frequency band f, the xth quantile q of the input level distribution x(f) is calculated as the value below which x% of the level over frames in that frequency band are included. If the signal is multi-channel, the level in each frequency band at a given frame is derived from the levels of the individual channels, such as by using the root mean square (RMS) average of the energy over the channels or the maximum energy over the channels.
[0071] Fig. 9 900 is a flow chart of a DynEQ process 900 according to an embodiment. The process 900 may be Fig.10 The process 900 is implemented by an audio processing unit of . For each frame n, the process 900 calculates the input level of the input audio signal in each frequency band f (901), and then calculates the input audio level distribution in each frequency band f (902), the input audio level distribution including a plurality of input quantile curves. The process 900 continues to calculate a static gain (903) for each frequency band f based at least in part on a mapping of the input quantile curve of the input audio level distribution to a reference audio level distribution including a target quantile curve calculated from one or more reference audio signals, as described with reference to FIG. 3. In an embodiment, the mapping is based on matching one or more statistical moments of the input audio level distribution with moments of the target level distribution, such as matching means or standard deviations, possibly enhanced with higher-order moments, etc.
[0072] Process 900 continues by calculating a dynamic gain for each frequency band f based at least in part on the static gain, the input level, and the specified output level for frequency band f (904), as described with reference to FIG 3. Process 900 continues by calculating a final gain for each frequency band f by combining a portion of the static gain and a portion of the dynamic gain (905), and applying the final gain to each frequency band f of the input audio signal (906), as described with reference to FIG 3.
[0073] After the final gain has been applied to each frequency band f, the audio signal can be reconstructed by transforming back to the time domain and using an overlap and add technique or any other technique known to those skilled in the art of audio. The reconstructed audio signal can then be streamed or played back on an audio playback device (e.g., through speakers or headphones / earbuds of a stereo or multi-channel audio system or a media player application installed on a mobile device).
[0074] Example system architecture
[0075] Fig.10 Is used for execution reference Figures 1 to 9 1000 for describing the process. Other architectures are possible, including architectures with more or fewer components. In some embodiments, the audio processing unit 1000 includes one or more processors 1002 (e.g., a dual-core processor). The computer readable medium 1012 includes a processor 1002, a digital signal processor, one or more output devices 1004 (e.g., an LCD), one or more network interfaces 1006 (e.g., a physical port, a wireless transceiver), one or more input devices 1008 (e.g., a mouse, a keyboard, a touch-sensitive display), and one or more computer-readable media 1012 (e.g., RAM, ROM, SDRAM, a hard disk, an optical disk, flash memory, etc.). These components can exchange communications and data through communication channels 1010 (e.g., a bus), which can utilize various hardware and software to facilitate the transfer of data and control signals between components. The term "computer-readable medium" refers to the medium that participates in providing instructions to the processor 1002 for execution, including but not limited to non-volatile media (e.g., optical or magnetic disks), volatile media (e.g., memory), and transmission media. Transmission media include but are not limited to coaxial cables, copper wire, and optical fiber.
[0076] The computer readable medium 1012 may further include operating system instructions 1014 (e.g., The operating system 1014 may be multi-user, multi-processing, multi-tasking, multi-threaded, real-time, etc. The operating system 1014 performs basic tasks including, but not limited to: identifying input from the network interface 1006 and / or the device 1008 and providing output to these network interfaces and / or devices; tracking and managing files and directories on the computer-readable medium 1012 (e.g., memory or storage device); controlling peripheral devices; and managing traffic on one or more communication channels 1010. The communication module 1016 includes a software stack (e.g., a TCP / IP stack) for communicating with other devices and server computers over a network (e.g., the Internet). The DynEQ module 1018 includes computer instructions that, when executed, cause the processor 1002 to perform the reference Figures 1 to 9 Describe the process.
[0077] The described features may advantageously be implemented in one or more computer programs executed on a programmable system, the programmable system comprising at least one programmable processor coupled to receive data and instructions from and send data and instructions to a data storage system, at least one input device, and at least one output device. A computer program is a set of instructions that can be used, directly or indirectly, in a computer to perform some activity or bring about some result. A computer program may be written in any form of programming language, including compiled or interpreted languages (e.g., Objective-C, Java), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, browser-based web application, or other unit suitable for use in a computing environment.
[0078] As examples, suitable processors for executing instruction programs include both general-purpose microprocessors and special-purpose microprocessors, as well as the sole processor or one of multiple processors or cores of any type of computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a processor for executing instructions and one or more memories for storing instructions and data. Typically, a computer will also include one or more mass storage devices for storing data files, or be operably coupled to communicate with it; such devices include magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and optical disks. Storage devices suitable for tangibly embodying computer program instructions and data include all forms of non-volatile memory, which include, as examples, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. Both the processor and the memory can be supplemented by or incorporated into an ASIC (Application Specific Integrated Circuit).
[0079] To provide interaction with a user, features may be implemented on a computer having a display device, such as a CRT (cathode ray tube) monitor or an LCD (liquid crystal display) monitor or a retinal display device for displaying information to a user. The computer may have a touch surface input device (e.g., a touch screen) or a keyboard and a pointing device such as a mouse or trackball through which a user can provide input to the computer. The computer may have a voice input device for receiving voice commands from a user.
[0080] Features may be implemented in a computer system that includes back-end components such as a data server, or includes middleware components such as an application server or an Internet server, or includes front-end components such as a client computer with a graphical user interface or an Internet browser, or any combination thereof. The components of the system may be connected by any digital data communication form or medium, such as a communication network. Examples of communication networks include, for example, a LAN, a WAN, and the computers and networks that form the Internet.
[0081] The computing system may include a client and a server. The client and the server are usually remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by means of computer programs that run on the respective computers and have a client-server relationship with each other. In some embodiments, the server transmits data (e.g., an HTML page) to the client device (e.g., for the purpose of displaying data to a user interacting with the client device and receiving user input from the user). Data generated at the client device (e.g., the result of user interaction) can be received from the client device at the server.
[0082] A system of one or more computers may be configured to perform a specific action by having software, firmware, hardware, or a combination thereof installed on the system that causes the system to perform the action when in operation. One or more computer programs may be configured to perform a specific action by including instructions that, when executed by a data processing device, cause the device to perform the action.
[0083] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of any invention or thing that may be claimed, but rather as descriptions of features specific to a particular embodiment of a particular invention. Certain features described in this specification in the context of separate embodiments may also be implemented in a single embodiment in combination. Conversely, the various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although features may be described above as working in certain combinations and even initially stated as such, one or more features of the claimed combination may be removed from the combination in some cases, and the claimed combination may involve a sub-combination or a variant of a sub-combination.
[0084] Similarly, although the operations are depicted in a specific order in the accompanying drawings, this should not be understood as requiring such operations to be performed in the specific order shown or in an ordered order, or all the operations shown can be performed to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of the various system components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can usually be integrated together in a single software product or encapsulated in multiple software products.
[0085] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions cited in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the ordered order to achieve the desired results. In some embodiments, multitasking and parallel processing may be advantageous.
[0086] A number of embodiments of the present invention have been described. However, it will be appreciated that various modifications can be made without departing from the spirit and scope of the invention.
[0087] Various aspects of the present invention may be understood from the following enumerated example embodiments (EEE):
[0088] 1. A method comprising:
[0089] The audio processing unit divides the input audio signal into n frames, where n is a positive integer greater than 1;
[0090] The audio processing unit divides each frame of the input audio signal into Nb frequency bands, where Nb is a positive integer greater than 1;
[0091] For each frame n:
[0092] The audio processing unit calculates the input level of the input audio signal in each frequency band f to obtain an input audio level distribution of the input audio signal;
[0093] calculating, by the audio processing unit, a gain for each frequency band f based at least in part on a mapping of one or more properties of the input audio level distribution to a reference audio level distribution; and
[0094] Each calculated gain for each frequency band f is applied by the audio processing unit to each corresponding frequency band f of the input audio signal.
[0095] 2. The method according to EEE 1, further comprising:
[0096] In each frame n, and after applying the calculated gains, the input audio signal is reconstructed back to the time domain.
[0097] 3. The method according to EEE 1, wherein the gain for each frequency band f is calculated by first calculating a static gain, then calculating a dynamic gain for each frequency band f based on the static gain, the input level, the input audio level distribution and the reference audio level distribution, and then calculating a final gain for each frequency band f by combining a portion of the static gain and a portion of the dynamic gain.
[0098] 4. The method according to EEE 3, further comprising:
[0099] In each frame n, the final gain is applied to the input audio signal, and then the input audio signal is reconstructed back to the time domain.
[0100] 5. The method according to EEE 3, further comprising:
[0101] At least one of the static gain, the dynamic gain, or the final gain over a frequency band is smoothed.
[0102] 6. The method according to EEE 1, wherein the mapping of the input audio level distribution to the reference audio level distribution is based on matching an input quantile curve of the input audio level distribution with a target quantile curve of the reference audio level distribution.
[0103] 7. The method according to EEE 6, further comprising:
[0104] In each frame n, the input quantile curve of the distribution of the input level in each frequency band f is updated by the audio processing unit.
[0105] 8. The method according to EEE 6 or 7, wherein for each frequency band f, an xth input quantile curve is calculated as a value below which x% of the input levels over Nb frames in frequency band f are contained.
[0106] 9. The method according to EEE 6 or 7, wherein the target quantile curve is determined after averaging one or more reference audio signals sharing a given characteristic.
[0107] 10. The method according to EEE 1, wherein the mapping of the input audio level distribution to the reference audio level distribution is based on matching one or more moments of the input audio level distribution with moments of the reference audio level distribution.
[0108] 11. The method according to EEE 1, after dividing the input audio signal into a plurality of frames, applying a window function to each frame n.
[0109] 12. The method according to EEE 1, wherein the calculated input level of the input audio signal is one of energy, amplitude, decibel or loudness level.
[0110] 13. The method according to EEE 12, further comprising:
[0111] The calculated energy, amplitude, decibel or loudness level in each frequency band f of each frame n is smoothed based on whether the calculated energy, amplitude or loudness level is greater or less than the energy, amplitude or loudness level in the previous frame.
[0112] 14. The method according to EEE 1, wherein the input audio signal is a multi-channel audio signal, and an input level of the input audio signal in each frequency band f is determined according to energy of each channel.
[0113] 15. The method according to EEE 14, wherein the input audio level is calculated by using a root mean square average or selecting a maximum energy.
[0114] 16. The method according to EEE 1, wherein the reference audio level distribution is calculated on one or more reference audio signals within the same music genre.
[0115] 17. The method according to EEE 1, wherein the reference audio level distribution is calculated on one or more reference audio signals including at least one of dialogue, effects or music.
[0116] 18. The method according to EEE 1, wherein the reference audio level distribution is calculated on one or more reference audio signals within an instrument or instrument track of the same type.
[0117] 19. The method of claim 2, wherein calculating a static gain based at least in part on a mapping of the input quantile curve to the target quantile curve further comprises:
[0118] Determining a background noise spectrum profile of the input audio signal;
[0119] estimating a signal-to-noise ratio (SNR) for each time-frequency slice of the input audio signal;
[0120] Calculating an SNR score for each frequency band f, the SNR score representing the difference between the input quantile curve and the noise quantile curve;
[0121] The difference between the x-th input quantile curve and the corresponding x-th target quantile curve is calculated using the following formula:
[0122] g diff (f) = Q x,target (f)-q x,input (f);
[0123] Calculate, for each frequency band f, the average static gain for which the SNR score is greater than a specified threshold; and
[0124] The static gain is calculated for each frequency band f using the following formula:
[0125] g s (f)=meanGainDdB+SNRscore(f)·(gdiff(f)-meanGaimnDaB),
[0126] where meanGainDdB is the mean static gain, SNRscore(f) is the SNR score for frequency band f, and g diff (f) is the difference between the xth input quantile curve and the corresponding xth target quantile curve for frequency band f.
[0127] 20. The method according to EEE 19, wherein the static gain is smoothed over one or more frequency bands.
[0128] 21. The method according to EEE 19, wherein the dynamic gain is calculated using the following formula:
[0129] g d (n, f) = SNRscore(f)*(L out (n, f)-L in (n, f)-g s (f)),
[0130] Among them, g s (f) is the static gain of frequency band f, L out (n, f) is the specified output level for frequency band f of frame n, and L in (n, f) is the input level of frequency band f in frame n.
[0131] 22. The method according to EEE21, further comprising:
[0132] determining a first dynamic range of the input quantile curve in each frequency band f;
[0133] determining a second dynamic range of the target quantile curve in each frequency band f;
[0134] calculating an expansion rate as a ratio of the first dynamic range to the second dynamic range;
[0135] defining a maximum desired expansion rate; and
[0136] For frequency bands where the dilation rate exceeds the maximum desired dilation rate, the dynamic gain is set to zero.
[0137] 23. The method according to EEE 19, wherein the final gain for each frequency band f of frame n comprises:
[0138] g(n,f)=dynEQamount·gd (n,f)+staticEQamount·g s (f)
[0139] Among them, dynEQamount and staticEQamount are real numbers between 0.0 and 1.0, respectively determining the dynamic gain g d (n, f) and static gain g s (f) Contribution to the final gain g(n,f).
[0140] 24. The method according to EEE 6, further comprising:
[0141] The target quantile curves are processed to increase or decrease the spacing between the target quantile curves based on a desired dynamic range.
[0142] 25. The method according to EEE 6, further comprising:
[0143] The target quantile curve is modified based on a desired frequency spectrum.
[0144] 26. The method according to EEE 1, further comprising:
[0145] Selects the target quantile curve that minimizes the mean square error between the xth target quantile curve and the corresponding xth input quantile curve in the specified frequency region.
[0146] 27. An audio processing unit, comprising one or more processors and a memory storing instructions, wherein when the instructions are executed by the one or more processors, the one or more processors execute the method described in any one of EEEs 1 to 26.
[0147] 28. A non-transitory computer-readable storage medium storing instructions, which, when executed by one or more processors, cause the one or more processors to perform the method of any one of EEEs 1 to 26.
Claims
1. An audio processing method, include: The audio processing unit divides the input audio signal into n frames, where n is a positive integer greater than 1; The audio processing unit divides each frame of the input audio signal into Nb frequency bands, where Nb is a positive integer greater than 1; For each frame n: The audio processing unit calculates the input level of the input audio signal in each frequency band f to obtain an input audio level distribution of the input audio signal; calculating, by the audio processing unit, a gain for each frequency band f based at least in part on a mapping of one or more properties of the input audio level distribution to a reference audio level distribution; applying, by the audio processing unit, each calculated gain for each frequency band f to each corresponding frequency band f of the input audio signal to form a modified input audio signal; and The modified input audio signal is reconstructed back into the time domain, wherein a gain for each frequency band f is calculated by first calculating a static gain, then calculating a dynamic gain for each frequency band f based on the static gain, the input level, the input audio level distribution, and the reference audio level distribution, and then calculating a final gain for each frequency band f by combining a portion of the static gain and a portion of the dynamic gain.
2. The method of claim 1, further comprising selecting the target profile from a set of pre-stored target profiles.
3. The method according to claim 1, further comprising: include: At least one of the static gain, the dynamic gain, or the final gain over a frequency band is smoothed.
4. The method according to any one of claims 1 to 3, in, The mapping of the input audio level distribution to the reference audio level distribution is based on a matching of an input quantile curve of the input audio level distribution and a target quantile curve of the reference audio level distribution.
5. The method according to claim 4, in, For each frequency band f, the xth input quantile curve is calculated as the value below which x% of the input levels of Nb frames in said frequency band f are contained.
6. The method according to claim 4, in, The target quantile curve is determined after averaging one or more reference audio signals sharing a given characteristic.
7. The method according to any one of claims 1 to 3, in, The calculated input level of the input audio signal is one of energy, amplitude, decibel or loudness level.
8. The method according to claim 7, further comprising: include: The calculated energy, amplitude, decibel or loudness level in each frequency band f of each frame n is smoothed based on whether the calculated energy, amplitude or loudness level is greater or less than the energy, amplitude or loudness level in the previous frame.
9. The method of any one of claims 1 to 3, wherein calculating the gain for each frequency band f comprises calculating a static gain based at least in part on a mapping of an input quantile curve to a target quantile curve, and in, Calculating a static gain based at least in part on the mapping of the input quantile curve to the target quantile curve further comprises: Determining a background noise spectrum profile of the input audio signal; estimating a signal-to-noise ratio (SNR) for each time-frequency slice of the input audio signal; Calculating an SNR score for each frequency band f, the SNR score representing the difference between the input quantile curve and the noise quantile curve; The difference g between the xth input quantile curve and the corresponding xth target quantile curve is calculated using the following formula: diff (f): g diff (f)=Q x,target (f)-q x,input (f); Where Q x,target (f) is the shift target for frequency band f, and q x,input (f) is the input for frequency band f, Calculate, for each frequency band f, the average static gain for which the SNR score is greater than a specified threshold; and The static gain is calculated for each frequency band f using the following formula: g s (f)=meanGainDdB+SNRscore(f)·(g diff (f)-meanGainDdB), Wherein, meanGainDdB is the mean static gain, SNRscore(f) is the SNR score for frequency band f, and gdiff(f) is the difference between the xth input quantile curve and the corresponding xth target quantile curve for frequency band f.
10. The method according to claim 9, in, The dynamic gain is calculated using the following formula: g d (n,f)=SNRscore(f)*(L out (n,f)-L in (n,f)-g s (f)), Among them, g s (f) is the static gain in frequency band f, L out (n, f) is the specified output level for frequency band f of frame n, and L in (n, f) is the input level of frequency band f in frame n.
11. The method according to claim 10, further comprising: include: determining a first dynamic range of the input quantile curve in each frequency band f; determining a second dynamic range of the target quantile curve in each frequency band f; calculating an expansion rate as a ratio of the first dynamic range to the second dynamic range; Define the maximum expected expansion rate; as well as For frequency bands where the dilation rate exceeds the maximum desired dilation rate, the dynamic gain is set to zero.
12. The method according to claim 9, in, The final gain for each frequency band f at frame n consists of: g(n,f)=dynEQamount·g d (n,f)+staticEQamount·g s (f), Among them, dynEQamount and staticEQamount are real numbers between 0.0 and 1.0, respectively determining the dynamic gain g d (n, f) and static gain g s (f) Contribution to the final gain g(n,f).
13. The method according to any one of claims 1 to 3, further comprising: include: Based on the desired dynamic range, the target quantile curves are processed to increase or decrease the spacing between the target quantile curves.
14. The method according to any one of claims 1 to 3, further comprising: include: Modify the target quantile curve based on the desired spectrum.
15. An audio processing device, include: one or more processors; as well as A memory storing instructions which, when executed by the one or more processors, cause the one or more processors to perform a method according to any one of claims 1-14.
16. A non-transitory computer-readable storage medium storing instructions which, when executed by one or more processors, cause the one or more processors to perform the method according to any one of claims 1-14.
17. A computer program product comprising instructions which, when executed by one or more processors, cause the one or more processors to perform the method according to any one of claims 1-14.
