CN113472938B - Audio control method and device, terminal and storage medium - Google Patents
Audio control method and device, terminal and storage medium Download PDFInfo
- Publication number
- CN113472938B CN113472938B CN202110969111.3A CN202110969111A CN113472938B CN 113472938 B CN113472938 B CN 113472938B CN 202110969111 A CN202110969111 A CN 202110969111A CN 113472938 B CN113472938 B CN 113472938B
- Authority
- CN
- China
- Prior art keywords
- loudness
- audio signal
- frequency
- processed
- 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.)
- Active
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)
- Circuit For Audible Band Transducer (AREA)
- Stereophonic System (AREA)
Abstract
The audio control method comprises the steps of determining corresponding compensation of 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. According to the audio control method, the audio control device, the terminal and the non-volatile computer readable storage medium, signals of each frequency in the audio signals are compensated, so that the loudness difference caused by different frequencies is eliminated, the accuracy of the calculated 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 audio signals of different frequencies received by the human ear is different when the audio signals 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.
Description
Technical Field
The present disclosure relates to the field of audio processing technologies, and in particular, to an audio control method, an audio control device, a terminal, and a non-volatile computer readable storage medium.
Background
At present, when the mobile terminal plays the audio, the audio loudness is different when playing at the same volume due to the different proportions of signals with different frequencies in the audio.
Disclosure of Invention
The application provides an audio control method, an audio control device, a terminal and a nonvolatile computer readable storage medium.
The audio control method comprises the steps of determining compensation corresponding to signals of each frequency 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 of different loudness, and in the preset mapping curve, the signals of each frequency correspond to the compensation one by one; calculating the loudness of the audio signal to be processed according to the signals of each frequency and the compensation corresponding to the signals 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 the signal of each frequency in the audio signal to be processed according to a preset mapping curve, 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 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 signals of each frequency in the 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, and in the preset mapping curve, the signals of each frequency correspond to the compensation one by one; calculating the loudness of the audio signal to be processed according to the signals of each frequency and the compensation corresponding to the signals of each frequency; and adjusting the loudness to a preset loudness range.
A non-transitory computer readable storage medium containing a computer program that, 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 an audio signal to be processed according to a preset mapping curve, wherein the preset mapping curve is determined according to equal-loudness curves of different loudness, and in the preset mapping curve, the signals of each frequency correspond to the compensation one by one; calculating the loudness of the audio signal to be processed according to the signals of each frequency and the compensation corresponding to the signals 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 non-volatile computer readable storage medium, signals of each frequency in the audio signals are compensated according to the preset mapping curve determined by equal-loudness curves of different frequencies, so that loudness differences caused by different frequencies are eliminated, the calculated loudness of the audio signals is high in accuracy, the playing experience of the audio signals adjusted to the preset loudness range is good, and the problem that the receiving loudness of the audio signals of different frequencies is different when the audio is played at the same volume is prevented, 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 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 application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an audio control method of certain embodiments of the present application;
FIG. 2 is a block 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 illustrations of audio control methods according to certain embodiments of the present application;
FIGS. 6-8 are flow diagrams of audio control methods according to certain embodiments of the present application; a kind of electronic device with high-pressure air-conditioning system
Fig. 9 is a schematic diagram of a connection of a processor and a computer-readable storage medium of some embodiments of the present application.
Detailed Description
Embodiments of the present application are further described below with reference to the accompanying drawings. The same or similar reference numbers in the drawings refer to the same or similar elements or elements having the same or similar functions throughout. In addition, the embodiments of the present application described below in conjunction with the drawings are exemplary only and are not to be construed as limiting the present application.
Referring to fig. 1 to 3, the audio control method according to the embodiment of the application includes the following steps:
011: determining compensation corresponding to signals of each frequency in the 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, and the signals of each frequency correspond to the compensation one by one in the preset mapping curve;
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; a kind of electronic device with high-pressure air-conditioning system
013: and adjusting the loudness to a preset loudness range.
The audio control device 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, a compensation corresponding to a signal of each frequency in the audio signal to be processed, where the preset mapping curve is determined according to equal loudness curves of different loudness, and the signal of each frequency corresponds to the compensation one by one in the preset mapping curve; the calculating module 12 is configured to calculate 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; the adjusting module 13 is configured to adjust the loudness to a preset loudness range. That is, step 011 may be implemented by determination module 11, step 012 may be performed by calculation module 12, and step 013 may be performed by adjustment module 13.
The terminal 100 of the present embodiment includes a processor 20. The processor 20 is configured to determine a compensation corresponding to the signal of each frequency in the audio signal to be processed according to a preset mapping curve, where the preset mapping curve is determined according to equal loudness curves of different loudness, and the signal of each frequency corresponds to the compensation one by 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, steps 011, 012, and 013 may be performed by the processor 20.
Specifically, the terminal 100 may be a mobile phone, a smart watch, a tablet computer, a display device, a notebook computer, an teller machine, a gate, a head display device, a game machine, and the like. As shown in fig. 2, the embodiment of the present application is described by taking the terminal 100 as an example of a mobile phone, and it is understood that the specific form of the terminal 100 is not limited to the mobile phone.
It will be appreciated that the loudness heard by the human ear is different when the audio of different frequencies is played at the same volume due to the fact that the human ear is not identical for the true hearing of each frequency band at the same loudness. For example, at the same volume, the receiving loudness of the audio signal of the low frequency received by the human ear is larger than the receiving loudness of the audio signal of the high frequency received by the human ear, and thus, if the receiving loudness of the audio signal of the low frequency and the receiving loudness of the audio signal of the high frequency are to be kept identical, the audio signal of the low frequency and/or the audio signal of the high frequency need to be processed, such as reducing the loudness of the audio signal of the low frequency and/or increasing the loudness of the audio signal of the high frequency. Thus, the magnitude of reducing the loudness of the audio signal at low frequencies and/or increasing the loudness of the audio signal at high frequencies, i.e. the compensation of the audio signal at different frequencies, may be determined from 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, the abscissa is frequency, and the ordinate is actual loudness, where the curve represents the actual loudness corresponding to different frequencies at the same receiving loudness. According to the equal-loudness curves, a mapping curve can be generated by fitting to determine the compensation corresponding to different frequencies.
As shown in fig. 5, in order to fit the generated mapping curve, the abscissa is frequency, and the ordinate is the compensation value, it can be seen that the compensation values of the low-frequency audio signals are all negative values, that is, negative compensation, which means that the actual loudness of the low-frequency audio signals 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, that is, the higher the frequency is, the smaller the magnitude of the actual loudness needs to be reduced; the compensation values of the intermediate frequency signals are positive numbers, namely positive compensation, which means that the actual loudness of the intermediate frequency audio signals needs to be increased under the same receiving loudness, and the magnitude of the positive compensation is positively correlated with the magnitude of the frequency, namely the higher the frequency is, the larger the magnitude of the actual loudness needs to be increased; the compensation values for the high frequency signals (i.e., the third frequency band, such as 5000HZ to 16000 HZ) are positive numbers, i.e., positive compensation, which means that the actual loudness of the high frequency audio signals needs to be increased at the same received loudness, but the compensation values for the high frequency audio signals may be set to a fixed value, such as the maximum positive compensation (4 db (db) shown in fig. 5) for the intermediate frequency audio signals, because the high frequency audio signals cannot be overcompensated to cause audio distortion.
The first frequency band, the second frequency band and the third frequency band are not overlapped with each other, and the center frequency of the first frequency band, the center frequency of the second frequency band and the center frequency of the third frequency band are sequentially increased. As shown in fig. 5, the audio signal of the low frequency (i.e., the audio signal of the first frequency band) corresponds to the frequency band of [ 0HZ ], 1000HZ, the audio signal of the intermediate frequency (i.e., the audio signal of the second frequency band) corresponds to the frequency band of [1000HZ,5000 HZ), and the audio signal of the high frequency (i.e., the audio signal of the third frequency band) corresponds to the frequency band of [5000HZ,16000 HZ).
After determining the mapping curve, the processor 20 may acquire the initial audio signal, and it will be understood that the initial audio signal is typically a time domain signal, so, in order to conveniently acquire the amplitude corresponding to each frequency, it is necessary to perform a transformation process on the initial audio signal, for example, fourier transforming the initial audio signal to convert the initial audio signal into a to-be-processed audio signal in the frequency domain. The processor 20 then determines the corresponding compensation of 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 corresponding compensation and the amplitude of the signal of each frequency, and the finally calculated loudness of the audio signal to be processed can accurately represent the receiving loudness of the human ear due to the corresponding compensation of 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, for example, 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 accords with a preset loudness range, and different audio signals are ensured to accord with the actual hearing feeling of the human ear after being adjusted.
Different users have different hearing due to age, physical factors and the like, for example, the loudness of 50db can only reach the loudness of 40db under the hearing feeling of some people, and therefore, the preset mapping curve can be adjusted by the input of the users. For example, when the user perceives 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., 20%) according to the user's input, so that the audio accords with the hearing sensation of the current user after loudness adjustment is performed on the audio; for another example, when the user feels that the volume is larger at the normal volume (e.g., 50% of the maximum volume), the volume progress bar can be adjusted to 40%, and the processor 20 can reduce the overall compensation of the mapping curve (e.g., 20%) according to the input of the user, so that the audio accords with the hearing feeling of the current user after the audio is subjected to loudness adjustment.
According to the audio control method, the audio control device 10 and the terminal 100, according to the preset mapping curve determined by the equal-loudness curves of different frequencies, signals of each frequency in the audio signals are compensated, so that the loudness difference caused by different frequencies is eliminated, the calculated loudness of the audio signals is high in accuracy, the actual listening feeling of human ears is met, the playing experience of the audio signals adjusted to the preset loudness range is good, and the problem that the receiving loudness of the audio signals of different frequencies is different when the audio is played at the same volume is prevented, for example, the receiving loudness of a low-frequency signal is higher than the receiving loudness of a high-frequency signal.
Referring to fig. 2, 3 and 6, in some embodiments, the audio control method further includes:
014: an audio input signal is acquired and divided into a plurality of initial audio signals of a predetermined length, the initial audio signals being time domain signals.
In some embodiments, the audio control apparatus 10 further includes an acquisition module 14, where the acquisition module 14 is further configured to acquire an audio input signal and divide the audio input signal into a plurality of initial audio signals with a predetermined duration, where the initial audio signals are time domain signals. That is, step 014 may be performed by the 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 longer duration, and therefore, in order to ensure the accuracy of loudness calculation of the audio signal to be processed, the audio input signal needs to be divided to generate a plurality of initial audio signals, for example, divided by a predetermined duration (e.g., 10 milliseconds (ms), 15ms, 20ms, etc.). The method and the device prevent the length of the audio signal to be processed after each initial audio signal is subjected to transformation from being overlong, and influence the loudness calculation accuracy of the audio signal to be processed. Of course, the predetermined time period may also be determined according to the time period of the audio input signal, the processing efficiency of the audio signal by the processor 20, and the like, so as to achieve a balance between accuracy of the degree calculation 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 the 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 based on the compensation and the amplitude corresponding to the signal of each frequency, and take 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 corresponding compensation of 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 and the corresponding compensation of the signal of each frequency, and then the loudness of the signal of each frequency in the audio signal to be processed can be added up to obtain the loudness of the audio signal to be processed. Alternatively, the average value of the loudness of the signal of each frequency in the audio signal to be processed is taken as the loudness of the audio signal to be processed.
Referring to fig. 2, 3 and 8, in some embodiments, step 013 comprises:
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 the preset loudness, and generating a first processed audio signal;
0132: when the loudness of the first processing audio signal is smaller than the minimum value of the loudness range, performing second gain on the signal in the first loudness range in the first processing audio signal to generate a second processing audio signal, wherein the loudness of the second processing audio signal is in the loudness range;
0133: and when the loudness of the audio signal to be processed is larger 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 processed audio signal is in the loudness range.
In some embodiments, the adjusting module 13 is further configured to obtain a loudness corresponding to a maximum amplitude in the audio signal to be processed when the loudness of the audio signal to be processed is less than a minimum value of the loudness range, and 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 processing audio signal is smaller than the minimum value of the loudness range, performing second gain on the signal in the first loudness range in the first processing audio signal to generate a second processing audio signal, wherein the loudness of the second processing audio signal is in the loudness range; and when the loudness of the audio signal to be processed is larger 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 processed audio signal is in the loudness range. That is, steps 0131, 0132, and 0133 may be performed by adjustment module 13.
In some embodiments, the processor 20 is further configured to obtain a loudness corresponding to a maximum amplitude in the audio signal to be processed when the loudness of the audio signal to be processed is less than the minimum value of the loudness range, and 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 processing audio signal is smaller than the minimum value of the loudness range, performing second gain on the signal in the first loudness range in the first processing audio signal to generate a second processing audio signal, wherein the loudness of the second processing audio signal is in the loudness range; and when the loudness of the audio signal to be processed is larger 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 processed audio signal is in the loudness range. That is, steps 0131, 0132 and 0133 may be performed by the processor 20.
Specifically, when the loudness of the audio signal to be processed is adjusted, the mode of combining the integral gain and the local gain can be adopted, wherein the integral gain does not affect the dynamic range of the audio signal to be processed, but the problem that the gain is too large and wave elimination is easy to occur, so that the audio signal to be processed is distorted, when the integral gain cannot adjust the loudness of the audio signal to be processed to a preset loudness range, the partial dynamic range of the audio signal to be processed can be properly sacrificed, the partial gain is used for carrying out the gain on the partial signal, and the loudness of the audio signal to be processed is adjusted to the preset loudness range under the condition that the audio signal to be processed is ensured not to be distorted.
The processor 20 determines the relationship between the loudness of the audio signal to be processed and the 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, the loudness of the audio signal to be processed needs to be increased, but in order to prevent the wave elimination problem, the processor 20 firstly obtains the loudness corresponding to the maximum amplitude in the audio signal to be processed, so that the first gain is determined according to the maximum amplitude in the audio signal to be processed, if the loudness corresponding to the maximum amplitude is-6 db, the maximum first gain which can be performed is prevented from being 6db, at this time, the loudness corresponding to the maximum amplitude reaches the preset loudness (e.g. 0 db), then the processor 20 can adjust the loudness of the audio signal to be processed, and all signals of the audio signal to be processed are gain 6db, thereby generating the first processed audio signal.
The processor 20 then determines a compensation for the signal at each frequency in the first processed audio signal based on 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 so, does not require adjustment of the loudness of the processed audio signal. Therefore, the loudness of the audio signal to be processed is adjusted to a preset loudness range under the condition that the audio signal to be processed is not distorted and the dynamic range is not influenced.
If the loudness of the first processed audio signal is still smaller than the minimum value of the loudness range, performing a second gain on the 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 the loudness, wherein the first loudness signal corresponds to the first loudness range (for example, smaller than-75 db), the second loudness signal corresponds to the third loudness range (for example, interval [ -75db, -10 db)), and the third loudness signal corresponds to the second loudness range (for example, interval [ -10db,0db ]). The processor 20 performs a second gain on the first loudness signal to generate a second processed audio signal, where the gain value of the second gain may be 75db (to ensure that the first loudness signal does not clip), and the boost is larger, so that after performing the second gain, the loudness of the second processed audio signal can be substantially adjusted to be within the loudness range, thereby completing the loudness adjustment of the audio signal to be processed.
In performing the second gain on the signal in the first loudness range in the first processed audio signal, the processor 20 may first perform an inverse transform (such as an inverse fourier transform) on the first processed audio signal to convert the first processed audio signal into a time domain signal, then obtain a first frequency band signal, a second frequency band signal, and a third frequency band signal (i.e., a low frequency signal, an intermediate frequency signal, and a high frequency signal) in the first loudness range in the first processed audio signal, and then perform the second gain on the first frequency band signal, the second frequency band signal, and the third frequency band signal, respectively, so as to generate the second processed audio signal.
Of course, after adjusting with the maximum second gain, when the loudness of the second processed audio signal still cannot reach the loudness range, 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 be within 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 means that the loudness of the audio signal to be processed is reduced, and no wave-canceling problem occurs at this time, so, in order to ensure the dynamic range, the processor 20 may adjust the audio signal to be processed with a first gain, where the first gain is a negative gain, and if the signal is-6 db, the first gain is-6 db, the signal becomes-12 db after the first gain adjustment, thereby reducing the loudness of the signal. Therefore, the loudness of the first processed audio signal after the first gain can be ensured to be in the loudness range by only carrying out the first gain on the audio signal to be processed and setting the value of the first gain.
Of course, in order to realize the loudness adjustment to a smaller extent, the second gain may be performed 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 of the adjusted second audio signal is less changed, which is beneficial to realizing the precise loudness adjustment of the audio signal to be processed.
In performing the second gain on the signal in the second loudness range in the first processed audio signal, the processor 20 may first perform an inverse transform (such as inverse fourier transform) on the second processed audio signal to convert the second processed audio signal into a time domain signal, then obtain a first frequency band signal, a second frequency band signal, and a third frequency band signal (i.e., a low frequency signal, an intermediate frequency signal, and a high frequency signal) in the second loudness range in the first processed audio signal, and then perform the second gain on the first frequency band signal, the second frequency band signal, and the third frequency band signal, respectively, so as to generate the second processed audio signal.
It will be appreciated that the second gain of the signal in the first frequency band, the second gain of the signal in the second frequency band, and the second gain of the signal in the third frequency band may be the same or different, so as to realize dynamic control of high, middle and low frequencies, where the second gain of the low frequency signal is set to be greater if bass enhancement is desired, and where the second gain of the high frequency signal is set to be greater if treble enhancement is desired.
Therefore, on the premise of ensuring that the audio signal to be processed is not distorted, dynamic control is realized, 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 improved.
Referring to fig. 9, one or more non-transitory computer-readable storage media 300 embodying a computer program 302 of an embodiment of the present application, when executed by one or more processors 20, causes the processors 20 to perform the calibration method of any of the embodiments described above.
For example, referring to fig. 1-3, when the computer program 302 is executed by one or more processors 20, the processor 20 is caused to perform the steps of:
011: determining compensation corresponding to signals of each frequency in the audio signals 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 compensation corresponding to the signal of each frequency; a kind of electronic device with high-pressure air-conditioning system
013: and adjusting the loudness to a preset loudness range.
As another example, referring to fig. 2, 3 and 8, when the computer program 302 is executed by one or more processors 20, the processor 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 the preset loudness, and generating a first processed audio signal;
0132: when the loudness of the first processing audio signal is smaller than the minimum value of the loudness range, performing second gain on the signal in the first loudness range in the first processing audio signal to generate a second processing audio signal, wherein the loudness of the second processing audio signal is in the loudness range;
0133: and when the loudness of the audio signal to be processed is larger 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 processed audio signal is in the loudness range.
In the description of the present specification, reference is made to the description of the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples," etc., meaning 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 embodiments or examples. 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 described in this specification and the features of the various embodiments or examples may 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 further implementations are included within the scope of the preferred embodiment of the present application 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.
While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present application, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present application.
Claims (9)
1. An audio control method, comprising:
determining compensation corresponding to signals of each frequency in the 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, and in the preset mapping curve, the signals of each frequency correspond to the compensation one by one;
calculating the loudness of the audio signal to be processed according to the signals of each frequency and the compensation corresponding to the signals of each frequency; a kind of electronic device with high-pressure air-conditioning system
Adjusting the loudness to a preset loudness range;
the adjusting the loudness to a preset loudness range includes:
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 largest 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 largest amplitude to reach a preset loudness, and generating a first processed audio signal;
and when the loudness of the first processing audio signal is smaller than the minimum value of the loudness range, performing second gain on the signal in the first loudness range in the first processing audio signal to generate a second processing audio signal, wherein the loudness of the second processing audio signal is in the loudness range.
2. The audio control method according to claim 1, characterized by further comprising:
an audio input signal is acquired and divided into a plurality of initial audio signals of a predetermined length, the initial audio signals being time domain signals.
3. The audio control method according to claim 2, characterized by further comprising:
and carrying out conversion 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 preset first frequency band in the mapping curve is negative and inversely related to the magnitude of the frequency; the compensation corresponding to the signal of each frequency in the preset second frequency range in the mapping curve is a positive number and is positively correlated with the frequency; the compensation corresponding to the signal of each frequency in a third frequency range 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 center frequency of the first frequency band, the center frequency of the second frequency band and the center frequency of the third frequency band are sequentially increased.
5. 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 larger 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 processed audio signal is in the loudness range.
6. The audio control method of claim 1, wherein said performing a second gain on signals within a first loudness range in the first processed audio signal to generate a second processed audio signal comprises:
the second gain is respectively carried out on the signals of the first frequency band, the second frequency band and the third frequency band in the first processing audio signal in the first loudness range so as to generate the second processing audio signal;
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, and the first loudness range and the second loudness range are different.
7. An audio control device, comprising:
the determining module is used for determining the compensation corresponding to the signal of each frequency in the 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 in the preset mapping curve, the signal of each frequency corresponds to the compensation one by one;
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; a kind of electronic device with high-pressure air-conditioning system
The adjusting module is used for adjusting the loudness to a preset loudness range;
the adjustment module is also used for:
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 largest 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 largest amplitude to reach a preset loudness, and generating a first processed audio signal;
and when the loudness of the first processing audio signal is smaller than the minimum value of the loudness range, performing second gain on the signal in the first loudness range in the first processing audio signal to generate a second processing audio signal, wherein the loudness of the second processing audio signal is in the loudness range.
8. A terminal, comprising:
a processor, a memory;
one or more programs, wherein one or more of the programs are stored in the memory and executed by the processor, the programs are used for executing compensation corresponding to signals of each frequency in an audio signal to be processed according to a preset mapping curve, the preset mapping curve is determined according to equal loudness curves, and in the preset mapping curve, the signals of each frequency and the compensation are in one-to-one correspondence; calculating the loudness of the audio signal to be processed according to the signals of each frequency and the compensation corresponding to the signals of each frequency; and adjusting the loudness to a preset loudness range; 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 largest 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 largest amplitude to reach a preset loudness, and generating a first processed audio signal; and when the loudness of the first processing audio signal is smaller than the minimum value of the loudness range, performing second gain on the signal in the first loudness range in the first processing audio signal to generate a second processing audio signal, wherein the loudness of the second processing audio signal is in the loudness range.
9. A non-transitory computer readable storage medium comprising a computer program which, when executed by a processor, causes the processor to perform the audio control method of any of claims 1-6.
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 CN113472938A (en) | 2021-10-01 |
CN113472938B true 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) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113472938B (en) * | 2021-08-23 | 2023-06-30 | Oppo广东移动通信有限公司 | Audio control method and device, terminal and storage medium |
CN114501233A (en) * | 2022-01-30 | 2022-05-13 | 联想(北京)有限公司 | Signal processing method and device and electronic equipment |
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 |
CN116129926B (en) * | 2023-04-19 | 2023-06-09 | 北京北信源软件股份有限公司 | Natural language interaction information processing method for intelligent equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (10)
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 |
CN105657608B (en) * | 2015-12-31 | 2018-09-04 | 深圳Tcl数字技术有限公司 | Audio signal frequency responds compensation method and device |
CN109473115B (en) * | 2018-11-22 | 2022-04-12 | 四川长虹电器股份有限公司 | Digital audio signal volume equal loudness adjusting method |
CN109658942B (en) * | 2018-12-27 | 2021-04-30 | 腾讯音乐娱乐科技(深圳)有限公司 | Audio data processing method and device and related equipment |
GB201912415D0 (en) * | 2019-08-29 | 2019-10-16 | Cosi Leigi Paolo | Audio data processing method and system |
CN111966322A (en) * | 2020-08-31 | 2020-11-20 | 广州视源电子科技股份有限公司 | Audio signal processing method, device, equipment and storage medium |
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 unknown
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
WO2023024725A1 (en) | 2023-03-02 |
CN113472938A (en) | 2021-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113472938B (en) | Audio control method and device, terminal and storage medium | |
US9729969B2 (en) | System and method for bass enhancement | |
US20030216907A1 (en) | Enhancing the aural perception of speech | |
EP2352225A1 (en) | Audio signal adjustment device and audio signal adjustment method | |
CN109473115B (en) | Digital audio signal volume equal loudness adjusting method | |
CN106713794B (en) | Method for adjusting audio balance and audio system for providing balance adjustment | |
CN113647120B (en) | Audio signal processing device for controlling loudness level | |
WO2019033943A1 (en) | Volume adjusting method and device, mobile terminal and storage medium | |
CN111669682A (en) | Method for optimizing sound quality of loudspeaker equipment | |
CN113992781A (en) | Volume control method and device, electronic equipment and computer readable storage medium | |
CN116980804B (en) | Volume adjustment method, device, equipment and readable storage medium | |
CN115209292A (en) | Audio signal compensation method and device, earphone and storage medium | |
CN111357197B (en) | Audio system and control method thereof | |
CN109874088A (en) | A kind of method and apparatus adjusting sound pressure level | |
WO2019070321A1 (en) | Dynamically extending loudspeaker capabilities | |
WO2010000042A1 (en) | Linear gain amplification for mid-to-high intensity sounds in a compressive sound processor | |
US20230262402A1 (en) | Adaptive hearing normalization and correction system with automatic tuning | |
US20220345831A1 (en) | Endoscopic three-dimensional imaging systems and methods | |
CN113613122A (en) | Volume adjusting method and device, earphone and storage medium | |
CN115346544A (en) | Audio signal processing method, apparatus, storage medium, and program product | |
CN117119358B (en) | Compensation method and device for sound image offset side, electronic equipment and storage equipment | |
US20210135644A1 (en) | Audio signal processing method and apparatus for frequency spectrum correction | |
Chen et al. | Research and Optimization of Multichannel Wide Dynamic Compression Algorithm in Hearing Aids | |
KR100513714B1 (en) | Apparatus for estimating sound power of each channel in multi-channel hearing aid and method thereof | |
CN118301535A (en) | Audio upmixing algorithm processing method and device, electronic equipment and storage medium |
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 |