Audio signal processing method, device, equipment and storage medium

By obtaining the sound pressure level difference relationship of the audio signal, each frequency signal is compensated, which solves the problem of uneven loudness caused by equal level adjustment and improves the listening experience of the audio signal.

CN111966322BActive Publication Date: 2024-09-10GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202010897097.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-31
Publication Date
2024-09-10
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

The existing audio signal volume adjustment method causes uneven loudness perception of different frequency components through equal level adjustment, which reduces the listening experience.

Method used

By determining the volume of the audio signal to be processed, the sound pressure level difference relationship is obtained, and each frequency signal is compensated according to this relationship to obtain an audio signal with enhanced loudness, ensuring that the loudness of each frequency component is consistent under different volume conditions.

Benefits of technology

It improves the user's listening experience and achieves consistent loudness experience by performing personalized compensation for different frequency components for audio signals of different volumes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111966322B
    Figure CN111966322B
Patent Text Reader

Abstract

The embodiment of the present application provides an audio signal processing method, device, equipment and storage medium, the method comprising: determining the volume of an audio signal to be processed; obtaining a sound pressure level difference relationship corresponding to the volume according to the volume of the audio signal to be processed, the sound pressure level difference relationship representing the sound pressure level difference between the actual loudness of the volume and the reference loudness at different frequencies; and compensating the signal corresponding to each frequency in the audio signal to be processed according to the sound pressure level difference relationship to obtain an audio signal with enhanced loudness. This embodiment enables users to have the same loudness perception of different frequency components in the audio signal under various volume conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer software technology, and in particular to an audio signal processing method, device, equipment and storage medium. Background Art

[0002] Loudness is the subjective perception of sound intensity. Generally speaking, for a given frequency, the louder the sound intensity, the greater the loudness. However, loudness is related to frequency. For the same sound intensity, different frequencies may also produce different loudness. The relationship between pure tone frequency and sound pressure level under the condition that typical listeners perceive the same loudness is measured through a large number of experiments, which is the equal loudness curve, as shown in the figure below. Figure 1 As shown, it fully describes the sensitivity of the human ear to sounds of different frequencies.

[0003] The goal of adjusting the volume of an audio signal is to change the loudness of the audio signal. Conventional digital audio volume adjustment methods are usually equal-level adjustment, that is, the sound pressure level of all frequency bands decreases or increases with the same amplitude. This method allows the low, medium, and high frequency components in the audio to be scaled in the same proportion. However, as can be seen from the equal-loudness curve, the human ear has different response sensitivities to different frequency components. If the volume is scaled in an equal-level manner, that is, all frequency components are subjected to the same sound pressure change, the human ear will feel the loudness of certain frequency components in the audio worse, thereby reducing the listener's subjective listening experience. Summary of the invention

[0004] In view of this, the present application provides an audio signal processing method, apparatus, device and storage medium.

[0005] According to a first aspect of an embodiment of the present application, there is provided an audio signal processing method, the method comprising:

[0006] determining the volume of the audio signal to be processed;

[0007] According to the volume of the audio signal to be processed, obtaining a sound pressure level difference relationship corresponding to the volume, wherein the sound pressure level difference relationship represents a sound pressure level difference between an actual loudness of the volume and a reference loudness at different frequencies;

[0008] The signals corresponding to the respective frequencies in the audio signal to be processed are compensated respectively according to the sound pressure level difference relationship to obtain an audio signal with enhanced loudness.

[0009] In one embodiment, the sound pressure level difference relationship is determined according to the difference between the sound pressure level of the actual loudness of the volume at different frequencies and the sound pressure level of the reference loudness at different frequencies.

[0010] In one embodiment, the sound pressure level difference relationship is determined according to the difference between a frequency-sound pressure level curve of the actual loudness of the volume and a frequency-sound pressure level curve of the reference loudness, wherein the frequency-sound pressure level curve indicates the relationship between frequency and sound pressure level at equal loudness.

[0011] In one embodiment, the sound pressure level difference relationship includes a compensation amplitude spectrum in the frequency domain, wherein the compensation amplitude spectrum is determined according to the difference between the amplitude spectrum of the actual loudness of the volume and the amplitude spectrum of the reference loudness, and the amplitude spectrum represents the frequency-sound pressure level curve in the frequency domain.

[0012] In one embodiment, the compensating the signal corresponding to each frequency in the audio signal to be processed respectively according to the sound pressure level difference relationship includes:

[0013] Transforming the audio signal to be processed from the time domain to the frequency domain, and obtaining an amplitude spectrum and a phase spectrum of the audio signal to be processed in the frequency domain; the amplitude spectrum reflects the amplitude of the audio signal to be processed at each frequency;

[0014] Compensating the amplitudes at the various frequencies according to the sound pressure level difference relationship to obtain a compensated amplitude spectrum;

[0015] According to the compensated amplitude spectrum and the phase spectrum at each frequency, the frequency domain is transformed into the time domain to obtain the loudness-enhanced audio signal.

[0016] In one embodiment, the sound pressure level difference relationship includes a compensated amplitude spectrum obtained according to a difference between an amplitude spectrum of an actual loudness of the volume and an amplitude spectrum of a reference loudness;

[0017] The compensating the amplitudes at the various frequencies according to the sound pressure level difference relationship comprises:

[0018] Obtaining the amplitude compensation gain corresponding to each frequency according to the compensation amplitude spectrum in the frequency domain;

[0019] The amplitude at each frequency is compensated respectively according to the amplitude compensation gain corresponding to each frequency.

[0020] In one embodiment, the compensating the signal corresponding to each frequency in the audio signal to be processed respectively according to the sound pressure level difference relationship includes:

[0021] The audio signal to be processed is divided into frames, and each frame signal is transformed from the time domain to the frequency domain to obtain an amplitude spectrum and a phase spectrum of each frame signal in the frequency domain; the amplitude spectrum reflects the amplitude of the frame signal at each frequency;

[0022] Compensating the amplitudes at the various frequencies according to the sound pressure level difference relationship to obtain a compensated amplitude spectrum;

[0023] According to the compensated amplitude spectrum and the phase spectrum, transform from the frequency domain to the time domain to obtain compensated frame signals;

[0024] The compensated frame signals are overlapped and spliced ​​to obtain the loudness-enhanced audio signal.

[0025] In one embodiment, the sound pressure level difference relationship includes a compensated amplitude spectrum obtained according to a difference between an amplitude spectrum of an actual loudness of the volume and an amplitude spectrum of a reference loudness;

[0026] The compensating the signals corresponding to the respective frequencies in the audio signal to be processed respectively according to the sound pressure level difference relationship comprises:

[0027] Transforming the compensation amplitude spectrum into the time domain, and obtaining an FIR filter according to the transformed result;

[0028] The FIR filter is used to filter the signals corresponding to each frequency in the audio signal to be processed.

[0029] In one embodiment, obtaining the sound pressure level difference relationship corresponding to the volume of the audio signal to be processed includes:

[0030] According to the volume of the audio signal to be processed, obtaining a high-shelf filter parameter and a low-shelf filter parameter indicated by a sound pressure level difference relationship corresponding to the volume;

[0031] The compensating the signals corresponding to the respective frequencies in the audio signal to be processed respectively according to the sound pressure level difference relationship comprises:

[0032] determining a high shelf filter at the volume according to the high shelf filter parameters; and determining a low shelf filter at the volume according to the low shelf filter parameters;

[0033] The audio signal to be processed is filtered according to the high shelf filter and the low shelf filter to obtain an audio signal with enhanced loudness.

[0034] In one embodiment, the high shelf filter parameters and the low shelf filter parameters are determined according to a difference relationship between sound pressure levels corresponding to the volume.

[0035] In one embodiment, the sound pressure level difference relationship includes a compensation amplitude spectrum in the frequency domain;

[0036] The high-shelf filter parameters and the low-shelf filter parameters indicated by the sound pressure level difference relationship corresponding to the volume are obtained by the following steps:

[0037] Determine a high shelf filter coefficient and a low shelf filter coefficient at the volume, wherein the coefficients include at least one of the following: a gain coefficient, a cutoff frequency, and a slope coefficient;

[0038] Determining the high-shelf filter parameters according to the high-shelf filter coefficients to obtain the amplitude spectrum of the high-shelf filter in the frequency domain; and determining the low-shelf filter parameters according to the low-shelf filter coefficients to obtain the amplitude spectrum of the low-shelf filter in the frequency domain;

[0039] According to the differences between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensated amplitude spectrum, the high shelf filter coefficients and the low shelf filter coefficients are adjusted to obtain the high shelf filter parameters and the low shelf filter parameters of the volume indication.

[0040] In one embodiment, determining the high shelf filter coefficient and the low shelf filter coefficient at the volume includes:

[0041] A high shelf filter coefficient at the volume is obtained from a first preset range, and a low shelf filter coefficient at the volume is obtained from a second preset range.

[0042] In one embodiment, adjusting the high shelf filter coefficients and the low shelf filter coefficients according to differences between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensation amplitude spectrum, respectively, comprises:

[0043] If the errors between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensated amplitude spectrum are respectively greater than a preset difference, re-determine the high shelf filter coefficient and the low shelf filter coefficient at the volume; wherein the re-determined high shelf filter coefficient and the low shelf filter coefficient are different from the previously determined high shelf filter coefficient and the low shelf filter coefficient;

[0044] If the errors between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensated amplitude spectrum are respectively less than or equal to the preset difference, the high shelf filter parameters and the low shelf filter parameters determined this time are obtained.

[0045] In one embodiment, the reference loudness is determined according to a sound pressure level corresponding to a frequency of 1 kHz at a reference volume.

[0046] In one embodiment, the method further comprises:

[0047] If the sound pressure level corresponding to the frequency of 1kHz at the reference volume is greater than a preset threshold, the reference loudness is determined according to the preset threshold; the preset threshold represents the maximum sound pressure level that the user can withstand;

[0048] If the sound pressure level corresponding to the frequency of 1 kHz at the reference volume is less than or equal to the preset threshold, the reference loudness is determined according to the sound pressure level corresponding to the frequency of 1 kHz at the reference volume.

[0049] In one embodiment, the actual loudness at different volumes is obtained by:

[0050] Determine the actual loudness of the minimum volume according to the sound pressure level corresponding to the frequency of 1 kHz at the minimum volume; and determine the actual loudness of the maximum volume according to the sound pressure level corresponding to the frequency of 1 kHz at the maximum volume;

[0051] The actual loudness of other volumes between the minimum volume and the maximum volume is determined according to the actual loudness of the minimum volume and the actual loudness of the maximum volume.

[0052] According to a second aspect of an embodiment of the present application, there is provided an audio signal processing device, the device comprising:

[0053] A volume determination module, used to determine the volume of the audio signal to be processed;

[0054] A sound pressure level difference relationship determination module, configured to obtain a sound pressure level difference relationship corresponding to the volume according to the volume of the audio signal to be processed, wherein the sound pressure level difference relationship represents a sound pressure level difference between an actual loudness of the volume and a reference loudness at different frequencies;

[0055] The loudness compensation module is used to compensate the signal corresponding to each frequency in the audio signal to be processed according to the sound pressure level difference relationship to obtain an audio signal with enhanced loudness.

[0056] According to a third aspect of an embodiment of the present application, there is provided an electronic device, including:

[0057] processor;

[0058] a memory for storing executable instructions;

[0059] When the processor executes the executable instructions, it is configured to implement the method described in any one of the first aspects.

[0060] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the steps of any method described in the first aspect of the embodiment of the present application are implemented.

[0061] The embodiments of the present application have the following beneficial effects:

[0062] The embodiment of the present application first determines the volume of the audio signal to be processed; according to the volume of the audio signal to be processed, obtains the sound pressure level difference relationship corresponding to the volume, wherein the sound pressure level difference relationship represents the sound pressure level difference between the actual loudness of the volume and the reference loudness at different frequencies; according to the sound pressure level difference relationship, the signal corresponding to each frequency in the audio signal to be processed is compensated respectively to obtain an audio signal with loudness enhancement. This embodiment has corresponding sound pressure level difference relationships for audio signals to be processed of different volumes, so as to compensate for different frequency components in the audio signals to be processed of different volumes respectively, thereby achieving the same loudness perception of users for different frequency components in the audio signal under different volume conditions, further improving the user's auditory experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 A schematic diagram of an equal loudness curve according to an exemplary embodiment of the present application;

[0064] Figure 2 This is a schematic diagram of an application scenario of the audio signal processing method according to an exemplary embodiment of the present application;

[0065] Figure 3 This is a flow chart of an embodiment of a first audio signal processing method according to an exemplary embodiment of the present application;

[0066] Figure 4 This is a flow chart of an embodiment of a second audio signal processing method according to an exemplary embodiment of the present application;

[0067] Figure 5 is a schematic diagram of determining gain coefficients of a high shelf filter and a low shelf filter according to an exemplary embodiment of the present application;

[0068] Figure 6 is a schematic diagram of fitting the compensation amplitude spectrum of the high-shelf filter in the frequency domain and the amplitude spectrum of the low-shelf filter in the frequency domain according to an exemplary embodiment of the present application;

[0069] Figure 7 This is a structural diagram of an embodiment of an audio signal processing device according to an exemplary embodiment of the present application;

[0070] Figure 8 The figure is a hardware structure diagram of an electronic device according to an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0071] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0072] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0073] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0074] Loudness is the subjective perception of sound intensity. Generally speaking, for a given frequency, the louder the sound intensity, the greater the loudness. However, loudness is related to frequency. For the same sound intensity, different frequencies may also produce different loudness. The relationship between pure tone frequency and sound pressure level under the condition that typical listeners perceive the same loudness is measured through a large number of experiments, which is the equal loudness curve, as shown in the figure below. Figure 1 As shown, it fully describes the sensitivity of the human ear to sounds of different frequencies.

[0075] The goal of adjusting the volume of an audio signal is to change the loudness of the audio signal. Conventional digital audio volume adjustment methods are usually equal level adjustment, that is, the sound pressure level of all frequency bands decreases or increases by the same amplitude. This method allows the low, medium, and high frequency components in the audio to be scaled in the same proportion. However, Figure 1 It can be seen from the equal loudness curves that the human ear has different response sensitivities to different frequency components. For low-frequency components and high-frequency components, the human ear's loudness sensitivity to these two components decreases. If the volume is scaled in an equal-level manner, that is, the same sound pressure change is applied to all frequency components, the human ear's perception of the loudness of certain frequency components in the audio will become worse, which will in turn affect the perception and judgment of these components and reduce the listener's subjective listening experience.

[0076] In another way, some acoustic workers will directly perform equalization (EQ) on the audio signal during the audio playback stage. Although this method can improve the perceived loudness of the low-frequency and high-frequency components in the audio signal to a certain extent, this method requires adjustments based on the acoustic workers' real-time listening experience. The process is cumbersome and is greatly affected by the acoustic workers' own hearing.

[0077] Based on this, an embodiment of the present application provides an audio signal processing method, which, for audio signals to be processed with different volumes, compensates for different frequency components in the audio signals to be processed under each audio, and obtains an audio signal with enhanced loudness.

[0078] The audio signal processing method of the embodiment of the present application can be executed by an electronic device, and the electronic device includes but is not limited to a smart interactive tablet, a computer, a mobile phone, a server, a cloud server or a smart wearable device (such as a watch, a bracelet), a player and other devices.

[0079] The audio signal processing method of the embodiment of the present application can be applied to any audio-related scenario, for example, it can be applied to a remote conference scenario, a live broadcast scenario, a radio broadcast scenario, a video playback scenario, or a music playback scenario.

[0080] In an exemplary application scenario, in a remote conference scenario, the audio signal processing method is executed by a smart interactive tablet, see Figure 2 In one implementation, after collecting the audio signals of the participants, the smart interactive tablet 10 can compensate the collected audio signals based on the audio signal processing method of the embodiment of the present application to obtain an audio signal with enhanced loudness and transmit it to the smart interactive tablet 20, so that the smart interactive tablet 20 can play the audio signal with enhanced loudness through the speakers equipped therewith; in another implementation, after collecting the audio signals of the participants, the smart interactive tablet 10 sends the audio signals to the smart interactive tablet 20, and after receiving the audio signals, the smart interactive tablet 20 compensates the audio signals based on the audio signal processing method of the embodiment of the present application to obtain an audio signal with enhanced loudness and play it through the speakers equipped therewith.

[0081] See also Figure 3 , is a flow chart of an audio signal processing method provided in an embodiment of the present application, the method can be executed by an electronic device, and the method includes:

[0082] In step S101 , the volume of the audio signal to be processed is determined.

[0083] In step S102, a sound pressure level difference relationship corresponding to the volume is obtained according to the volume of the audio signal to be processed, wherein the sound pressure level difference relationship represents the sound pressure level difference between the actual loudness of the volume and the reference loudness at different frequencies.

[0084] In step S103, the signal corresponding to each frequency in the audio signal to be processed is compensated respectively according to the sound pressure level difference relationship to obtain an audio signal with enhanced loudness.

[0085] Among them, the electronic device pre-stores the difference relationship of sound pressure levels corresponding to different volumes, and the difference relationship of sound pressure levels corresponding to different volumes represents the difference in sound pressure levels between the actual loudness of the volume and the reference loudness at different frequencies. In one example, it is assumed that the setting range of the volume is 0 to 100, where 0 represents mute, 100 represents the maximum volume, 1 represents the lowest volume perceivable by the user, and other different numbers represent different volumes. In addition to mute, the electronic device has 99 different volumes, corresponding to 99 sound pressure level difference relationships. It can be understood that the embodiment of the present application does not impose any restrictions on the setting level or range of the volume, and can be specifically set according to the actual application scenario. For example, in another example, the volume level can be set to include mute, bass, mid-range and treble.

[0086] In one embodiment, the sound pressure level difference relationship corresponding to different volumes may be determined according to the difference between the sound pressure level of the actual loudness of the volume at different frequencies and the sound pressure level of the reference loudness at different frequencies.

[0087] Here, the reference loudness is explained: the reference loudness is determined according to the sound pressure level corresponding to the frequency of 1kHz at the reference volume. In one example, the reference volume may be the maximum volume; or, the reference volume may be a volume greater than a preset volume value. Assuming that the volume setting range is 0 to 100, the preset volume value may be, for example, 50, 78 or 80; or, the reference volume may be customized by the user to determine the reference volume that best suits the user's hearing habits and meet the user's personalized needs.

[0088] It is understandable that based on Figure 1 It can be seen from the equal loudness curve that the sound pressure level corresponding to the frequency of 1 kHz is the same as the value of the corresponding loudness. Therefore, in order to simplify the processing steps and improve the processing efficiency, the reference loudness can be determined according to the sound pressure level corresponding to the frequency of 1 kHz at the reference volume, that is, the value of the reference loudness is the same as the value of the sound pressure level corresponding to the frequency of 1 kHz at the reference volume; of course, the reference loudness can also be determined according to the sound pressure level corresponding to the reference volume and at any other frequency point (such as 500 Hz, 1100 Hz), and this embodiment does not impose any limitation on this.

[0089] In one implementation, in order to avoid excessively increasing the loudness of low-frequency and high-frequency components in the audio signal to be processed, the embodiment of the present application sets a preset threshold, the preset threshold represents the maximum sound pressure level that the user can bear, and when the electronic device determines the reference loudness, if the sound pressure level corresponding to the frequency of 1kHz at the reference volume is greater than the preset threshold, the reference loudness is determined according to the preset threshold; if the sound pressure level corresponding to the frequency of 1kHz at the reference volume is less than or equal to the preset threshold, the reference loudness is determined according to the sound pressure level corresponding to the frequency of 1kHz at the reference volume. In this embodiment, the reference loudness is determined by setting the preset threshold to avoid excessively increasing the loudness of low-frequency and high-frequency components in the audio signal to be processed.

[0090] It is understandable that the preset threshold value can be specifically set according to the actual application scenario. For example, the preset threshold value can be customized by the user; or, please refer to Figure 1 ,Depend on Figure 1 The equal loudness curve of 100 Phon (the top dotted line) is obtained by extrapolation based on the measured equal loudness curve, not the actual measurement. The audio loudness of 90 to 100 Phon can meet most audio application scenarios in daily life and is determined by Figure 1 It can be seen that the sound pressure level corresponding to the frequency of 1kHz is the same as the value of the corresponding loudness, so the preset threshold can be set to a value less than 100dB, for example, the preset threshold is set to 90dB, if the sound pressure level corresponding to the frequency of 1kHz is greater than 90dB at the reference volume, the reference loudness is 90Phon; if the sound pressure level corresponding to the frequency of 1kHz at the reference volume is less than or equal to 90dB, the reference loudness is the same as the value of the sound pressure level corresponding to the frequency of 1kHz at the reference volume, for example, the sound pressure level corresponding to the frequency of 1kHz at the reference volume is A dB, then the reference loudness is A Phon, thereby avoiding excessive enhancement of the low-frequency cost and the loudness of the high-frequency components in the processed audio signal.

[0091] After obtaining the reference loudness, the sound pressure level corresponding to the reference loudness at a frequency of 1 kHz has been determined in the above manner, but the sound pressure level corresponding to the reference loudness at other frequencies is still unclear. Figure 1The equal loudness curves give the relationship between the perceived loudness and sound pressure level of 29 discrete frequencies between 20-12500 Hz (respectively 20, 25, 31.5, 40, 50, 63, 80, 100, 125, 160, 200, 250, 315, 400, 500, 630, 800, 1000, 1250, 1600, 2000, 2500, 3150, 4000, 5000, 6300, 8000, 10000, 12500). Therefore, for the sound pressure level corresponding to other frequencies, the electronic device is based on Figure 1 The known data of the equal loudness curve and the related data of the reference loudness are used to obtain the sound pressure level of the reference loudness at different frequencies by using an interpolation method. In other words, the equal loudness curve of the reference loudness, that is, the frequency-sound pressure level curve, can be determined. The frequency-sound pressure level curve indicates the relationship between different frequencies and different sound pressure levels under equal loudness.

[0092] It is understandable that the interpolation method can be specifically set according to the actual application scenario, and the embodiment of the present application does not impose any restrictions on this. It can be specifically set according to the actual application scenario. For example, the interpolation method includes but is not limited to cubic spline data interpolation or adjacent linear method interpolation, etc. Among them, in order to further simplify the calculation process and improve processing efficiency, for frequency points higher than 12500Hz, the sound pressure level can be directly replaced by the sound pressure level corresponding to the 12500Hz frequency point.

[0093] The actual loudness of different volumes is explained here: for the actual loudness of the minimum volume, the electronic device determines the actual loudness of the minimum volume according to the sound pressure level corresponding to the frequency of 1kHz at the minimum volume. Furthermore, considering the influence of the actual listening environment, the actual loudness of the minimum volume can be determined according to the sound pressure level corresponding to the frequency of 1kHz at the minimum volume and the detected background noise of the actual listening environment, thereby ensuring that the user can clearly hear the played audio signal at the minimum volume without being affected by the actual listening environment. In one example, the actual loudness corresponding to the minimum volume can be set to 30-40Phon. It can be understood that based on Figure 1 It can be seen from the equal loudness curve that the sound pressure level corresponding to the frequency of 1 kHz is the same as the value of the corresponding loudness. Therefore, in order to simplify the processing steps and improve the processing efficiency, the actual loudness of the minimum volume can be determined according to the sound pressure level corresponding to the frequency of 1 kHz at the reference volume; of course, the actual loudness of the minimum volume can also be determined according to the sound pressure level corresponding to the minimum volume and at any other frequency point (such as 500 Hz, 1100 Hz, etc.), and this embodiment does not impose any limitation on this.

[0094] Further, after determining the actual loudness of the minimum volume and the sound pressure level corresponding to the actual loudness of the minimum volume at a frequency of 1 kHz, the electronic device may Figure 1 The known data of the equal loudness curve of the minimum volume and the relevant data of the actual loudness of the minimum volume are used, and the sound pressure level of the actual loudness of the minimum volume at different frequencies is obtained by an interpolation method. In other words, the equal loudness curve of the actual loudness of the minimum volume, that is, the frequency-sound pressure level curve, can be determined, and the frequency-sound pressure level curve indicates the relationship between frequency and sound pressure level under equal loudness.

[0095] For the actual loudness of the maximum volume, the electronic device determines the actual loudness of the maximum volume according to the sound pressure level corresponding to the frequency of 1 kHz at the maximum volume; Figure 1 It can be seen that the sound pressure level corresponding to the frequency of 1kHz is the same as the value of the corresponding loudness, so the value of the actual loudness of the maximum volume is the value of the sound pressure level corresponding to the frequency of 1kHz at the maximum volume. Further, after determining the actual loudness of the maximum volume and the sound pressure level corresponding to the actual loudness of the maximum volume at the frequency of 1kHz, the electronic device can be used according to Figure 1 The known data of the equal loudness curve of the maximum volume and the relevant data of the actual loudness of the maximum volume are used to obtain the sound pressure level of the actual loudness of the maximum volume at different frequencies by using the interpolation method. In other words, the equal loudness curve of the actual loudness of the maximum volume, that is, the frequency-sound pressure level curve, can be determined. The frequency-sound pressure level curve indicates the relationship between the frequency and the sound pressure level at equal loudness. It can be understood that the actual loudness of the maximum volume can also be determined according to the sound pressure level corresponding to the maximum volume and any other frequency point (such as 500 Hz, 1100 Hz, etc.), and this embodiment does not impose any limitation on this.

[0096] For other volumes between the minimum volume and the maximum volume, the electronic device can determine the actual loudness of the other volumes between the minimum volume and the maximum volume based on the actual loudness of the minimum volume and the actual loudness of the maximum volume. Specifically, the electronic device can determine the actual loudness of the other volumes between the minimum volume and the maximum volume based on the volume level difference between the minimum volume and the maximum volume, and the loudness difference between the actual loudness of the minimum volume and the actual loudness of the maximum volume. In an example, assume that the volume setting range is 0 to 100, where 0 represents mute, 100 represents the maximum volume, 1 represents the lowest volume perceivable by the user, and other different numbers represent different volumes. In addition to mute, the electronic device has 99 different volumes. Let the volume be L, the actual loudness corresponding to the volume be P, and the actual loudness of the minimum volume be P. min , the actual loudness of the maximum volume is P max, then the actual loudness of any volume between the minimum volume and the maximum volume

[0097] Further, after determining the actual loudness of other volumes between the minimum volume and the maximum volume and the sound pressure level corresponding to the actual loudness of the other volumes at a frequency of 1 kHz, the electronic device may Figure 1 The known data of the equal loudness curve of the other volumes and the related data of the actual loudness of the other volumes are used, and the sound pressure levels of the actual loudness of the other volumes at different frequencies are obtained by an interpolation method. In other words, the equal loudness curve of the actual loudness of the other volumes, that is, the frequency-sound pressure level curve, can be determined, and the frequency-sound pressure level curve indicates the relationship between frequency and sound pressure level under equal loudness.

[0098] In other words, the sound pressure level difference relationship corresponding to different volumes can be determined based on the difference between the frequency-sound pressure level curve of the actual loudness of the volume and the frequency-sound pressure level curve of the reference loudness, and the frequency-sound pressure level curve indicates the relationship between frequency and sound pressure level at equal loudness.

[0099] In one implementation, the frequency-sound pressure level curves of the actual loudness of different volumes are transformed into amplitude spectra in the frequency domain, and the frequency-sound pressure level curves of the reference loudness are transformed into amplitude spectra in the frequency domain. Then, the sound pressure level difference relationship corresponding to the different volumes includes a compensation amplitude spectrum in the frequency domain, and the compensation amplitude spectrum is determined according to the difference between the amplitude spectrum of the actual loudness of the volume and the amplitude spectrum of the reference loudness. In an example, let the amplitude spectrum of the actual loudness of each volume be Spl ref (f) dB, the amplitude spectrum of the reference loudness is Spl real (f) dB, the compensation amplitude spectrum is Spl comp (f), then in the logarithmic domain Spl comp (f)=(Spl ref (f)-Spl real (f))dB, after conversion to linear domain

[0100] Among them, the difference relationship of sound pressure levels corresponding to different volumes can be obtained offline, which is beneficial to improving the efficiency of audio signal processing. Of course, if there are sufficient computing resources, it can also be obtained in real time. The embodiment of the present application does not impose any restrictions on this.

[0101] Then, after acquiring the audio signal to be processed, the electronic device first determines the volume of the audio signal to be processed, and then acquires the sound pressure level difference relationship corresponding to the volume according to the volume of the audio signal to be processed, wherein the sound pressure level difference relationship represents the sound pressure level difference between the actual loudness of the volume and the reference loudness at different frequencies. The sound pressure level difference relationship is determined according to the difference between the sound pressure level of the actual loudness of the volume at different frequencies and the sound pressure level of the reference loudness at different frequencies. In other words, the sound pressure level difference relationship is determined according to the difference between the frequency-sound pressure level curve of the actual loudness of the volume and the frequency-sound pressure level curve of the reference loudness, wherein the frequency-sound pressure level curve indicates the relationship between frequency and sound pressure level under equal loudness. In other words, the sound pressure level difference relationship includes a compensation amplitude spectrum in the frequency domain, wherein the compensation amplitude spectrum is determined according to the difference between the amplitude spectrum of the actual loudness of the volume and the amplitude spectrum of the reference loudness, wherein the amplitude spectrum represents the frequency-sound pressure level curve in the frequency domain.

[0102] Next, the electronic device compensates the signals corresponding to each frequency in the audio signal to be processed according to the sound pressure level difference relationship, and obtains an audio signal with enhanced loudness. This embodiment uses the corresponding sound pressure level difference relationship to compensate for different frequency components in the audio signal to be processed for audio signals of different volumes, so that the user can have the same loudness perception for different frequency components in the audio signal under different volume conditions, further improving the user's auditory experience.

[0103] In one implementation, in the process of obtaining the audio signal after loudness enhancement, the electronic device first transforms the audio signal to be processed from the time domain to the frequency domain, and obtains the amplitude spectrum and phase spectrum of the audio signal to be processed in the frequency domain, wherein the amplitude spectrum reflects the amplitude of the audio signal to be processed at each frequency; it can be understood that the present application does not impose any restrictions on the transformation algorithm used to transform the audio signal to be processed from the time domain to the frequency domain, and a specific selection can be made according to the actual application scenario. For example, a fast Fourier transform algorithm, a short-time Fourier transform algorithm, or a Z transform algorithm can be selected to transform the audio signal to be processed from the time domain to the frequency domain.

[0104] Then, the electronic device compensates the amplitude at each frequency according to the sound pressure level difference relationship to obtain a compensated amplitude spectrum. In one implementation, the sound pressure level difference relationship may be a compensated amplitude spectrum obtained in the frequency domain according to the difference between the amplitude spectrum of the actual loudness of the volume and the amplitude spectrum of the reference loudness. The electronic device may obtain the amplitude compensation gain corresponding to each frequency according to the compensated amplitude spectrum in the frequency domain, and compensate the amplitude at each frequency according to the amplitude compensation gain corresponding to each frequency. As an example, the amplitude compensation gain corresponding to each frequency may be multiplied by the amplitude at the corresponding frequency to obtain the compensated amplitude spectrum.

[0105] Finally, the electronic device transforms from the frequency domain to the time domain according to the compensated amplitude spectrum and the phase spectrum at each frequency, and obtains the audio signal with enhanced loudness. It can be understood that the present application does not impose any restrictions on the transformation algorithm used to transform the audio signal to be processed from the frequency domain to the time domain, and a specific selection can be made according to the actual application scenario. For example, an inverse fast Fourier transform algorithm can be selected to transform the audio signal to be processed from the frequency domain to the time domain. In this embodiment, for the audio signals to be processed with different volumes, different frequency components in the audio signals to be processed are compensated respectively, so that the user can have the same loudness perception of different frequency components in the audio signal under different volume conditions, thereby further improving the user's auditory experience.

[0106] In a second implementation, in the process of obtaining the audio signal after loudness enhancement, the electronic device first divides the audio signal to be processed into frames, and transforms each frame signal from the time domain to the frequency domain to obtain an amplitude spectrum and a phase spectrum of each frame signal in the frequency domain; the amplitude spectrum reflects the amplitude of the frame signal at each frequency; then, the amplitude at each frequency is compensated according to the sound pressure level difference relationship to obtain a compensated amplitude spectrum; in an implementation, the sound pressure level difference relationship can be obtained in the frequency domain according to the difference between the amplitude spectrum of the actual loudness of the volume and the amplitude spectrum of the reference loudness. The electronic device can obtain the amplitude compensation gain corresponding to each frequency according to the compensation amplitude spectrum in the frequency domain, and compensate the amplitude at each frequency according to the amplitude compensation gain corresponding to each frequency. As an example, the amplitude compensation gain corresponding to each frequency can be multiplied by the amplitude at the corresponding frequency to obtain the compensated amplitude spectrum; then, the electronic device transforms from the frequency domain to the time domain according to the compensated amplitude spectrum and the phase spectrum to obtain each compensated frame signal; finally, the compensated frame signals are overlapped and spliced ​​to obtain the audio signal after loudness enhancement. For example, the compensated frame signals can be synthesized by using the overlap-addition method or the overlap-retention method. This embodiment adopts a framing method, which is suitable for the scenario of real-time audio signal acquisition and is conducive to improving audio processing efficiency.

[0107] In a third implementation, the sound pressure level difference relationship can be a compensated amplitude spectrum obtained in the frequency domain according to the difference between the amplitude spectrum of the actual loudness of the volume and the amplitude spectrum of the reference loudness; in the process of obtaining the audio signal after loudness enhancement, the electronic device first transforms the compensated amplitude spectrum to the time domain, and obtains a FIR filter (Finite Impulse Response filter) according to the result of the transformation, and then uses the FIR filter to filter the signals corresponding to each frequency in the audio signal to be processed. As an example, the FIR filter can be used to perform convolution filtering or fast Fourier filtering on the audio signal to be processed. In this embodiment, for the audio signals to be processed with different volumes, different frequency components in the audio signals to be processed are compensated respectively, so that the user has the same loudness perception of different frequency components in the audio signal under various volume conditions, further improving the user's auditory experience.

[0108] Furthermore, considering that the above implementation requires conversion between the time domain and the frequency domain, there is a certain processing delay. For some scenarios with high real-time requirements, such as video conferencing or live broadcasting, the delay is required to be as low as possible. Based on this, please refer to Figure 4 , an embodiment of the present application provides a flowchart of another audio signal processing method, the method can be performed by an electronic device, the method includes:

[0109] In step S201, the volume of the audio signal to be processed is determined.

[0110] In step S202, according to the volume of the audio signal to be processed, high-shelf filter parameters and low-shelf filter parameters indicated by a sound pressure level difference relationship corresponding to the volume are obtained, wherein the sound pressure level difference relationship represents a sound pressure level difference between an actual loudness of the volume and a reference loudness at different frequencies.

[0111] In step S203, a high shelf filter at the volume is determined according to the high shelf filter parameters; and a low shelf filter at the volume is determined according to the low shelf filter parameters.

[0112] In step S204, the audio signal to be processed is filtered according to the high shelf filter and the low shelf filter to obtain an audio signal with enhanced loudness.

[0113] In this embodiment, after obtaining the sound pressure level difference relationship corresponding to different volumes, the electronic device determines the high-shelf filter parameters and the low-shelf filter parameters corresponding to the different volumes according to the sound pressure level difference relationship corresponding to the different volumes; in an example, assuming that the setting range of the volume is 0 to 100, where 0 represents mute, 100 represents the maximum volume, 1 represents the lowest volume perceivable by the user, and other different numbers represent different volumes, there are 99 different volumes, each volume corresponds to a sound pressure level difference relationship, and the high-shelf filter parameters and the low-shelf filter parameters at the volume are obtained according to the sound pressure level difference relationship, so there are 99 groups of high-shelf filter parameters and low-shelf filter parameters.

[0114] In one embodiment, the sound pressure level difference relationship includes a compensated amplitude spectrum obtained according to the difference between the amplitude spectrum of the actual loudness of the volume and the amplitude spectrum of the reference loudness; for each volume, the electronic device determines a high-shelf filter coefficient and a low-shelf filter coefficient under the volume, and the coefficients include at least one of the following: a gain coefficient, a cutoff frequency, and a slope coefficient; then the high-shelf filter parameters are determined according to the high-shelf filter coefficients, and the high-shelf filter parameters are used to determine a high-shelf filter, and the low-shelf filter parameters are determined according to the low-shelf filter coefficients, and the low-shelf filter parameters are used to determine a low shelf filter; then, obtaining an amplitude spectrum of the high shelf filter in the frequency domain according to the high shelf filter parameters, and obtaining an amplitude spectrum of the low shelf filter in the frequency domain according to the low shelf filter parameters, and adjusting the high shelf filter coefficients and the low shelf filter coefficients according to the differences between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensation amplitude spectrum, so as to obtain high shelf filter parameters and low shelf filter parameters whose errors with the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain are minimized.

[0115] In one implementation, for each volume, the electronic device obtains a high-shelf filter coefficient at the volume from a first preset range, and obtains a low-shelf filter coefficient at the volume from a second preset range, and then determines the high-shelf filter parameters based on the high-shelf filter coefficients to obtain an amplitude spectrum of the high-shelf filter in the frequency domain; and determines the low-shelf filter parameters based on the low-shelf filter coefficients to obtain an amplitude spectrum of the low-shelf filter in the frequency domain.

[0116] Next, if the errors between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensated amplitude spectrum are respectively greater than the preset difference, the electronic device needs to redetermine the high shelf filter coefficients and the low shelf filter coefficients at the volume, that is, re-acquire the high shelf filter coefficients at the volume from the first preset range and re-acquire the low shelf filter coefficients at the volume from the second preset range, wherein the re-determined high shelf filter coefficients and the low shelf filter coefficients are different from the previously determined high shelf filter coefficients and the low shelf filter coefficients.

[0117] If the errors between the amplitude spectrum of the high-shelf filter in the frequency domain and the amplitude spectrum of the low-shelf filter in the frequency domain and the compensated amplitude spectrum are respectively less than or equal to the preset difference value, the iterative process is terminated, and the high-shelf filter determined according to the high-shelf filter coefficients obtained this time and the low-shelf filter determined according to the low-shelf filter coefficients obtained this time are determined as the final results, and the high-shelf filter parameters and low-shelf filter parameters determined this time are obtained.

[0118] The high-shelf filter and / or the low-shelf filter may be implemented by a biquad filter. In one example, the biquad filter may be a biquad IIR filter (biquad impulse response filter). In one example, the biquad IIR filter is H(z), z represents the audio signal to be processed, and the filter parameters include b0, b1, b2, a0, a1, and a2. Among them, corresponding to the high shelf filter and the low shelf filter, the filter parameters b0, b1, b2, a0, a1, and a2 are different.

[0119] Corresponding to the high shelf filter, b0 = gain*(A*((A+1)+(A-1)*cos(w0)+2*sqrt(A)*alpha)); b1 = gain*((-2*A*((A-1)+(A+1)*cos(w0))); b2 = gain*(A*((A+1)+(A-1)*cos(w0)-2*sqrt(A)*alpha)); a0 = (A+1)-(A-1)*cos(w0)+2*sqrt(A)*alpha; a1 = 2*((A-1)-(A+1)*cos(w0)), a2 = (A+1)-(A-1)*cos(w0)-2*sqrt(A)*alpha.

[0120] Corresponding to the low shelf filter, b0 = gain*(A*((A+1)-(A-1)*cos(w0)+2*sqrt(A)*alpha)); b1 = gain*(2*A*((A-1)-(A+1)*cos(w0))); b2 = gain*(A*((A+1)-(A-1)*cos(w0)-2*sqrt(A)*alpha)); a0 = (A+1)+(A-1)*cos(w0)+2*sqrt(A)*alpha; a1 = -2*((A-1)+(A+1)*cos(w0)); a2 = (A+1)+(A-1)*cos(w0)-2*sqrt(A)*alpha.

[0121] Among them, gain represents an overall gain coefficient of the high-shelf filter or the low-shelf filter, which is obtained from the compensation amplitude spectrum corresponding to 1kHz at the current volume, that is, A=sqrt(10^(dBgain / 20)), dBgain represents the gain coefficient of the high shelf filter or the low shelf filter, w0=2*pi*f0 / Fs, where Fs is the sampling frequency, f0 is the cutoff frequency of the high shelf filter or the low shelf filter, alpha=sin(w0) / 2*sqrt((A+1 / A)*(1 / S-1)+2), where S represents the slope coefficient of the high shelf filter or the low shelf filter.

[0122] For an example, see Figure 5 For the gain of the high-shelf filter, dBgain=dBgainH, dBgainH is the gain of the frequency point of 40-80HZ in the compensation amplitude spectrum relative to the frequency point of 3kHz-4kHz, and for the gain of the low-shelf filter, dBgain=dBgainL, dBgainL is the gain of the frequency point of 12500Hz in the compensation amplitude spectrum relative to the frequency point of 3kHz-4kHz, by Figure 1 It can be seen from the equal loudness curve that the user is most sensitive to the loudness of the frequency 3kHz~4kHz, so the gain value of the high-shelving filter can be determined relative to this frequency band, for example, the middle value 3.5kHz can be taken.

[0123] The cutoff frequency of the high shelf filter is in the range of [150, 250], the cutoff frequency of the low shelf filter is in the range of [7500, 11000], and the slope coefficient is in the range of [0.1, 5); the electronic device can obtain the cutoff frequency of the high shelf filter from [150, 250], obtain the cutoff frequency of the low shelf filter from [7500, 11000], and obtain the slope coefficients of the high shelf filter and the low shelf filter from [0.1, 5), wherein the gain coefficient of the high shelf filter and the gain coefficient of the low shelf filter are calculated according to the following formula: Figure 5 The method shown is used to determine; then, the electronic device determines the high-shelf filter parameters according to the gain coefficient, cutoff frequency and slope coefficient of the high-shelf filter to obtain the amplitude spectrum of the high-shelf filter in the frequency domain; and determines the low-shelf filter parameters according to the gain coefficient, cutoff frequency and slope coefficient of the low-shelf filter to obtain the amplitude spectrum of the low-shelf filter in the frequency domain.

[0124] If the errors between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensated amplitude spectrum are respectively greater than the preset difference, the electronic device can re-obtain the cutoff frequency of the high shelf filter from [150,250], obtain the cutoff frequency of the low shelf filter from [7500,11000], and obtain the slope coefficients of the high shelf filter and the low shelf filter from [0.1,5), wherein the re-determined cutoff frequency and slope coefficient are different from the previously determined cutoff frequency and slope coefficient.

[0125] If the errors between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensation amplitude spectrum are respectively less than or equal to the preset difference, the high shelf filter parameters and the low shelf filter parameters determined this time are obtained, as shown in 6, assuming that the volume is set to 0-100, Figure 6 The amplitude spectrum of the high shelf filter of volume 50 in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain are respectively fitted with the compensation amplitude spectrum.

[0126] In one implementation, in order to further improve the calculation efficiency, an adjustment step size can be preset, for example, the adjustment step size of the cutoff frequency of the high shelf filter is 5 Hz, the adjustment step size of the cutoff frequency of the low shelf filter is 500 Hz, and the adjustment step size of the slope coefficients of the high shelf filter and the low shelf filter is 0.1. If the cutoff frequency of the high shelf filter obtained from [150,250] is 160 Hz, the cutoff frequency of the low shelf filter obtained from [7500,11000] is 8000 Hz, and the cutoff frequency of the high shelf filter and the low shelf filter obtained from [0.1,5) is 160 Hz, the cutoff frequency of the high shelf filter and the low shelf filter obtained from [7500,11000] is 8000 Hz. The slope coefficient is 1.2. If the errors between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensated amplitude spectrum are respectively greater than the preset difference, then the cutoff frequency of the high shelf filter obtained from [150,250] according to the adjustment step is 165 (160+5) Hz, and the cutoff frequency of the low shelf filter obtained from [7500,11000] is 8500 (8500+500) Hz, and the slope coefficient of the high shelf filter and the low shelf filter is 1.3 (1.2+0.1) obtained from [0.1,5).

[0127] In this embodiment, the high-shelf filter parameters and low-shelf filter parameters corresponding to different volumes are predetermined based on the above method. Then, in actual use, after determining the volume of the audio signal to be processed, the high-shelf filter parameters and low-shelf filter parameters indicated by the audio can be obtained, and then the high-shelf filter is determined according to the high-shelf filter parameters and the low-shelf filter is determined according to the low-shelf filter parameters. The audio signal to be processed is filtered according to the high-shelf filter and the low-shelf filter to obtain an audio signal with enhanced loudness. This embodiment directly calls the relevant high-shelf filter parameters and low-shelf filter parameters to filter the audio signal to be processed at the corresponding volume without going through the conversion process between the time domain and the frequency domain, which is conducive to further improving the processing efficiency and meeting the real-time requirements of audio.

[0128] Corresponding to the embodiments of the audio signal processing method of the present application, the present application also provides embodiments of an audio signal processing device, an electronic device, and a computer-readable storage medium.

[0129] See also Figure 7 , is a block diagram of an embodiment of an audio signal processing device provided in an embodiment of the present application, the device comprising:

[0130] The volume determination module 301 is used to determine the volume of the audio signal to be processed.

[0131] The sound pressure level difference relationship determining module 302 is used to obtain the sound pressure level difference relationship corresponding to the volume according to the volume of the audio signal to be processed, wherein the sound pressure level difference relationship represents the sound pressure level difference between the actual loudness of the volume and the reference loudness at different frequencies.

[0132] The loudness compensation module 303 is used to compensate the signal corresponding to each frequency in the audio signal to be processed according to the sound pressure level difference relationship, so as to obtain an audio signal with enhanced loudness.

[0133] In one embodiment, the sound pressure level difference relationship is determined according to the difference between the sound pressure level of the actual loudness of the volume at different frequencies and the sound pressure level of the reference loudness at different frequencies.

[0134] In one embodiment, the sound pressure level difference relationship is determined according to the difference between a frequency-sound pressure level curve of the actual loudness of the volume and a frequency-sound pressure level curve of the reference loudness, wherein the frequency-sound pressure level curve indicates the relationship between frequency and sound pressure level at equal loudness.

[0135] In one embodiment, the sound pressure level difference relationship includes a compensation amplitude spectrum in the frequency domain, wherein the compensation amplitude spectrum is determined according to the difference between the amplitude spectrum of the actual loudness of the volume and the amplitude spectrum of the reference loudness, and the amplitude spectrum represents the frequency-sound pressure level curve in the frequency domain.

[0136] In one embodiment, the loudness compensation module 303 includes:

[0137] The first transformation unit is used to transform the audio signal to be processed from the time domain to the frequency domain, and obtain the amplitude spectrum and phase spectrum of the audio signal to be processed in the frequency domain; the amplitude spectrum reflects the amplitude of the audio signal to be processed at each frequency.

[0138] The first compensation unit is used to compensate the amplitudes at the various frequencies according to the sound pressure level difference relationship to obtain a compensated amplitude spectrum.

[0139] The first transformation unit is further used to transform from the frequency domain to the time domain according to the compensated amplitude spectrum and the phase spectrum at each frequency, so as to obtain the loudness enhanced audio signal.

[0140] In one embodiment, the sound pressure level difference relationship includes a compensated amplitude spectrum obtained according to a difference between an amplitude spectrum of an actual loudness of the volume and an amplitude spectrum of a reference loudness.

[0141] The first compensation unit includes: obtaining an amplitude compensation gain corresponding to each frequency according to the compensation amplitude spectrum in the frequency domain; and respectively compensating the amplitude at each frequency according to the amplitude compensation gain corresponding to each frequency.

[0142] In one embodiment, the loudness compensation module 303 includes:

[0143] The second transformation unit is used to frame the audio signal to be processed, and transform each frame signal from the time domain to the frequency domain to obtain the amplitude spectrum and phase spectrum of each frame signal in the frequency domain; the amplitude spectrum reflects the amplitude of the frame signal at each frequency.

[0144] The second compensation unit is used to compensate the amplitudes at the various frequencies according to the sound pressure level difference relationship to obtain a compensated amplitude spectrum.

[0145] The second transformation unit is further used to transform from the frequency domain to the time domain according to the compensated amplitude spectrum and the phase spectrum to obtain each compensated frame signal.

[0146] The splicing unit is used to overlap and splice the compensated frame signals to obtain the loudness-enhanced audio signal.

[0147] In one embodiment, the sound pressure level difference relationship includes a compensated amplitude spectrum obtained according to a difference between an amplitude spectrum of an actual loudness of the volume and an amplitude spectrum of a reference loudness.

[0148] The loudness compensation module 303 includes:

[0149] The third transformation unit is used to transform the compensated amplitude spectrum into the time domain and obtain the FIR filter according to the transformed result.

[0150] The first filtering unit is used to perform filtering processing on the signals corresponding to each frequency in the audio signal to be processed by using the FIR filter.

[0151] In one embodiment, the sound pressure level difference relationship determining module 302 comprises: according to the volume of the audio signal to be processed, acquiring the high shelf filter parameters and the low shelf filter parameters indicated by the sound pressure level difference relationship corresponding to the volume.

[0152] The loudness compensation module 303 includes:

[0153] The filter determination unit is used to determine a high shelf filter at the volume according to the high shelf filter parameters; and to determine a low shelf filter at the volume according to the high shelf filter parameters.

[0154] The second filtering unit is used to filter the audio signal to be processed according to the high shelf filter and the low shelf filter to obtain an audio signal with enhanced loudness.

[0155] In one embodiment, the high shelf filter parameters and the low shelf filter parameters are determined according to a difference relationship between sound pressure levels corresponding to the volume.

[0156] In one embodiment, the sound pressure level difference relationship includes a compensation amplitude spectrum in the frequency domain.

[0157] The high-shelf filter parameters and low-shelf filter parameters indicated by the sound pressure level difference relationship corresponding to the volume include:

[0158] The coefficient determination module is used to determine the high shelf filter coefficient and the low shelf filter coefficient at the volume, wherein the coefficient includes at least one of the following: a gain coefficient, a cutoff frequency, and a slope coefficient.

[0159] A parameter determination module is used to determine the high shelf filter parameters according to the high shelf filter coefficients to obtain the amplitude spectrum of the high shelf filter in the frequency domain; and to determine the low shelf filter parameters according to the low shelf filter coefficients to obtain the amplitude spectrum of the low shelf filter in the frequency domain.

[0160] The coefficient adjustment module is used to adjust the high shelf filter coefficient and the low shelf filter coefficient according to the difference between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensation amplitude spectrum, so as to obtain the high shelf filter parameters and the low shelf filter parameters of the volume indication.

[0161] In one embodiment, the coefficient determination module includes:

[0162] A high shelf filter coefficient at the volume is obtained from a first preset range, and a low shelf filter coefficient at the volume is obtained from a second preset range.

[0163] In one embodiment, the coefficient adjustment module includes:

[0164] If the errors between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensated amplitude spectrum are respectively greater than a preset difference, the high shelf filter coefficients and the low shelf filter coefficients at the volume are re-determined; wherein the re-determined high shelf filter coefficients and the low shelf filter coefficients are different from the previously determined high shelf filter coefficients and the low shelf filter coefficients.

[0165] If the errors between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensated amplitude spectrum are respectively less than or equal to the preset difference, the high shelf filter parameters and the low shelf filter parameters determined this time are obtained.

[0166] In one embodiment, the reference loudness is determined according to a sound pressure level corresponding to a frequency of 1 kHz at a reference volume.

[0167] In one embodiment, the device further includes: a reference loudness determination module, configured to determine the reference loudness according to a preset threshold value if the sound pressure level corresponding to a frequency of 1 kHz at a reference volume is greater than a preset threshold value; the preset threshold value represents a maximum sound pressure level that a user can withstand; if the sound pressure level corresponding to a frequency of 1 kHz at the reference volume is less than or equal to the preset threshold value, determine the reference loudness according to the sound pressure level corresponding to a frequency of 1 kHz at the reference volume.

[0168] In one embodiment, the device further includes: an actual loudness determination module, configured to determine the actual loudness of the minimum volume according to the sound pressure level corresponding to a frequency of 1 kHz at the minimum volume; and determine the actual loudness of the maximum volume according to the sound pressure level corresponding to a frequency of 1 kHz at the maximum volume; and determine the actual loudness of other volumes between the minimum volume and the maximum volume according to the actual loudness of the minimum volume and the actual loudness of the maximum volume.

[0169] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0170] Correspondingly, such as Figure 8 The embodiment of the present application further provides an electronic device 40, including a processor 41; a memory 42 for storing executable instructions, wherein when the processor 41 executes the executable instructions, it is configured as follows:

[0171] determining the volume of the audio signal to be processed;

[0172] According to the volume of the audio signal to be processed, obtaining a sound pressure level difference relationship corresponding to the volume, wherein the sound pressure level difference relationship represents a sound pressure level difference between an actual loudness of the volume and a reference loudness at different frequencies;

[0173] The signals corresponding to the respective frequencies in the audio signal to be processed are compensated respectively according to the sound pressure level difference relationship to obtain an audio signal with enhanced loudness.

[0174] The processor 41 executes the executable instructions included in the memory 42. The processor 41 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0175] The memory 42 stores executable instructions of the audio signal processing method, and the memory 42 may include at least one type of storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. Moreover, the device may cooperate with a network storage device that performs the storage function of the memory through a network connection. The memory 42 may be an internal storage unit of the device 40, such as a hard disk or memory of the device 40. The memory 42 may also be an external storage device of the device 40, such as a plug-in hard disk equipped on the device 40, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 42 may also include both an internal storage unit of the device 40 and an external storage device. The memory 42 is used to store the computer program 44 and other programs and data required by the device. The memory 42 may also be used to temporarily store data that has been output or is to be output.

[0176] Various embodiments described herein can be implemented using computer readable media such as computer software, hardware or any combination thereof. For hardware implementation, the embodiments described herein can be implemented using at least one of application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, and electronic units designed to perform the functions described herein. For software implementation, embodiments such as processes or functions can be implemented with separate software modules that allow execution of at least one function or operation. Software code can be implemented by a software application (or program) written in any appropriate programming language, and the software code can be stored in a memory and executed by a controller.

[0177] The electronic device 40 may be a smart interactive tablet, a desktop computer, a notebook, a PDA, a server, a cloud server, a mobile phone, a player, etc. The device may include, but is not limited to, a processor 41 and a memory 42. Those skilled in the art will understand that Figure 8 It is only an example of the electronic device 40 and does not constitute a limitation of the electronic device 40. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the device may also include input and output devices, network access devices, buses, etc.

[0178] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0179] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by a processor of the device to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0180] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a terminal, enables the terminal to execute the above method.

[0181] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0182] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

[0183] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. An audio signal processing method, characterized in that: include: determining the volume of the audio signal to be processed; According to the volume of the audio signal to be processed, a sound pressure level difference relationship corresponding to the volume is obtained, wherein the sound pressure level difference relationship represents a sound pressure level difference between an actual loudness of the volume and a reference loudness at different frequencies, and the sound pressure level difference relationship includes a high shelf filter parameter and a low shelf filter parameter indicated by the sound pressure level difference relationship; The signal corresponding to each frequency in the audio signal to be processed is compensated respectively according to the sound pressure level difference relationship to obtain an audio signal with loudness enhanced, including: determining a high shelf filter at the volume according to the high shelf filter parameters; and determining a low shelf filter at the volume according to the low shelf filter parameters; The audio signal to be processed is filtered according to the high shelf filter and the low shelf filter to obtain an audio signal with enhanced loudness.

2. The method according to claim 1, characterized in that The sound pressure level difference relationship is determined according to the difference between the sound pressure level of the actual loudness of the volume at different frequencies and the sound pressure level of the reference loudness at different frequencies.

3. The method according to claim 1 or 2, characterized in that: The sound pressure level difference relationship is determined according to a difference between a frequency-sound pressure level curve of the actual loudness of the volume and a frequency-sound pressure level curve of the reference loudness, wherein the frequency-sound pressure level curve indicates a relationship between frequency and sound pressure level at equal loudness.

4. The method according to claim 3, characterized in that The sound pressure level difference relationship includes a compensation amplitude spectrum in the frequency domain, wherein the compensation amplitude spectrum is determined according to the difference between the amplitude spectrum of the actual loudness of the volume and the amplitude spectrum of the reference loudness, and the amplitude spectrum represents the frequency-sound pressure level curve in the frequency domain.

5. The method according to claim 1, characterized in that: The compensating the signals corresponding to the respective frequencies in the audio signal to be processed respectively according to the sound pressure level difference relationship comprises: Transforming the audio signal to be processed from the time domain to the frequency domain, and obtaining an amplitude spectrum and a phase spectrum of the audio signal to be processed in the frequency domain; the amplitude spectrum reflects the amplitude of the audio signal to be processed at each frequency; Compensating the amplitudes at the various frequencies according to the sound pressure level difference relationship to obtain a compensated amplitude spectrum; According to the compensated amplitude spectrum and the phase spectrum at each frequency, the frequency domain is transformed into the time domain to obtain the loudness-enhanced audio signal.

6. The method according to claim 5, characterized in that The sound pressure level difference relationship includes a compensated amplitude spectrum obtained according to a difference between an amplitude spectrum of an actual loudness of the volume and an amplitude spectrum of a reference loudness; The compensating the amplitudes at the various frequencies according to the sound pressure level difference relationship comprises: Obtaining the amplitude compensation gain corresponding to each frequency according to the compensation amplitude spectrum in the frequency domain; The amplitude at each frequency is compensated respectively according to the amplitude compensation gain corresponding to each frequency.

7. The method according to claim 1, characterized in that The compensating the signals corresponding to the respective frequencies in the audio signal to be processed respectively according to the sound pressure level difference relationship comprises: The audio signal to be processed is divided into frames, and each frame signal is transformed from the time domain to the frequency domain to obtain an amplitude spectrum and a phase spectrum of each frame signal in the frequency domain; the amplitude spectrum reflects the amplitude of the frame signal at each frequency; Compensating the amplitudes at the various frequencies according to the sound pressure level difference relationship to obtain a compensated amplitude spectrum; According to the compensated amplitude spectrum and the phase spectrum, transform from the frequency domain to the time domain to obtain compensated frame signals; The compensated frame signals are overlapped and spliced ​​to obtain the loudness-enhanced audio signal.

8. The method according to claim 1, characterized in that The sound pressure level difference relationship includes a compensated amplitude spectrum obtained according to a difference between an amplitude spectrum of an actual loudness of the volume and an amplitude spectrum of a reference loudness; The compensating the signals corresponding to the respective frequencies in the audio signal to be processed respectively according to the sound pressure level difference relationship comprises: Transforming the compensation amplitude spectrum into the time domain, and obtaining an FIR filter according to the transformed result; The FIR filter is used to filter the signals corresponding to each frequency in the audio signal to be processed.

9. The method according to claim 1, characterized in that: The high shelf filter parameters and the low shelf filter parameters are determined according to the sound pressure level difference relationship corresponding to the volume.

10. The method according to claim 1 or 9, characterized in that: The sound pressure level difference relationship includes a compensation amplitude spectrum in the frequency domain; The high-shelf filter parameters and the low-shelf filter parameters indicated by the sound pressure level difference relationship corresponding to the volume are obtained by the following steps: Determine a high shelf filter coefficient and a low shelf filter coefficient at the volume, wherein the coefficients include at least one of the following: a gain coefficient, a cutoff frequency, and a slope coefficient; Determining the high-shelf filter parameters according to the high-shelf filter coefficients to obtain the amplitude spectrum of the high-shelf filter in the frequency domain; and determining the low-shelf filter parameters according to the low-shelf filter coefficients to obtain the amplitude spectrum of the low-shelf filter in the frequency domain; According to the differences between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensated amplitude spectrum, the high shelf filter coefficients and the low shelf filter coefficients are adjusted to obtain the high shelf filter parameters and the low shelf filter parameters of the volume indication.

11. The method according to claim 10, characterized in that The step of determining the high shelf filter coefficient and the low shelf filter coefficient at the volume comprises: A high shelf filter coefficient at the volume is obtained from a first preset range, and a low shelf filter coefficient at the volume is obtained from a second preset range.

12. The method according to claim 10, characterized in that The adjusting the high shelf filter coefficient and the low shelf filter coefficient according to the difference between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensation amplitude spectrum respectively comprises: If the errors between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensated amplitude spectrum are respectively greater than a preset difference, re-determine the high shelf filter coefficient and the low shelf filter coefficient at the volume; wherein the re-determined high shelf filter coefficient and the low shelf filter coefficient are different from the previously determined high shelf filter coefficient and the low shelf filter coefficient; If the errors between the amplitude spectrum of the high shelf filter in the frequency domain and the amplitude spectrum of the low shelf filter in the frequency domain and the compensated amplitude spectrum are respectively less than or equal to the preset difference, the high shelf filter parameters and the low shelf filter parameters determined this time are obtained.

13. The method according to claim 1, characterized in that The reference loudness is determined according to the sound pressure level corresponding to a frequency of 1 kHz at a reference volume.

14. The method according to claim 13, characterized in that The method further comprises: If the sound pressure level corresponding to the frequency of 1kHz at the reference volume is greater than a preset threshold, the reference loudness is determined according to the preset threshold; the preset threshold represents the maximum sound pressure level that the user can withstand; If the sound pressure level corresponding to the frequency of 1 kHz at the reference volume is less than or equal to the preset threshold, the reference loudness is determined according to the sound pressure level corresponding to the frequency of 1 kHz at the reference volume.

15. The method according to claim 1, characterized in that The actual loudness at different volumes is obtained by: Determine the actual loudness of the minimum volume according to the sound pressure level corresponding to the frequency of 1 kHz at the minimum volume; and determine the actual loudness of the maximum volume according to the sound pressure level corresponding to the frequency of 1 kHz at the maximum volume; The actual loudness of other volumes between the minimum volume and the maximum volume is determined according to the actual loudness of the minimum volume and the actual loudness of the maximum volume.

16. An audio signal processing device, characterized in that: include: A volume determination module, used to determine the volume of the audio signal to be processed; a sound pressure level difference relationship determining module, configured to obtain a sound pressure level difference relationship corresponding to the volume according to the volume of the audio signal to be processed, wherein the sound pressure level difference relationship represents a sound pressure level difference between an actual loudness of the volume and a reference loudness at different frequencies, and the sound pressure level difference relationship includes a high shelf filter parameter and a low shelf filter parameter indicated by the sound pressure level difference relationship; A loudness compensation module, used to compensate the signal corresponding to each frequency in the audio signal to be processed according to the sound pressure level difference relationship to obtain an audio signal with loudness enhanced, including: determining a high shelf filter at the volume according to the high shelf filter parameters; and determining a low shelf filter at the volume according to the low shelf filter parameters; The audio signal to be processed is filtered according to the high shelf filter and the low shelf filter to obtain an audio signal with enhanced loudness.

17. An electronic device, characterized in that: include: processor; a memory for storing executable instructions; Wherein, when the processor executes the executable instructions, it is configured to implement the method described in any one of claims 1 to 15.

18. A computer-readable storage medium, characterized in that: Computer instructions are stored thereon, and when the instructions are executed by a processor, the steps of any method described in claims 1 to 15 are implemented.

Citation Information

Patent Citations

  • Equal-loudness contour-based loudness compensation method and device, and audio processing system

    CN102378085A

  • Full-digital FM / AM signal demodulation and analysis method

    CN103973620A

  • Short group time-delay digit filtering method

    CN104836547A

  • Audio volume regulation method and terminal and computer readable storage medium

    CN107256139A

  • Digital audio signal volume equal loudness adjusting method

    CN109473115A