CN117061946A - Output loudness enhancement method, device, terminal and medium - Google Patents

Output loudness enhancement method, device, terminal and medium Download PDF

Info

Publication number
CN117061946A
CN117061946A CN202310967030.9A CN202310967030A CN117061946A CN 117061946 A CN117061946 A CN 117061946A CN 202310967030 A CN202310967030 A CN 202310967030A CN 117061946 A CN117061946 A CN 117061946A
Authority
CN
China
Prior art keywords
target
loudness
audio
output
gain
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.)
Pending
Application number
CN202310967030.9A
Other languages
Chinese (zh)
Inventor
迟欣
吴海全
姜德军
曹磊
何桂晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Feikedi System Development Co Ltd
Original Assignee
Shenzhen Feikedi System Development Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Feikedi System Development Co Ltd filed Critical Shenzhen Feikedi System Development Co Ltd
Priority to CN202310967030.9A priority Critical patent/CN117061946A/en
Publication of CN117061946A publication Critical patent/CN117061946A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Tone Control, Compression And Expansion, Limiting Amplitude (AREA)

Abstract

The application is applicable to the field of loudness adjustment, and provides an output loudness enhancement method, device, terminal and medium, wherein the method comprises the following steps: responding to a loudness enhancement instruction, and acquiring the audio dynamic allowance of target audio under the condition that the audio output power of target output equipment is determined to be at the target output power based on the target loudness gain indicated by the loudness enhancement instruction; and based on the audio dynamic allowance, carrying out loudness enhancement output on the target audio according to the target loudness gain. The scheme is used for enhancing output loudness, and is low in cost and flexible in operation.

Description

Output loudness enhancement method, device, terminal and medium
Technical Field
The application belongs to the field of loudness adjustment, and particularly relates to an output loudness enhancement method, device, terminal and medium.
Background
Loudness is a perceptual quantity that measures the size of sound, and describes the degree of ringing of sound, representing the subjective perception of sound by the human ear, also called volume, intensity. When output equipment such as headphones and a sound box is used for playing audio, the audio output loudness of the output equipment can be adjusted through volume control devices such as keys, so that the use requirements of users are met. In a noisy acoustic environment, it is necessary to enhance the output loudness by volume control means, i.e. by increasing the output power, in order to hear the content of the audio. However, there is an upper limit to the output power of the output device, and after the upper limit is reached, the output loudness cannot be further enhanced by increasing the output power, resulting in that the user cannot hear the audio content even in the case where the volume is adjusted to the highest gear. In the prior art, the upper limit value of the output power is increased by changing the hardware structure of the output equipment so as to achieve the aim of continuously enhancing the output loudness, but the method has high modification cost and is not flexible enough.
Disclosure of Invention
The embodiment of the application provides an output loudness enhancement method, an output loudness enhancement device, a terminal and a medium, which are used for solving the problems of high modification cost and inflexibility in enhancing output loudness by modifying a hardware structure of output equipment in the prior art.
A first aspect of an embodiment of the present application provides a method for enhancing output loudness, including:
responding to a loudness enhancement instruction, and acquiring the audio dynamic allowance of target audio under the condition that the audio output power of target output equipment is determined to be at the target output power based on the target loudness gain indicated by the loudness enhancement instruction;
and based on the audio dynamic allowance, carrying out loudness enhancement output on the target audio according to the target loudness gain.
A second aspect of an embodiment of the present application provides an output loudness enhancement device, including:
the response acquisition module is used for responding to the loudness enhancement instruction, and acquiring the audio dynamic margin of the target audio under the condition that the audio output power of the target output equipment is determined to be at the target output power based on the target loudness gain indicated by the loudness enhancement instruction;
and the enhancement output module is used for carrying out loudness enhancement output on the target audio according to the target loudness gain based on the audio dynamic allowance.
A third aspect of an embodiment of the present application provides a terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method according to the first aspect.
A fifth aspect of the application provides a computer program product for causing a terminal to carry out the steps of the method of the first aspect described above when the computer program product is run on the terminal.
From the above, after receiving the loudness enhancement instruction, the application responds to the loudness enhancement instruction to obtain the target loudness gain indicated by the loudness enhancement instruction, and judges whether the audio output power of the target output device is at the target output power at the moment, if the audio output power of the target output device is already at the target output power, the output power of the target output device reaches the upper limit value, and the output loudness of the target audio cannot be enhanced by increasing the output power of the target output device under the condition of not changing the hardware structure of the output device. The application obtains the audio dynamic allowance of the target audio, starts from the signal of the target audio, increases the target loudness gain on the signal amplitude of the target audio according to the audio dynamic allowance and the target loudness gain, enhances the output loudness of the target audio and outputs the target audio. The output loudness can be continuously enhanced without improving the hardware structure of the target output device, and the method has the advantages of low cost and more flexible operation.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart I of a method for enhancing output loudness according to an embodiment of the present application;
FIG. 2 is a second flowchart of a method for enhancing output loudness according to an embodiment of the present application;
FIG. 3 is a block diagram of an output loudness enhancement device provided by an embodiment of the present application;
fig. 4 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted in context as "when …" or "upon" or "in response to a determination" or "in response to detection. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In particular implementations, the terminals described in embodiments of the application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having a touch-sensitive surface (e.g., a touch screen display and/or a touch pad). It should also be appreciated that in some embodiments, the device is not a portable communication device, but a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or a touch pad).
In the following discussion, a terminal including a display and a touch sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal supports various applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications, and/or digital video player applications.
Various applications that may be executed on the terminal may use at least one common physical user interface device such as a touch sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within the corresponding applications. In this way, the common physical architecture (e.g., touch-sensitive surface) of the terminal may support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence number of each step in this embodiment does not mean the execution sequence, and the execution sequence of each process should be determined by its function and internal logic, and should not limit the implementation process of the embodiment of the present application in any way.
When output devices such as headphones and sound equipment are used for outputting audio, the output loudness of the audio is usually adjusted by pressing a volume control device such as a volume adjusting key on the headphones and the sound box or a control terminal connected with the headphones and the sound box, and in essence, the volume control device achieves the aim of adjusting the output loudness by changing the output power of the output device. The user increases the output power of the output device through the volume control device, so that the output loudness is enhanced. However, due to the limitation of the hardware configuration of the output device, there is an upper limit value of the output power of the output device, that is, it cannot be increased without limitation. However, even if the output power is regulated to the maximum, there is a problem that the user cannot hear in a noisy environment. If the upper limit value of the output power is increased by changing the hardware configuration of the output device, there is a problem in that the modification cost is high, and most users do not have the modification capability, so that there is a problem in that the operation is too complicated and not flexible enough. Therefore, the application provides an output loudness enhancement method, device, terminal and medium, which start processing from the source of audio frequency and achieve the purpose of output loudness enhancement by increasing gain to the signal amplitude of the audio frequency.
In order to illustrate the technical scheme of the application, the following description is made by specific examples.
Referring to fig. 1, fig. 1 is a flowchart of a method for enhancing output loudness according to an embodiment of the present application. As shown in fig. 1, a method for enhancing output loudness, the method comprising the steps of:
step 101, responding to a loudness enhancement instruction, and acquiring the audio dynamic margin of target audio under the condition that the audio output power of target output equipment is determined to be at the target output power based on the target loudness gain indicated by the loudness enhancement instruction.
Specifically, the loudness enhancement instruction indicates that there is a target loudness gain, and the loudness enhancement instruction is used for indicating that the output loudness enhancement device enhances the output loudness of the target audio based on the target loudness gain. The target loudness gain refers to the gain that needs to be increased over the signal of the target audio. The target output device comprises an audio output device such as a headset, a sound box and the like. The audio output power refers to the power to be output of the target audio at the target output device when the loudness of the target audio is not subjected to gain enhancement currently. The target output power is the maximum output power which can be achieved by the target output device, or the limit output power of the target output device, wherein the limit output power is smaller than the maximum output power, and the limit output power can be adjusted in a self-defined mode. For example, in a loudness adjustment scenario for some target output devices, if the output power is at the maximum output power for a long period of time, the target output device may be damaged. In order to prolong the service life of the target output power, the target output power of the target output device may be limited, i.e. set to a limit output power, so as to avoid that the target output device is at the maximum output power for a long time. The target audio is an audio with a short duration or a part of audio segments in the audio, and the target audio is an audio to be played.
Specifically, the loudness enhancement instruction needs to be received before responding to the loudness enhancement instruction. And starting the loudness enhancement function by pressing a volume increasing key, a special key or an APP (application) which is conventionally arranged, and sending the loudness enhancement instruction to the device. The keys are physical keys or virtual keys.
Specifically, the gain adjustment amplitude of the volume plus key is related to the loudness set by the volume plus key. I.e. how much the loudness was enhanced once originally pressed, how much the loudness was enhanced once now, which loudness is converted into a gain to be added to the signal amplitude of the target audio. And the special keys and the APP can set the loudness adjusting amplitude, namely the gain adjusting amplitude in a self-defined mode.
Specifically, after receiving the loudness enhancement instruction, the target loudness gain indicated by the loudness enhancement instruction is obtained by parsing from the loudness enhancement instruction. In addition, after receiving the loudness enhancement instruction, it is further required to determine whether the audio output power of the target output device is at a target output power, that is, determine whether the audio output power is equal to the target output power. In the case where it is determined that the audio output power of the target output device is already at the target output power, it is known that the output power of the target output device has been adjusted to the maximum at this time, and the output loudness of the target audio cannot be enhanced by increasing the output power of the target output device without changing the hardware configuration of the target output device. This also means that in this case, if the loudness enhancement instruction is received, the loudness enhancement is converted from the original power enhancement mode, in which the output loudness is enhanced by changing the power enhancement, to the gain enhancement mode, in which the output loudness is enhanced by changing the signal amplitude gain. The application thus obtains the audio headroom of the target audio in this case, ready for subsequent gain adjustment of the signal amplitude of the target audio.
Specifically, the special key and the APP are provided with a function of directly performing gain adjustment on the signal amplitude. This function is typically triggered to start if the audio output power of the target output device is already at the target output power.
In particular, the headroom refers to the additional dynamic range that remains in the audio signal, i.e. the difference between the peak amplitude of the signal and the maximum acceptable amplitude of the system, i.e. the adjustable range of the signal amplitude. It represents the remaining space of the signal between the highest peak point and the saturation point of the system. The maximum acceptable amplitude is 0dBFS (0 dB Full Scale), which is a way to measure the signal amplitude of audio. In this weighting system, the maximum value is 0dB, the signal amplitude of the audio is usually negative, and once the maximum value exceeds 0dB, the signal is distorted, and according to the relation between 0dBFS and the signal amplitude, the 0dBFS can be also called a decibel full-amplitude waveform. The unit of signal amplitude is dB, and the dynamic margin is the amplitude difference, so the unit of dynamic margin is dB.
Specifically, in the application, the target audio is analyzed to obtain a signal peak value of the target audio, and the difference value between the signal peak value and the decibel full-amplitude waveform is calculated to obtain the audio dynamic allowance of the target audio. For example, if the signal peak value of the target audio is-6 dB,0- (-6) =6 dB, the audio headroom of the target audio is 6dB.
Specifically, as described above, once the signal amplitude of the audio exceeds 0dB, distortion occurs, so that the gain of the target audio cannot be increased all at once. The audio headroom, i.e. the signal amplitude adjustable range, of the target audio needs to be acquired first. An enhancement scheme is determined according to the audio headroom and the target loudness gain, and the specific process is shown in step 102 and the corresponding description.
And 102, based on the audio dynamic margin, performing loudness enhancement output on the target audio according to the target loudness gain.
Specifically, the application determines an enhancement scheme according to the audio dynamic allowance and the target loudness gain, carries out loudness enhancement on the target audio according to the target loudness gain, and outputs the target audio after loudness enhancement. Several enhancements are described next.
In particular, while the particular key and APP corresponding gain adjustment function will typically be triggered to activate if the audio output power of the target output device is already at the target output power, under particular settings, the function need not be triggered. That is, pressing a special key and APP activates the gain adjustment function even if the audio output power does not reach the target output power. But the output power of the target output device is now preferably adjusted. The gain which needs to be increased is converted into power which needs to be increased, the power is preferentially regulated, and the signal integrity of the audio is ensured as much as possible. There are two cases, such as the remaining power being able to meet the gain to be increased, or the remaining power not being able to meet the gain to be increased. The following is a processing scheme where the remaining power is not able to meet the gain that needs to be increased.
Specifically, after responding to the loudness enhancement instruction, the method further comprises: determining the target loudness gain based on the loudness enhancement instruction; calculating a gain difference value of the target loudness gain and the first loudness gain to obtain a second loudness gain under the condition that the audio output power does not reach the target output power and the first loudness gain corresponding to the power difference value of the audio output power and the target output power does not reach the target loudness gain; acquiring the audio dynamic margin of the target audio; and if the audio dynamic margin is greater than or equal to the second loudness gain, respectively enhancing the output power and the signal amplitude of the target audio based on the first loudness gain and the second loudness gain, and outputting the target audio after loudness enhancement.
Specifically, after the audio output power is determined to not reach the target output power, determining the remaining power between the audio output power and the target output power, that is, the power difference, and converting the power difference into a gain to obtain the first loudness gain. The first loudness gain is compared with the target loudness gain. If the first loudness gain is less than the target loudness gain, it is indicated that the power difference is not able to meet the gain that needs to be increased. At this time, an adjustment is required to the signal amplitude of the target audio. The second loudness gain is first determined from the first loudness gain and the target loudness gain, i.e. the target loudness gain minus the first loudness gain is equal to the second loudness gain. Then, the audio headroom of the target audio is acquired, and the second loudness gain is compared with the audio headroom in a numerical manner. And if the audio dynamic margin is greater than or equal to the second loudness gain, respectively enhancing the output power and the signal amplitude of the target audio based on the first loudness gain and the second loudness gain, and outputting the target audio after loudness enhancement. Wherein the audio headroom being greater than or equal to the second loudness gain means that the second loudness gain is added to the signal amplitude of the target audio, and the target audio is free from distortion.
Specifically, the preset condition of several enhancement schemes described next is that it has been determined that the audio output power of the target output device is equal to the target output power.
In particular, because the application aims to enhance the output loudness of the audio in a low-cost and more flexible way without changing the hardware configuration, a better hearing experience is brought to the user. Therefore, the problem of distortion of the audio signal is avoided as much as possible, and therefore, judgment is required.
Specifically, to determine whether the target loudness gain will cause the target audio distortion, before the loudness enhancement output is performed on the target audio according to the target loudness gain based on the audio dynamic margin, the method further includes: and comparing the audio dynamic margin with the target loudness gain in a numerical value mode.
For example, if the audio headroom is 6dB, the target loudness gain is 6dB, and the audio headroom is equal to the target loudness gain, which indicates that the gain of 6dB can be increased over the signal amplitude in the amplitude adjustable range of the target audio, and the audio signal will not be distorted. If the audio dynamic margin is 8dB, the target loudness gain is 6dB, and the audio dynamic margin is greater than the target loudness gain, which means that the gain of 6dB can be increased on the signal amplitude in the amplitude adjustable range of the target audio, and the audio signal will not be distorted. If the audio dynamic margin is 3dB, the target loudness gain is 6dB, and the audio dynamic margin is smaller than the target loudness gain, which means that the gain of 3dB can only be increased in the amplitude adjustable range of the target audio, and if the gain of 6dB is increased, the audio signal is distorted.
Specifically, after the comparing the audio dynamic balance and the target loudness gain, the performing, based on the audio dynamic balance, a loudness enhancement output on the target audio according to the target loudness gain includes: and if the audio dynamic margin is greater than or equal to the target loudness gain, carrying out loudness enhancement output on the target audio according to the target loudness gain.
Specifically, the audio headroom is greater than or equal to the target loudness gain, which means that the target loudness gain is added to the signal amplitude of the target audio, and the audio signal of the target audio is not distorted. Therefore, according to the target loudness gain, the corresponding gain is directly increased on the signal amplitude of the target audio, so that the target audio can be subjected to loudness enhancement based on the loudness enhancement instruction, and the target audio after loudness enhancement is output.
Specifically, after the comparing the audio dynamic margin and the target loudness gain, the method further includes: if the audio dynamic margin is smaller than the target loudness gain, compressing the first signal amplitude of the target audio to obtain the second signal amplitude of the target audio; determining a second dynamic margin of the target audio according to the second signal amplitude; and if the second dynamic margin is greater than or equal to the target loudness gain, performing loudness enhancement output on the target audio subjected to compression processing according to the target loudness gain.
Specifically, the audio headroom is less than the target loudness gain, which is indicative of increasing the target loudness gain to the signal amplitude of the target audio, which audio signal may be distorted. At this time, the original signal amplitude of the target audio needs to be compressed, and the original signal amplitude of the target audio is called as a first signal amplitude, that is, the first signal amplitude is compressed. This is because the target loudness gain is a certain value when the gain is increased, and the target loudness gain needs to be increased to the signal amplitude of the target audio without distortion, so that the signal amplitude of the target audio needs to be adjusted to ensure that the target loudness gain can be normally increased.
Specifically, the first signal amplitude of the target audio is compressed, and the second signal amplitude of the target audio is obtained. And determining a signal peak value in the second signal amplitude of the target audio according to the second signal amplitude, and calculating the second dynamic margin based on the signal peak value. And comparing the second dynamic margin with the target loudness gain in a numerical value, and if the second dynamic margin is larger than or equal to the target loudness gain, increasing the target loudness gain to the second signal amplitude of the target audio, and performing loudness enhancement output on the target audio subjected to compression processing.
It should be noted that the signal amplitude of the target audio may not be compressed without limitation, i.e. there is a compressible threshold for the target audio, and when the amplitude compression reaches the compressible threshold, the signal amplitude of the target audio may not be compressed any more.
Specifically, after determining the second dynamic margin of the target audio according to the second signal amplitude, the method further includes: and if the second dynamic margin is smaller than the target loudness gain and the compression amount corresponding to the first signal amplitude compressed to the second signal amplitude reaches the compressible threshold of the target audio, alarming and prompting are carried out, and according to the loudness gain corresponding to the second dynamic margin, loudness enhancement output is carried out on the target audio.
Therefore, when the second signal amplitude is obtained through compression, but a second dynamic margin corresponding to the second signal amplitude is smaller than the target loudness gain, and the compression amount reaches the compression threshold value of the target audio, alarm prompt is carried out. For example, the target output device broadcasts that the loudness enhancement reaches the upper limit, etc., and the alarm prompting mode is not particularly limited.
Specifically, at this time, the target audio is not subjected to loudness enhancement according to the target loudness gain, but subjected to loudness enhancement according to the loudness gain corresponding to the second dynamic margin, and output.
Specifically, when compressing the signal amplitude of the target audio, there is a compression time, which is generally referred to as an attack time, i.e., a time taken to reduce the first signal amplitude of the target audio to the second signal amplitude.
In particular, the attack time may cause a certain hysteresis in the signal processing of the target audio, i.e. the sound may be played for a short time, which may easily cause a small "pop" sound. It is necessary to set a delay buffer time for performing the compression processing operation to avoid that the output loudness of the target audio is not yet processed and the target audio is played in advance.
Specifically, if after compressing the target audio, there is still an audio to be played after the target audio, after detecting that the dynamic margin of the audio to be played after the target audio is greater than or equal to the corresponding loudness gain, the audio to be played after the detection is free from distortion even after the loudness gain adjustment, and the compression operation is not required, so that a release time needs to be set, where the release time refers to a time corresponding to the transition from the compressed state to the non-compressed state. The release time is set, so that the audio to be played which does not need to be compressed later can be prevented from being compressed, and the integrity of the audio is prevented from being influenced.
In the embodiment of the application, after receiving the loudness enhancement instruction, the target loudness gain indicated by the loudness enhancement instruction is obtained in response to the loudness enhancement instruction, and whether the audio output power of the target output device is at the target output power at the moment is judged, if the audio output power of the target output device is already at the target output power, the output power of the target output device reaches the upper limit value at the moment, and the output loudness of the target audio cannot be enhanced by increasing the output power of the target output device under the condition that the hardware structure of the output device is not changed. The application obtains the audio dynamic allowance of the target audio, starts from the signal of the target audio, increases the target loudness gain on the signal amplitude of the target audio according to the audio dynamic allowance and the target loudness gain, enhances the output loudness of the target audio and outputs the target audio. The output loudness can be continuously enhanced without improving the hardware structure of the target output device, and the method has the advantages of low cost and more flexible operation.
Referring to fig. 2, fig. 2 is a flowchart two of a method for enhancing output loudness according to an embodiment of the present application. As shown in fig. 2, a method for enhancing output loudness, the method comprising the steps of:
In step 201, in response to the loudness enhancement instruction, based on the target loudness gain indicated by the loudness enhancement instruction, in a case that it is determined that the audio output power of the target output device is already at the target output power, the audio headroom of the target audio is acquired.
The implementation process of this step is the same as that of step 101 in the foregoing embodiment, and will not be described here again.
Step 202, based on the audio dynamic margin, performing loudness enhancement output on the target audio according to the target loudness gain.
The implementation process of this step is the same as that of step 102 in the foregoing embodiment, and will not be described here again.
And 203, if a loudness weakening instruction is received, carrying out weakening processing on the signal amplitude of the target audio based on the loudness weakening instruction to obtain the weakening output loudness of the target audio.
Wherein the loudness attenuation instruction is configured to attenuate the output loudness of the target audio. The loudness attenuation instruction also indicates a target attenuation value. The attenuated output loudness is based on the output loudness of the target output device after the target audio is attenuated.
Specifically, in order to ensure the integrity of the target audio, when the attenuation processing is performed, the attenuation processing is preferentially performed on the signal amplitude of the target audio, that is, the attenuation processing is performed on the signal amplitude of the target audio according to the target attenuation value. After the attenuation process, the attenuated output loudness of the target audio can be obtained.
In particular, special keys or APP can also be set, for example, to attenuate the output power of the output device preferentially, or to attenuate the signal amplitude preferentially.
In most cases, however, the signal amplitude of the target audio is attenuated preferentially so that the signal amplitude of the target audio is restored to the original signal amplitude as much as possible.
Step 204, if the attenuated output loudness does not exceed the loudness corresponding to the target output power of the target output device, if the loudness attenuation instruction is received again, attenuating the output loudness of the target audio by reducing the output power of the target output device.
Specifically, after the signal amplitude of the target audio is attenuated, the attenuated output loudness is obtained. The attenuated output loudness is compared to a loudness corresponding to the target output power of the target output device.
Further, by comparing, if the attenuated output loudness does not exceed the loudness corresponding to the target output power of the target output device, if the loudness attenuation instruction is received again, the output loudness of the target audio is attenuated by reducing the output power of the target output device.
In the embodiment of the application, under the condition that the audio output power of the target output device is determined to be at the target output power, the continuous enhancement of the output loudness of the target audio is realized by increasing the loudness gain to the signal amplitude of the target audio. After that, if a loudness attenuation instruction is received, attenuation processing is performed on the signal amplitude of the target audio according to the loudness attenuation instruction, that is, the signal itself of the target audio is preferentially processed. After the attenuation processing, judging whether the attenuation output loudness exceeds the loudness corresponding to the target output power of the target output device, if the attenuation output loudness does not exceed the loudness corresponding to the target output power of the target output device, reducing the output power of the target output device to achieve the purpose of weakening the output loudness of the target audio if the loudness weakening instruction is received again. The method for weakening the output loudness can reduce the signal amplitude of the target audio preferentially and improve the integrity of the target audio.
Referring to fig. 3, fig. 3 is a block diagram of an output loudness enhancement device according to an embodiment of the present application, and for convenience of explanation, only parts related to the embodiment of the present application are shown.
The output loudness enhancing means 300 comprises: the output module 302 is enhanced in response to the acquisition module 301.
A response obtaining module 301, configured to respond to a loudness enhancement instruction, and obtain, based on a target loudness gain indicated by the loudness enhancement instruction, an audio dynamic margin of a target audio when it is determined that an audio output power of a target output device is already at the target output power;
and the enhancement output module 302 is configured to perform loudness enhancement output on the target audio according to the target loudness gain based on the audio dynamic margin.
Specifically, the enhancement output module is further configured to:
determining the target loudness gain based on the loudness enhancement instruction; calculating a gain difference value of the target loudness gain and the first loudness gain to obtain a second loudness gain under the condition that the audio output power does not reach the target output power and the first loudness gain corresponding to the power difference value of the audio output power and the target output power does not reach the target loudness gain; acquiring the audio dynamic margin of the target audio; and if the audio dynamic margin is greater than or equal to the second loudness gain, respectively enhancing the output power and the signal amplitude of the target audio based on the first loudness gain and the second loudness gain, and outputting the target audio after loudness enhancement.
Specifically, the device further comprises a comparison module for:
and comparing the audio dynamic margin with the target loudness gain in a numerical value mode.
Specifically, the enhancement output module is further configured to:
and if the audio dynamic margin is greater than or equal to the target loudness gain, carrying out loudness enhancement output on the target audio according to the target loudness gain.
If the audio dynamic margin is smaller than the target loudness gain, compressing the first signal amplitude of the target audio to obtain the second signal amplitude of the target audio; determining a second dynamic margin of the target audio according to the second signal amplitude; and if the second dynamic margin is greater than or equal to the target loudness gain, performing loudness enhancement output on the target audio subjected to compression processing according to the target loudness gain.
And if the second dynamic margin is smaller than the target loudness gain and the compression amount corresponding to the first signal amplitude compressed to the second signal amplitude reaches the compressible threshold of the target audio, alarming and prompting are carried out, and according to the loudness gain corresponding to the second dynamic margin, loudness enhancement output is carried out on the target audio.
Specifically, the apparatus further comprises a loudness attenuation module for:
if a loudness weakening instruction is received, carrying out attenuation processing on the signal amplitude of the target audio based on the loudness weakening instruction to obtain the attenuation output loudness of the target audio; and if the attenuation output loudness does not exceed the loudness corresponding to the target output power of the target output device, if the loudness attenuation instruction is received again, the output loudness of the target audio is attenuated by reducing the output power of the target output device.
The output loudness enhancement device provided by the embodiment of the application can realize the processes of the embodiment of the output loudness enhancement method, can achieve the same technical effects, and is not repeated here for avoiding repetition.
Fig. 4 is a block diagram of a terminal according to an embodiment of the present application. As shown in the figure, the terminal 4 of this embodiment includes: at least one processor 40 (only one is shown in fig. 4), a memory 41 and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, the processor 40 implementing the steps in any of the various method embodiments described above when executing the computer program 42.
The terminal 4 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal 4 may include, but is not limited to, a processor 40, a memory 41. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the terminal 4 and is not limiting of the terminal 4, and may include more or fewer components than shown, or may combine some components, or different components, e.g., the terminal may further include input and output devices, network access devices, buses, etc.
The processor 40 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or a memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal 4. The memory 41 is used for storing the computer program as well as other programs and data required by the terminal. The memory 41 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other manners. For example, the apparatus/terminal embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The present application may also be implemented as a computer program product for implementing all or part of the procedures of the methods of the above embodiments, which when run on a terminal causes the terminal to perform the steps of the method embodiments described above.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A method of enhancing output loudness, comprising:
responding to a loudness enhancement instruction, and acquiring the audio dynamic allowance of target audio under the condition that the audio output power of target output equipment is determined to be at the target output power based on the target loudness gain indicated by the loudness enhancement instruction;
And based on the audio dynamic allowance, carrying out loudness enhancement output on the target audio according to the target loudness gain.
2. The method of claim 1, wherein after the responding to the loudness enhancement instruction, further comprising:
determining the target loudness gain based on the loudness enhancement instruction;
calculating a gain difference value of the target loudness gain and the first loudness gain to obtain a second loudness gain under the condition that the audio output power does not reach the target output power and the first loudness gain corresponding to the power difference value of the audio output power and the target output power does not reach the target loudness gain;
acquiring the audio dynamic margin of the target audio;
and if the audio dynamic margin is greater than or equal to the second loudness gain, respectively enhancing the output power and the signal amplitude of the target audio based on the first loudness gain and the second loudness gain, and outputting the target audio after loudness enhancement.
3. The method of claim 1, wherein the step of, based on the audio headroom, prior to loudness enhancement outputting the target audio in accordance with the target loudness gain, further comprises:
And comparing the audio dynamic margin with the target loudness gain in a numerical value mode.
4. A method according to claim 3 wherein said performing a loudness enhancement output on said target audio in accordance with said target loudness gain based on said audio headroom after said performing a numerical comparison of said audio headroom and said target loudness gain comprises:
and if the audio dynamic margin is greater than or equal to the target loudness gain, carrying out loudness enhancement output on the target audio according to the target loudness gain.
5. A method according to claim 3, wherein said numerically comparing said audio headroom and said target loudness gain further comprises:
if the audio dynamic margin is smaller than the target loudness gain, compressing the first signal amplitude of the target audio to obtain the second signal amplitude of the target audio;
determining a second dynamic margin of the target audio according to the second signal amplitude;
and if the second dynamic margin is greater than or equal to the target loudness gain, performing loudness enhancement output on the target audio subjected to compression processing according to the target loudness gain.
6. The method of claim 5, wherein after determining the second headroom of the target audio based on the second signal amplitude, further comprising:
and if the second dynamic margin is smaller than the target loudness gain and the compression amount corresponding to the first signal amplitude compressed to the second signal amplitude reaches the compressible threshold of the target audio, alarming and prompting are carried out, and according to the loudness gain corresponding to the second dynamic margin, loudness enhancement output is carried out on the target audio.
7. The method of claim 1, wherein the loudness enhancement outputting the target audio in accordance with the target loudness gain based on the audio headroom, further comprises:
if a loudness weakening instruction is received, carrying out attenuation processing on the signal amplitude of the target audio based on the loudness weakening instruction to obtain the attenuation output loudness of the target audio;
and if the attenuation output loudness does not exceed the loudness corresponding to the target output power of the target output device, if the loudness attenuation instruction is received again, the output loudness of the target audio is attenuated by reducing the output power of the target output device.
8. An output loudness enhancement device comprising:
the response acquisition module is used for responding to the loudness enhancement instruction, and acquiring the audio dynamic margin of the target audio under the condition that the audio output power of the target output equipment is determined to be at the target output power based on the target loudness gain indicated by the loudness enhancement instruction;
and the enhancement output module is used for carrying out loudness enhancement output on the target audio according to the target loudness gain based on the audio dynamic allowance.
9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 7.
CN202310967030.9A 2023-08-02 2023-08-02 Output loudness enhancement method, device, terminal and medium Pending CN117061946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310967030.9A CN117061946A (en) 2023-08-02 2023-08-02 Output loudness enhancement method, device, terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310967030.9A CN117061946A (en) 2023-08-02 2023-08-02 Output loudness enhancement method, device, terminal and medium

Publications (1)

Publication Number Publication Date
CN117061946A true CN117061946A (en) 2023-11-14

Family

ID=88660057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310967030.9A Pending CN117061946A (en) 2023-08-02 2023-08-02 Output loudness enhancement method, device, terminal and medium

Country Status (1)

Country Link
CN (1) CN117061946A (en)

Similar Documents

Publication Publication Date Title
CN108174031B (en) Volume adjusting method, terminal equipment and computer readable storage medium
CN107105367B (en) Audio signal processing method and terminal
CN110809214B (en) Audio playing method, audio playing device and terminal equipment
US8320586B2 (en) System and method for reducing volume spike in an electronic device
CN111083289B (en) Audio playing method and device, storage medium and mobile terminal
US11201598B2 (en) Volume adjusting method and mobile terminal
CN110312146B (en) Audio processing method and device, electronic equipment and storage medium
US9450555B2 (en) Gain control for an audio signal
CN109982231B (en) Information processing method, device and storage medium
WO2019033943A1 (en) Volume adjusting method and device, mobile terminal and storage medium
CN111508510B (en) Audio processing method and device, storage medium and electronic equipment
CN107526570B (en) Volume adjusting method and device, terminal equipment and storage medium
CN110491419B (en) Playing control method, system and terminal equipment
CN110799936B (en) Volume adjusting method, volume adjusting device, terminal equipment and storage medium
WO2019033941A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
WO2019033942A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN110086941B (en) Voice playing method and device and terminal equipment
CN107483734B (en) Volume adjusting method and device, terminal equipment and storage medium
CN108777745A (en) A kind of volume adjusting method and device
CN112289336A (en) Audio signal processing method and device
CN117061946A (en) Output loudness enhancement method, device, terminal and medium
WO2019033939A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN107506168B (en) Volume adjusting method and device, terminal equipment and storage medium
CN106293607B (en) Method and system for automatically switching audio output modes
CN112333534B (en) Noise elimination method and device, intelligent television system and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination