CN113472938A - Audio control method and device, terminal and storage medium - Google Patents
Audio control method and device, terminal and storage medium Download PDFInfo
- Publication number
- CN113472938A CN113472938A CN202110969111.3A CN202110969111A CN113472938A CN 113472938 A CN113472938 A CN 113472938A CN 202110969111 A CN202110969111 A CN 202110969111A CN 113472938 A CN113472938 A CN 113472938A
- Authority
- CN
- China
- Prior art keywords
- loudness
- signal
- frequency
- processed
- audio signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6033—Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
- H04M1/6041—Portable telephones adapted for handsfree use
- H04M1/605—Portable telephones adapted for handsfree use involving control of the receiver volume to provide a dual operational mode at close or far distance from the user
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Tone Control, Compression And Expansion, Limiting Amplitude (AREA)
- Stereophonic System (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The audio control method comprises the steps of determining compensation corresponding to signals of each frequency in audio signals to be processed according to a preset mapping curve, wherein the preset mapping curve is determined according to equal loudness curves of different loudness; calculating the loudness of the audio signal to be processed according to the signal of each frequency and the compensation corresponding to the signal of each frequency; and adjusting the loudness to a preset loudness range. The audio control method, the audio control device, the terminal and the nonvolatile computer readable storage medium compensate signals of each frequency in the audio signals, so that loudness difference caused by different frequencies is eliminated, accuracy of loudness of the audio signals obtained through calculation is high, playing experience of the audio signals adjusted to the preset loudness range is good, and the problem that human ears receive different loudness of the audio with different frequencies when the audio is played at the same volume is solved, for example, the receiving loudness of low-frequency signals is higher than that of high-frequency signals.
Description
Technical Field
The present application relates to the field of audio processing technologies, and in particular, to an audio control method, an audio control apparatus, a terminal, and a non-volatile computer-readable storage medium.
Background
At present, when a mobile terminal plays audio, due to different proportions of signals with different frequencies in the audio, the problem of different audio loudness when the mobile terminal plays the audio with the same volume exists.
Disclosure of Invention
An audio control method, an audio control apparatus, a terminal, and a non-volatile computer-readable storage medium are provided.
The audio control method comprises the steps of determining compensation corresponding to signals of each frequency in audio signals to be processed according to a preset mapping curve, wherein the preset mapping curve is determined according to equal loudness curves with different loudness, and in the preset mapping curve, the signals of each frequency correspond to the compensation in a one-to-one mode; calculating the loudness of the audio signal to be processed according to the signal of each frequency and the compensation corresponding to the signal of each frequency; and adjusting the loudness to a preset loudness range.
The audio control device comprises a determining module, a calculating module and an adjusting module. The determining module is used for determining compensation corresponding to each frequency signal in the audio signals to be processed according to a preset mapping curve, the preset mapping curve is determined according to equal loudness curves with different loudness, and the signals of each frequency and the compensation are in one-to-one correspondence in the preset mapping curve; the calculation module is used for calculating the loudness of the audio signal to be processed according to the signal of each frequency and the compensation corresponding to the signal of each frequency; and the adjusting module is used for adjusting the loudness to a preset loudness range.
The terminal of the embodiment of the application comprises a processor. The processor is configured to: determining compensation corresponding to each frequency signal in an audio signal to be processed according to a preset mapping curve, wherein the preset mapping curve is determined according to equal loudness curves with different loudness, and the signals of each frequency and the compensation are in one-to-one correspondence in the preset mapping curve; calculating the loudness of the audio signal to be processed according to the signal of each frequency and the compensation corresponding to the signal of each frequency; and adjusting the loudness to a preset loudness range.
A non-transitory computer-readable storage medium embodying a computer program of embodiments of the application, which when executed by one or more processors, causes the processors to perform the audio control method. The audio control method comprises the steps of determining compensation corresponding to signals of each frequency in audio signals to be processed according to a preset mapping curve, determining the preset mapping curve according to equal loudness curves of different loudness, and enabling the signals of each frequency and the compensation to correspond in a one-to-one mode in the preset mapping curve; calculating the loudness of the audio signal to be processed according to the signal of each frequency and the compensation corresponding to the signal of each frequency; and adjusting the loudness to a preset loudness range.
According to the audio control method, the audio control device, the terminal and the nonvolatile computer readable storage medium, the signals of all frequencies in the audio signals are compensated according to the preset mapping curve determined by the equal loudness curves of different frequencies, so that loudness difference caused by different frequencies is eliminated, the accuracy of the calculated loudness of the audio signals is higher, the playing experience of the audio signals adjusted to the preset loudness range is better, and the problem that the receiving loudness of the audios of different frequencies received by human ears is different when the audios are played at the same volume is solved, for example, the receiving loudness of the low-frequency signals is higher than the receiving loudness of the high-frequency signals.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic flow chart diagram of an audio control method according to some embodiments of the present application;
FIG. 2 is a block schematic diagram of an audio control device according to some embodiments of the present application;
FIG. 3 is a schematic plan view of a terminal according to some embodiments of the present application;
FIGS. 4 and 5 are schematic diagrams of audio control methods according to certain embodiments of the present application;
FIGS. 6-8 are schematic flow charts of audio control methods according to some embodiments of the present application; and
FIG. 9 is a schematic diagram of a connection between a processor and a computer-readable storage medium according to some embodiments of the present application.
Detailed Description
Embodiments of the present application will be further described below with reference to the accompanying drawings. The same or similar reference numbers in the drawings identify the same or similar elements or elements having the same or similar functionality throughout. In addition, the embodiments of the present application described below in conjunction with the accompanying drawings are exemplary and are only for the purpose of explaining the embodiments of the present application, and are not to be construed as limiting the present application.
Referring to fig. 1 to 3, an audio control method according to an embodiment of the present invention includes the following steps:
011: determining compensation corresponding to each frequency signal in the audio signals to be processed according to a preset mapping curve, determining the preset mapping curve according to equal loudness curves with different loudness, wherein in the preset mapping curve, the signals with each frequency and the compensation are in one-to-one correspondence;
012: calculating the loudness of the audio signal to be processed according to the signal of each frequency and the compensation corresponding to the signal of each frequency; and
013: and adjusting the loudness to a preset loudness range.
The audio control apparatus 10 of the embodiment of the present application includes a determination module 11, a calculation module 12, and an adjustment module 13. The determining module 11 is configured to determine, according to a preset mapping curve, compensation corresponding to a signal of each frequency in an audio signal to be processed, where the preset mapping curve is determined according to equal loudness curves of different loudness, and in the preset mapping curve, the signal of each frequency corresponds to the compensation one by one; the calculating module 12 is configured to calculate loudness of the audio signal to be processed according to the signal of each frequency and the compensation corresponding to the signal of each frequency; the adjusting module 13 is configured to adjust the loudness to a preset loudness range. That is, step 011 can be implemented by the determination module 11, step 012 can be performed by the calculation module 12, and step 013 can be performed by the adjustment module 13.
The terminal 100 of the present embodiment includes a processor 20. The processor 20 is configured to determine, according to a preset mapping curve, compensation corresponding to a signal of each frequency in an audio signal to be processed, where the preset mapping curve is determined according to equal loudness curves of different loudness, and in the preset mapping curve, the signal of each frequency corresponds to the compensation one to one; calculating the loudness of the audio signal to be processed according to the signal of each frequency and the compensation corresponding to the signal of each frequency; and adjusting the loudness to a preset loudness range. That is, step 011, step 012, and step 013 can be performed by processor 20.
Specifically, the terminal 100 may be a mobile phone, a smart watch, a tablet computer, a display device, a notebook computer, a teller machine, a gate, a head display device, a game machine, or the like. As shown in fig. 2, in the embodiment of the present application, the terminal 100 is a mobile phone as an example, and it is understood that the specific form of the terminal 100 is not limited to the mobile phone.
It can be understood that, since the real hearing senses of the human ears in the frequency bands are not consistent under the same loudness, the loudness heard by the human ears is different when the audios with different frequencies are played at the same volume. For example, the receiving loudness of the human ear receiving a low-frequency audio signal is greater than the receiving loudness of a high-frequency audio signal at the same volume, and the loudness of the low-frequency signal is greater for the human ear, so that if the receiving loudness of the low-frequency audio signal and the receiving loudness of the high-frequency audio signal are consistent, it is necessary to perform processing on the low-frequency audio signal and/or the high-frequency audio signal, such as reducing the loudness of the low-frequency audio signal and/or increasing the loudness of the high-frequency audio signal. Thus, the loudness of the audio signal at low frequencies can be reduced and/or the amplitude of the loudness of the audio signal at high frequencies can be increased, i.e. the compensation of the audio signal at different frequencies can be determined, based on the equal loudness curves corresponding to the actual loudness of the signals at different frequencies.
Fig. 4 is an equal loudness curve of different frequencies, where the abscissa is frequency and the ordinate is actual loudness, and the curve indicates actual loudness corresponding to different frequencies under the same receiving loudness. According to the multiple equal loudness curves, a mapping curve can be generated through fitting so as to determine compensation corresponding to different frequencies.
As shown in fig. 5, for fitting the generated mapping curve, the abscissa is frequency, and the ordinate is a compensation value, it can be seen that the compensation values of the low-frequency audio signal are all negative values, i.e., negative compensation, which indicates that the actual loudness of the low-frequency audio signal needs to be reduced under the same receiving loudness, and the magnitude of the negative compensation is positively correlated with the magnitude of the frequency, i.e., the higher the frequency is, the smaller the magnitude of the actual loudness that needs to be reduced is; the compensation values for the intermediate frequency signals are positive numbers, namely positive compensation, which means that under the same receiving loudness, the actual loudness of the intermediate frequency audio signals needs to be increased, and the positive compensation magnitude is positively correlated with the frequency magnitude, namely the higher the frequency is, the smaller the amplitude of the increase of the actual loudness needs to be; while the compensation values for the high frequency signals (i.e., the third frequency band, such as 5000HZ to 16000HZ) are all positive numbers, i.e., positive compensation, indicating that the actual loudness of the high frequency audio signals needs to be increased under the same received loudness, but since the high frequency audio signals cannot be over-compensated to cause audio distortion, the compensation values for the high frequency audio signals can be set to a fixed value, such as the maximum positive compensation for the intermediate frequency audio signals (4 decibels (db) as shown in fig. 5).
The first frequency band, the second frequency band and the third frequency band are not overlapped with each other, and the central frequency of the first frequency band, the central frequency of the second frequency band and the central frequency of the third frequency band are increased in sequence. As shown in fig. 5, the frequency bands corresponding to the low-frequency audio signal (i.e., the audio signal in the first frequency band) are [0 Hertz (HZ), 1000HZ ], the frequency bands corresponding to the intermediate-frequency audio signal (i.e., the audio signal in the second frequency band) are [1000HZ, 5000HZ ], and the frequency bands corresponding to the high-frequency audio signal (i.e., the audio signal in the third frequency band) are [5000HZ, 16000HZ ").
After determining the mapping curve, the processor 20 may obtain an initial audio signal, and it is understood that the initial audio signal is generally a time domain signal, and therefore, in order to obtain the amplitude corresponding to each frequency, it is necessary to perform a transform process on the initial audio signal, for example, perform a fourier transform on the initial audio signal, so as to convert the initial audio signal into a frequency domain audio signal to be processed. Then, the processor 20 determines the compensation corresponding to the signal of each frequency in the audio signal to be processed according to the mapping curve, and then calculates the loudness of the audio signal to be processed according to the compensation and the amplitude corresponding to the signal of each frequency. The processor 20 then adjusts the loudness of the audio signal to be processed so that the loudness of the audio signal to be processed reaches a preset loudness range. The preset loudness range is determined according to user input, and for example, the preset loudness range is determined according to the volume adjusted by the user. Therefore, the loudness of each audio to be processed (namely the receiving loudness of the human ear) is accurately calculated, so that the adjusted loudness conforms to the preset loudness range, and the fact that different audio signals conform to the actual listening feeling of the human ear after being adjusted is guaranteed.
Different users have different audios due to age, physical factors and the like, for example, the loudness of 50db can only reach the loudness of 40db under the hearing sense of someone, so the preset mapping curve can be adjusted by the input of the user. For example, when the user feels that the volume is smaller at a normal volume (e.g., 50% of the maximum volume), the volume progress bar may be adjusted to 60%, and the processor 20 may increase the overall compensation of the mapping curve (e.g., by 20%) according to the input of the user, so that the audio conforms to the current user's hearing after the loudness adjustment; for another example, when the user feels that the volume is too large in a normal volume (e.g., 50% of the maximum volume), the volume progress bar may be adjusted to 40%, and the processor 20 may decrease the overall compensation of the mapping curve (e.g., by 20%) according to the input of the user, so that the audio conforms to the current listening feeling of the user after performing loudness adjustment.
The audio control method, the audio control device 10 and the terminal 100 of the application compensate signals of each frequency in the audio signals according to the preset mapping curve determined by equal loudness curves of different frequencies, so that loudness difference caused by different frequencies is eliminated, accuracy of loudness of the calculated audio signals is high, and the calculated loudness is in line with actual hearing of human ears.
Referring to fig. 2, fig. 3 and fig. 6, in some embodiments, the audio control method further includes:
014: the method comprises the steps of acquiring an audio input signal, and dividing the audio input signal into a plurality of initial audio signals with preset duration, wherein the initial audio signals are time domain signals.
In some embodiments, the audio control apparatus 10 further includes an obtaining module 14, and the obtaining module 14 is further configured to obtain an audio input signal and divide the audio input signal into a plurality of initial audio signals of a predetermined duration, where the initial audio signals are time domain signals. That is, step 014 may be performed by acquisition module 14.
In some embodiments, the processor 20 is further configured to obtain an audio input signal and divide the audio input signal into a plurality of initial audio signals of a predetermined duration, the initial audio signals being time domain signals. That is, step 014 may be performed by processor 20.
Specifically, the processor 20 may receive an audio input signal, and it is understood that the audio input signal is a time domain signal with a long time duration, and therefore, in order to ensure the loudness calculation accuracy of the audio signal to be processed, the audio input signal needs to be divided to generate a plurality of initial audio signals, such as divided by a predetermined time duration (e.g., 10 milliseconds (ms), 15ms, 20ms, etc.). The method and the device can prevent the overlong length of the audio signal to be processed after each initial audio signal is subjected to conversion processing, and influence on the loudness calculation accuracy of the audio signal to be processed. Of course, the predetermined time period may also be determined based on a combination of the time period of the audio input signal, the processing efficiency of the audio signal by the processor 20, and the like, to achieve a balance between the degree calculation accuracy and the processing speed.
Referring to fig. 2, 3 and 7, in some embodiments, step 012 includes:
0121: and calculating the loudness corresponding to the signal of each frequency according to the compensation and the amplitude corresponding to the signal of each frequency, and taking the sum of the loudness corresponding to the signal of each frequency as the loudness of the audio signal to be processed.
In some embodiments, the calculating module 12 is further configured to calculate a loudness corresponding to the signal of each frequency according to the compensation and amplitude corresponding to the signal of each frequency, and use the sum of the loudness corresponding to the signal of each frequency as the loudness of the audio signal to be processed. That is, step 121 may be performed by computing module 12.
In some embodiments, the processor 20 is further configured to calculate a loudness corresponding to the signal of each frequency according to the compensation and amplitude corresponding to the signal of each frequency, and use the sum of the loudness corresponding to the signal of each frequency as the loudness of the audio signal to be processed. That is, step 0121 may be performed by processor 20.
Specifically, after the audio signal to be processed in the frequency domain is obtained, the compensation corresponding to the signal of each frequency in the audio signal to be processed can be determined according to the preset mapping curve, the loudness of the signal of each frequency can be calculated according to the amplitude of the signal of each frequency and the corresponding compensation, and then the loudness of the signal of each frequency in the audio signal to be processed is added up to obtain the loudness of the audio signal to be processed. Or, taking the average value of the loudness of the signal of each frequency in the audio signal to be processed as the loudness of the audio signal to be processed.
Referring to fig. 2, 3 and 8, in some embodiments, step 013 includes:
0131: when the loudness of the audio signal to be processed is smaller than the minimum value of the loudness range, acquiring the loudness corresponding to the maximum amplitude in the audio signal to be processed, and performing first gain on the audio signal to be processed to enable the loudness corresponding to the maximum amplitude to reach a preset loudness and generate a first processed audio signal;
0132: when the loudness of the first processed audio signal is smaller than the minimum value of the loudness range, performing second gain on signals, located in the first loudness range, in the first processed audio signal to generate a second processed audio signal, wherein the loudness of the second processed audio signal is located in the loudness range;
0133: and when the loudness of the audio signal to be processed is greater than the maximum value of the loudness range, performing first gain on the audio signal to be processed to generate a first processed audio signal, wherein the loudness of the first audio signal is in the loudness range.
In some embodiments, the adjusting module 13 is further configured to, when the loudness of the audio signal to be processed is smaller than the minimum value of the loudness range, obtain a loudness corresponding to the maximum amplitude in the audio signal to be processed, perform a first gain on the audio signal to be processed, so that the loudness corresponding to the maximum amplitude reaches a predetermined loudness, and generate a first processed audio signal; when the loudness of the first processed audio signal is smaller than the minimum value of the loudness range, performing second gain on signals, located in the first loudness range, in the first processed audio signal to generate a second processed audio signal, wherein the loudness of the second processed audio signal is located in the loudness range; and when the loudness of the audio signal to be processed is greater than the maximum value of the loudness range, performing first gain on the audio signal to be processed to generate a first processed audio signal, wherein the loudness of the first audio signal is in the loudness range. That is, step 0131, step 0132, and step 0133 may be performed by the adjustment module 13.
In some embodiments, the processor 20 is further configured to, when the loudness of the audio signal to be processed is smaller than the minimum value of the loudness range, obtain a loudness corresponding to the maximum amplitude in the audio signal to be processed, perform a first gain on the audio signal to be processed, so that the loudness corresponding to the maximum amplitude reaches a predetermined loudness, and generate a first processed audio signal; when the loudness of the first processed audio signal is smaller than the minimum value of the loudness range, performing second gain on signals, located in the first loudness range, in the first processed audio signal to generate a second processed audio signal, wherein the loudness of the second processed audio signal is located in the loudness range; and when the loudness of the audio signal to be processed is greater than the maximum value of the loudness range, performing first gain on the audio signal to be processed to generate a first processed audio signal, wherein the loudness of the first audio signal is in the loudness range. That is, step 0131, step 0132 and step 0133 may be executed by processor 20.
Specifically, when the loudness of the audio signal to be processed is adjusted, the loudness of the audio signal to be processed can be adjusted in a mode of combining the overall gain and the local gain, wherein the overall gain does not affect the dynamic range of the audio signal to be processed, but the overall gain is too large, which easily causes the problem of wave elimination, resulting in distortion of the audio signal to be processed, therefore, when the overall gain cannot adjust the loudness of the audio signal to be processed within the preset loudness range, the partial dynamic range of the audio signal to be processed can be properly sacrificed, the local gain is used to gain the partial signal, and the loudness of the audio signal to be processed is adjusted within the preset loudness range under the condition of ensuring that the audio signal to be processed is not distorted.
The processor 20 determines a relationship between the loudness of the audio signal to be processed and a preset loudness range, if the loudness of the audio signal to be processed is within the loudness range, the loudness of the audio signal to be processed does not need to be adjusted, if the loudness of the audio signal to be processed is smaller than the minimum value of the loudness range, it indicates that the loudness of the audio signal to be processed needs to be increased, but in order to prevent the problem of wave cancellation, the processor 20 first obtains the loudness corresponding to the maximum amplitude in the audio signal to be processed, thereby determining a first gain according to the maximum amplitude in the audio signal to be processed, for example, the loudness corresponding to the maximum amplitude is-6 db, the maximum first gain capable of preventing wave cancellation is 6db, at this time, the loudness corresponding to the maximum amplitude reaches a predetermined loudness (for example, 0db), then the processor 20 may adjust the audio signal to be processed by the first gain, and gain all signals of the audio signal to be processed by 6db, thereby generating a first processed audio signal.
Then, the processor 20 determines compensation of the signal of each frequency in the first processed audio signal according to the mapping curve to calculate the loudness of the first processed audio signal, and then determines whether the loudness of the first processed audio signal is within the loudness range, and if the loudness of the first processed audio signal is within the loudness range, the loudness of the processed audio signal does not need to be adjusted. Therefore, under the condition of ensuring that the audio signal to be processed is not distorted and the dynamic range is not influenced, the loudness of the audio signal to be processed is adjusted to the preset loudness range.
And if the loudness of the first processed audio signal is still less than the minimum value of the loudness range, performing a second gain on a signal in the first loudness range in the first processed audio signal, for example, dividing the signal into a first loudness signal, a second loudness signal and a third loudness signal according to loudness, wherein the loudness range corresponding to the first loudness signal is the first loudness range (e.g., less than-75 db), the loudness range corresponding to the second loudness signal is the third loudness range (e.g., the interval [ -75db, -10db)), and the loudness range corresponding to the third loudness signal is the second loudness range (e.g., the interval [ -10db, 0db ]). The processor 20 performs a second gain on the first loudness signal to generate a second processed audio signal, where a gain value of the second gain may be 75db at most (it is ensured that the first loudness signal does not cancel waves), and the boost is large, so that after the second gain is performed, the loudness of the second processed audio signal can be basically adjusted to be within a loudness range, thereby completing the loudness adjustment of the audio signal to be processed.
When performing the second gain on the signal in the first loudness range in the first processed audio signal, the processor 20 may first perform inverse transform (for example, inverse fourier transform) on the first processed audio signal, convert the first processed audio signal into a time domain signal, then obtain the first processed audio signal as the time domain signal, and then perform the second gain on the signal in the first frequency band, the signal in the second frequency band, and the signal in the third frequency band (that is, the low frequency signal, the intermediate frequency signal, and the high frequency signal) in the first loudness range, and then perform the second gain on the signal in the first frequency band, the signal in the second frequency band, and the signal in the third frequency band, respectively, thereby generating the second processed audio signal.
Of course, when the loudness of the second processed audio signal still cannot reach the loudness range after the maximum second gain is adjusted, the processor 20 may also perform the second gain on the second loudness signal and/or the third loudness signal, so as to ensure that the loudness is adjusted to the loudness range without distortion of the audio signal to be processed.
If the loudness of the audio signal to be processed is greater than the maximum value of the loudness range, it indicates that the loudness of the audio signal to be processed is reduced, and at this time, the problem of wave cancellation does not occur, so to ensure the dynamic range, the processor 20 may adjust the audio signal to be processed with the first gain, where the first gain is a negative gain, and if the signal is-6 db and the first gain is-6 db, the signal is changed to-12 db after the first gain adjustment, thereby achieving the reduction of the loudness of the signal. Therefore, the loudness of the first audio signal after the first gain is ensured to be in the loudness range only by performing the first gain on the audio signal to be processed and setting the value of the first gain.
Naturally, in order to realize loudness adjustment to a smaller degree, the second gain may also be performed only on the first loudness signal, the second loudness signal, or the third loudness signal in the audio signal to be processed, so that the loudness change of the adjusted second audio signal is small, which is beneficial to realizing accurate loudness adjustment of the audio signal to be processed.
When performing the second gain on the signal in the second loudness range in the first processed audio signal, the processor 20 may first perform inverse transform (for example, inverse fourier transform) on the second processed audio signal, convert the second processed audio signal into a time domain signal, then obtain the first processed audio signal as the time domain signal, and then perform the second gain on the signal in the first frequency band, the signal in the second frequency band, and the signal in the third frequency band (that is, the low frequency signal, the intermediate frequency signal, and the high frequency signal) in the second loudness range, and then perform the second gain on the signal in the first frequency band, the signal in the second frequency band, and the signal in the third frequency band, respectively, thereby generating the second processed audio signal.
It is understood that the second gain of the signal of the first frequency band, the second gain of the signal of the second frequency band and the second gain of the signal of the third frequency band may be the same or different, so as to realize dynamic control of high, medium and low frequencies, wherein the second gain of the low frequency signal is set to be larger if bass enhancement is desired, and the second gain of the high frequency signal is set to be larger if treble enhancement is desired.
Therefore, dynamic control is realized on the premise of ensuring that the audio signal to be processed is not distorted, and the loudness of the audio signal to be processed is adjusted to be within a preset loudness range, so that the playing experience is favorably improved.
Referring to fig. 9, one or more non-transitory computer-readable storage media 300 containing a computer program 302 according to an embodiment of the present disclosure, when the computer program 302 is executed by one or more processors 20, enable the processor 20 to perform the calibration method according to any of the embodiments described above.
For example, referring to fig. 1-3, the computer program 302, when executed by the one or more processors 20, causes the processors 20 to perform the steps of:
011: determining compensation corresponding to each frequency signal in the audio signal to be processed according to a preset mapping curve, wherein the mapping curve is determined according to equal loudness curves of different frequencies;
012: calculating the loudness of the audio signal to be processed according to the amplitude and the compensation corresponding to the signal of each frequency; and
013: and adjusting the loudness to a preset loudness range.
As another example, referring to fig. 2, 3 and 8 in conjunction, when the computer program 302 is executed by the one or more processors 20, the processors 20 may further perform the steps of:
0131: when the loudness of the audio signal to be processed is smaller than the minimum value of the loudness range, acquiring the loudness corresponding to the maximum amplitude in the audio signal to be processed, and performing first gain on the audio signal to be processed to enable the loudness corresponding to the maximum amplitude to reach a preset loudness and generate a first processed audio signal;
0132: when the loudness of the first processed audio signal is smaller than the minimum value of the loudness range, performing second gain on signals, located in the first loudness range, in the first processed audio signal to generate a second processed audio signal, wherein the loudness of the second processed audio signal is located in the loudness range;
0133: and when the loudness of the audio signal to be processed is greater than the maximum value of the loudness range, performing first gain on the audio signal to be processed to generate a first processed audio signal, wherein the loudness of the first audio signal is in the loudness range.
In the description herein, references to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example" or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the various embodiments or examples and features of the various embodiments or examples described in this specification can be combined and combined by those skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
Although embodiments of the present application have been shown and described above, it is to be understood that the above embodiments are exemplary and not to be construed as limiting the present application, and that changes, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (10)
1. An audio control method, comprising:
determining compensation corresponding to each frequency signal in an audio signal to be processed according to a preset mapping curve, wherein the preset mapping curve is determined according to equal loudness curves with different loudness, and the signals of each frequency and the compensation are in one-to-one correspondence in the preset mapping curve;
calculating the loudness of the audio signal to be processed according to the signal of each frequency and the compensation corresponding to the signal of each frequency; and
and adjusting the loudness to a preset loudness range.
2. The audio control method according to claim 1, further comprising:
the method comprises the steps of obtaining an audio input signal, and dividing the audio input signal into a plurality of initial audio signals with preset duration, wherein the initial audio signals are time domain signals.
3. The audio control method of claim 2, further comprising:
and carrying out transformation processing on the initial audio signal so as to convert the initial audio signal into the audio signal to be processed, wherein the audio signal to be processed is a frequency domain signal.
4. The audio control method according to claim 1, wherein the compensation corresponding to the signal of each frequency in the first frequency band preset in the mapping curve is negative and is inversely related to the magnitude of the frequency; the compensation corresponding to the signal of each frequency in a second frequency band preset in the mapping curve is a positive number and is positively correlated with the magnitude of the frequency; the compensation corresponding to the signal of each frequency in a third frequency band preset in the mapping curve is a positive number and is a fixed value; the first frequency band, the second frequency band and the third frequency band are not overlapped with each other, and the central frequency of the first frequency band, the central frequency of the second frequency band and the central frequency of the third frequency band are increased in sequence.
5. The audio control method of claim 1, wherein the adjusting the loudness to a preset loudness range comprises:
when the loudness of the audio signal to be processed is smaller than the minimum value of the loudness range, acquiring the loudness corresponding to the maximum amplitude in the audio signal to be processed, and performing first gain on the audio signal to be processed so that the loudness corresponding to the maximum amplitude reaches a preset loudness, and generating a first processed audio signal;
and when the loudness of the first processed audio signal is smaller than the minimum value of the loudness range, performing second gain on signals in the first loudness range in the first processed audio signal to generate a second processed audio signal, wherein the loudness of the second processed audio signal is in the loudness range.
6. The audio control method of claim 1, wherein the adjusting the loudness to a preset loudness range comprises:
and when the loudness of the audio signal to be processed is greater than the maximum value of the loudness range, performing first gain on the audio signal to be processed to generate a first processed audio signal, wherein the loudness of the first audio signal is in the loudness range.
7. The audio control method of claim 6, wherein the performing a second gain on signals of the first processed audio signal that are within a first loudness range to generate a second processed audio signal comprises:
performing the second gain on the signal of the first frequency band, the signal of the second frequency band and the signal of the third frequency band within the first loudness range in the first processed audio signal respectively to generate a second processed audio signal;
performing a second gain on signals within a second loudness range in the first processed audio signal to generate a second processed audio signal, comprising:
and respectively performing the second gain on the signal of the first frequency band, the signal of the second frequency band and the signal of the third frequency band in the second loudness range in the first processed audio signal to generate the second processed audio signal, wherein the first frequency band, the second frequency band and the third frequency band are not overlapped with each other.
8. An audio control apparatus, comprising:
the determining module is used for determining compensation corresponding to each frequency signal in the audio signals to be processed according to a preset mapping curve, the preset mapping curve is determined according to equal loudness curves with different loudness, and the signals of each frequency and the compensation are in one-to-one correspondence in the preset mapping curve;
the calculating module is used for calculating the loudness of the audio signal to be processed according to the signal of each frequency and the compensation corresponding to the signal of each frequency; and
and the adjusting module is used for adjusting the loudness to a preset loudness range.
9. A terminal is characterized by comprising a processor, wherein the processor is used for determining compensation corresponding to each frequency signal in an audio signal to be processed according to a preset mapping curve, the preset mapping curve is determined according to equal loudness curves with different loudness, and in the preset mapping curve, the signal of each frequency corresponds to the compensation in a one-to-one mode; calculating the loudness of the audio signal to be processed according to the signal of each frequency and the compensation corresponding to the signal of each frequency; and adjusting the loudness to a preset loudness range.
10. A non-transitory computer-readable storage medium comprising a computer program that, when executed by a processor, causes the processor to perform the audio control method of any of claims 1-7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110969111.3A CN113472938B (en) | 2021-08-23 | 2021-08-23 | Audio control method and device, terminal and storage medium |
PCT/CN2022/104501 WO2023024725A1 (en) | 2021-08-23 | 2022-07-08 | Audio control method and apparatus, and terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110969111.3A CN113472938B (en) | 2021-08-23 | 2021-08-23 | Audio control method and device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113472938A true CN113472938A (en) | 2021-10-01 |
CN113472938B CN113472938B (en) | 2023-06-30 |
Family
ID=77867018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110969111.3A Active CN113472938B (en) | 2021-08-23 | 2021-08-23 | Audio control method and device, terminal and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113472938B (en) |
WO (1) | WO2023024725A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114449413A (en) * | 2022-02-16 | 2022-05-06 | 深圳万兴软件有限公司 | Method, device and equipment for controlling loudness of audio signal and storage medium |
CN114466285A (en) * | 2022-02-16 | 2022-05-10 | 深圳万兴软件有限公司 | Method, device and equipment for adjusting loudness of audio signal and storage medium |
CN114501233A (en) * | 2022-01-30 | 2022-05-13 | 联想(北京)有限公司 | Signal processing method and device and electronic equipment |
CN115086837A (en) * | 2022-06-15 | 2022-09-20 | 北斗星通智联科技有限责任公司 | Sound effect enhancing method and device |
WO2023024725A1 (en) * | 2021-08-23 | 2023-03-02 | Oppo广东移动通信有限公司 | Audio control method and apparatus, and terminal and storage medium |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116129926B (en) * | 2023-04-19 | 2023-06-09 | 北京北信源软件股份有限公司 | Natural language interaction information processing method for intelligent equipment |
CN118158596B (en) * | 2023-12-07 | 2024-08-16 | 中国建筑科学研究院有限公司 | Intelligent sound scene control method applied to green building and based on masking effect |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105657608A (en) * | 2015-12-31 | 2016-06-08 | 深圳Tcl数字技术有限公司 | Audio signal frequency response compensation method and device |
CN109040885A (en) * | 2017-06-09 | 2018-12-18 | 中国科学院声学研究所 | A kind of personalized loudness compensation method and system for headphone equalization based on volume |
CN109473115A (en) * | 2018-11-22 | 2019-03-15 | 四川长虹电器股份有限公司 | The loudness adjusting method such as digital audio and video signals volume |
CN109658942A (en) * | 2018-12-27 | 2019-04-19 | 腾讯音乐娱乐科技(深圳)有限公司 | A kind of audio data processing method, device and relevant device |
CN110446102A (en) * | 2018-05-04 | 2019-11-12 | 青岛海信电器股份有限公司 | The loudness method of adjustment and device of audio signal |
CN111966322A (en) * | 2020-08-31 | 2020-11-20 | 广州视源电子科技股份有限公司 | Audio signal processing method, device, equipment and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102378085B (en) * | 2010-08-21 | 2014-12-17 | 比亚迪股份有限公司 | Equal-loudness contour-based loudness compensation method and device, and audio processing system |
CN102915741A (en) * | 2012-10-29 | 2013-02-06 | 上海大学 | Equal loudness contour based method for automatically recovering tone of voice signal according to volume adjustment |
GB201912415D0 (en) * | 2019-08-29 | 2019-10-16 | Cosi Leigi Paolo | Audio data processing method and system |
CN111970628B (en) * | 2020-08-31 | 2022-03-08 | 广州视源电子科技股份有限公司 | Audio signal enhancement method, device, storage medium and processor |
CN113472938B (en) * | 2021-08-23 | 2023-06-30 | Oppo广东移动通信有限公司 | Audio control method and device, terminal and storage medium |
CN113992781A (en) * | 2021-10-28 | 2022-01-28 | Oppo广东移动通信有限公司 | Volume control method and device, electronic equipment and computer readable storage medium |
-
2021
- 2021-08-23 CN CN202110969111.3A patent/CN113472938B/en active Active
-
2022
- 2022-07-08 WO PCT/CN2022/104501 patent/WO2023024725A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105657608A (en) * | 2015-12-31 | 2016-06-08 | 深圳Tcl数字技术有限公司 | Audio signal frequency response compensation method and device |
CN109040885A (en) * | 2017-06-09 | 2018-12-18 | 中国科学院声学研究所 | A kind of personalized loudness compensation method and system for headphone equalization based on volume |
CN110446102A (en) * | 2018-05-04 | 2019-11-12 | 青岛海信电器股份有限公司 | The loudness method of adjustment and device of audio signal |
CN109473115A (en) * | 2018-11-22 | 2019-03-15 | 四川长虹电器股份有限公司 | The loudness adjusting method such as digital audio and video signals volume |
CN109658942A (en) * | 2018-12-27 | 2019-04-19 | 腾讯音乐娱乐科技(深圳)有限公司 | A kind of audio data processing method, device and relevant device |
CN111966322A (en) * | 2020-08-31 | 2020-11-20 | 广州视源电子科技股份有限公司 | Audio signal processing method, device, equipment and storage medium |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023024725A1 (en) * | 2021-08-23 | 2023-03-02 | Oppo广东移动通信有限公司 | Audio control method and apparatus, and terminal and storage medium |
CN114501233A (en) * | 2022-01-30 | 2022-05-13 | 联想(北京)有限公司 | Signal processing method and device and electronic equipment |
CN114449413A (en) * | 2022-02-16 | 2022-05-06 | 深圳万兴软件有限公司 | Method, device and equipment for controlling loudness of audio signal and storage medium |
CN114466285A (en) * | 2022-02-16 | 2022-05-10 | 深圳万兴软件有限公司 | Method, device and equipment for adjusting loudness of audio signal and storage medium |
CN114466285B (en) * | 2022-02-16 | 2023-09-29 | 深圳万兴软件有限公司 | Method, device, equipment and storage medium for adjusting loudness of audio signal |
CN114449413B (en) * | 2022-02-16 | 2023-12-22 | 深圳万兴软件有限公司 | Method, device, equipment and storage medium for controlling loudness of audio signal |
CN115086837A (en) * | 2022-06-15 | 2022-09-20 | 北斗星通智联科技有限责任公司 | Sound effect enhancing method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2023024725A1 (en) | 2023-03-02 |
CN113472938B (en) | 2023-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113472938B (en) | Audio control method and device, terminal and storage medium | |
CN112954115B (en) | Volume adjusting method and device, electronic equipment and storage medium | |
EP2352225A1 (en) | Audio signal adjustment device and audio signal adjustment method | |
CN106713794B (en) | Method for adjusting audio balance and audio system for providing balance adjustment | |
CN111966322B (en) | Audio signal processing method, device, equipment and storage medium | |
US20120230501A1 (en) | auditory test and compensation method | |
WO2021238458A1 (en) | Method for optimizing sound quality of speaker device | |
CN115209292A (en) | Audio signal compensation method and device, earphone and storage medium | |
CN113992781A (en) | Volume control method and device, electronic equipment and computer readable storage medium | |
CN103780214A (en) | Method and device for adjusting audio equalizer | |
CN111357197B (en) | Audio system and control method thereof | |
US20210384879A1 (en) | Acoustic signal processing device, acoustic signal processing method, and non-transitory computer-readable recording medium therefor | |
KR102508413B1 (en) | Audio signal processing method and apparatus for frequency spectrum correction | |
CN113613122B (en) | Volume adjusting method, volume adjusting device, earphone and storage medium | |
US12101605B2 (en) | Adaptive hearing normalization and correction system with automatic tuning | |
US20220345831A1 (en) | Endoscopic three-dimensional imaging systems and methods | |
TW202133629A (en) | A method for audio rendering by an apparatus | |
CN112911460A (en) | Sound box and sound effect control method and sound effect control system thereof | |
CN117119358B (en) | Compensation method and device for sound image offset side, electronic equipment and storage equipment | |
CN114286252B (en) | Method for calibrating frequency response of playing equipment | |
US20230114392A1 (en) | Leakage compensation method and system for headphone | |
WO2024061436A1 (en) | Adaptive audio enhancement system | |
CN118301535A (en) | Audio upmixing algorithm processing method and device, electronic equipment and storage medium | |
Chen et al. | Research and Optimization of Multichannel Wide Dynamic Compression Algorithm in Hearing Aids | |
CN114615581A (en) | Method and device for improving audio subjective experience quality |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |