CN117079657A - Pressure limit processing method and device, electronic equipment and readable storage medium - Google Patents
Pressure limit processing method and device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN117079657A CN117079657A CN202311335260.XA CN202311335260A CN117079657A CN 117079657 A CN117079657 A CN 117079657A CN 202311335260 A CN202311335260 A CN 202311335260A CN 117079657 A CN117079657 A CN 117079657A
- Authority
- CN
- China
- Prior art keywords
- envelope
- target
- band
- sub
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 9
- 230000008859 change Effects 0.000 claims abstract description 56
- 238000000034 method Methods 0.000 claims abstract description 44
- 230000006835 compression Effects 0.000 claims abstract description 11
- 238000007906 compression Methods 0.000 claims abstract description 11
- 230000002194 synthesizing effect Effects 0.000 claims abstract description 8
- 238000009499 grossing Methods 0.000 claims description 36
- 230000015572 biosynthetic process Effects 0.000 claims description 2
- 238000003786 synthesis reaction Methods 0.000 claims description 2
- 230000004044 response Effects 0.000 abstract description 3
- 230000008569 process Effects 0.000 description 14
- 238000010606 normalization Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
Classifications
-
- 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
- Tone Control, Compression And Expansion, Limiting Amplitude (AREA)
Abstract
The application discloses a pressure limit processing method, a pressure limit processing device, electronic equipment and a readable storage medium, and belongs to the technical field of audio. Wherein the method comprises the following steps: acquiring n subbands associated with audio to be processed, wherein n is an integer greater than or equal to 2; determining the short-time energy and the signal change rate corresponding to each sub-band; calculating a signal gain corresponding to each sub-band based on the short-time energy and the signal change rate corresponding to each sub-band; and synthesizing the signal gain corresponding to each sub-band to obtain the audio after the compression limitation. The scheme provided by the application can solve the problems of distortion and response lag when the high dynamic signal is compressed.
Description
Technical Field
The application belongs to the technical field of audio, and particularly relates to a pressure limit processing method, a pressure limit processing device, electronic equipment and a readable storage medium.
Background
The limiter is used as one of important equipment for sound composition, can compress or limit the dynamic range of an audio signal, prevent sound overload or distortion and can also improve the loudness of an audio system. In the prior art, a voltage limiting method for carrying out peak envelope calculation on a signal full frequency band is generally adopted, or a voltage limiting method for carrying out envelope calculation by dividing the signal full frequency band into a plurality of sub-bands is adopted, so that problems of sound distortion and response lag can occur when the voltage limiting processing is carried out on high-dynamic sound.
Disclosure of Invention
The embodiment of the application aims to provide a pressure limit processing method, a pressure limit processing device, electronic equipment and a medium, which can solve the problems of sound distortion and response lag when pressure limit processing is carried out on high-dynamic sound.
In a first aspect, an embodiment of the present application provides a method for processing a compression limit, including:
acquiring n subbands associated with audio to be processed, wherein n is an integer greater than or equal to 2;
determining the short-time energy and the signal change rate corresponding to each sub-band;
calculating a signal gain corresponding to each sub-band based on the short-time energy and the signal change rate corresponding to each sub-band;
and synthesizing the signal gain corresponding to each sub-band to obtain the audio after the compression limitation.
Optionally, said determining short-time energy of each of said subbands comprises:
the short-term energy of the target subband is determined according to the following formula:
;
wherein,the method comprises the steps of setting a signal size of any frame signal in a target sub-band at a moment i, wherein the target sub-band is any one of a plurality of sub-bands;
-said short-time energy at the current instant for said target subband;
to calculate the number of points of short-time energy.
Optionally, determining a respective signal change rate of each of the subbands includes:
acquiring a first average value envelope and a second average value envelope of the target sub-band at the current moment based on the short-time energy corresponding to the target sub-band, wherein the first average value envelope is a calculated signal envelope value acquired based on a first preset smoothing coefficient, the second average value envelope is a calculated signal envelope value acquired based on a second preset smoothing coefficient, and the first preset smoothing coefficient is larger than the second preset smoothing coefficient;
and calculating the signal change rate corresponding to the target sub-band based on the first mean envelope and the second mean envelope.
Optionally, the acquiring, based on the short-time energy corresponding to the target subband, a first mean envelope and a second mean envelope of the target subband includes:
acquiring a third mean value envelope and a fourth mean value envelope of the target sub-band at a target time, wherein the target time is a time before the current time, the third mean value envelope is a calculated signal envelope value acquired based on a first threshold value corresponding to the target time, the fourth mean value envelope is a calculated signal envelope value acquired based on a second threshold value corresponding to the target time, and the third mean value envelope is larger than the fourth mean value envelope;
determining the first mean envelope based on the third mean envelope, the short-time energy, and the first preset smoothing coefficient;
and determining the second mean envelope based on the fourth mean envelope, the short-time energy and the second preset smoothing coefficient.
Optionally, the calculating, based on the short-time energy and the signal change rate corresponding to each sub-band, a signal gain corresponding to each sub-band includes:
normalizing the signal change rate corresponding to the target sub-band to obtain a first classification factor;
normalizing the short-time energy corresponding to the target sub-band to obtain a second classification factor;
calculating a target envelope corresponding to the target sub-band based on the first classification factor and the second classification factor;
and calculating the signal gain corresponding to the target sub-band based on the target envelope, the preset gain and the delay time of the target sub-band.
Optionally, the calculating, based on the first classification factor and the second classification factor, a target envelope corresponding to the target subband includes:
acquiring a first peak envelope of the target sub-band at the target time;
determining a second peak envelope of the target sub-band at the current moment based on the first peak envelope, a third preset smoothing coefficient and the short-time energy;
the target envelope is calculated based on the second peak envelope, the first classification factor, and the second classification factor.
Optionally, the calculating the signal gain corresponding to the target subband based on the target envelope, a preset gain and a delay time of the target subband includes:
calculating the signal gain corresponding to the target sub-band according to the following formula:
;
;
wherein,an adjusted gain for the target subband;
the preset gain is set;
is the target envelope;
delay time for the target subband;
and the signal gain corresponding to the target sub-band is obtained.
In a second aspect, an embodiment of the present application provides a compression limiting processing apparatus, including:
the sub-band acquisition module is used for acquiring n sub-bands associated with the audio to be processed, wherein n is an integer greater than or equal to 2;
the first determining module is used for determining the short-time energy and the signal change rate corresponding to each sub-band;
a signal gain module, configured to calculate a signal gain corresponding to each sub-band based on the short-time energy and the signal change rate corresponding to each sub-band;
and the synthesis module is used for synthesizing the signal gain corresponding to each sub-band to obtain the audio after the compression limiting.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor, a memory, and a program or an instruction stored in the memory and executable on the processor, where the program or the instruction is executed by the processor to implement the steps of the method for performing the restriction processing according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements the steps of the pressure limit processing method according to the first aspect.
In the embodiment of the application, the sub-bands of the audio to be processed are obtained, then the short-time energy and the signal change rate corresponding to the sub-bands are determined, and then the signal gain corresponding to each sub-band is calculated through the short-time energy and the signal change rate corresponding to the sub-bands. And the signal gain of each sub-band in the audio to be processed can enable the high dynamic signal in the audio to realize stable transition, so that the possibility of high dynamic signal distortion problem is reduced, and meanwhile, the whole process can rapidly track the change of the sub-band of the audio, and the possibility of occurrence of voltage limit hysteresis is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 is a flowchart of a method for performing pressure limiting according to an embodiment of the present application;
FIG. 2 is a second flowchart of a method for performing a pressure limiting process according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a pressure limiting device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The method, the device and the related equipment for processing the pressure limit provided by the embodiment of the application are described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of a method for performing pressure limiting according to an embodiment of the present application. As shown in fig. 1, the method comprises the following steps:
step 101, acquiring n subbands associated with audio to be processed, wherein n is an integer greater than or equal to 2.
It is worth mentioning that n subbands associated with the audio to be processed are acquired, the signal of the audio to be processed may be acquired by an analog-to-digital converter (Analog to Digital, ADC), and then processed by MATLAB design of an elliptic filter or a corresponding mirror filter. And the signal of the audio to be processed is processed by the filter to obtain n subbands. Wherein the specific number of sub-bands can be determined according to the designed filter, e.g. four ranges are included in the designed elliptic filter, in particular、/>、/>、/>The number of the sub-bands of the finally obtained audio to be processed is four, and the application does not limit the number of the sub-bands and can be determined according to actual conditions. Because the audio to be processed in the application obtains the full-band signal, the signal with larger dynamic range changes such as voice, ultra-low sound, dance music and the like can be processed, and the coverage range is wider.
Step 102, determining the short-time energy and the signal change rate corresponding to each sub-band.
In the embodiment of the present application, the short-time energy and the signal change rate corresponding to each sub-band need to be determined respectively (as shown in fig. 2), and the short-time energy corresponding to each sub-band may be determined first, and then the signal change rate corresponding to each sub-band needs to be determined. The determination of the signal change rate of the sub-bands is convenient for determining the possibility of occurrence of noise of each sub-band in the audio to be processed, and the signal change rate in the application can be replaced by parameters such as harmonic components, signal characteristic values and the like to estimate the noise corresponding to each sub-band in the audio to be processed. In this way, since the determination of the signal change rate is convenient for implementation of calculating the signal noise, the embodiment of the application can also be applied to a scene with poor signal noise. And determining the short-time energy and the signal change rate corresponding to each sub-band, so that the signal gain corresponding to each sub-band is determined conveniently, and the pressure limit processing of the audio to be processed is realized.
Step 103, calculating a signal gain corresponding to each sub-band based on the short-time energy and the signal change rate corresponding to each sub-band.
In a specific implementation, calculating the signal gain corresponding to each sub-band requires that the short-time energy and the signal change rate are respectively calculated by normalized classification factors, the short-time energy and the signal change rate are converted into probability values in the same interval, and the obtained probability values represent the sound sizes corresponding to the sub-bands in the audio to be processed. And calculating the signal gain corresponding to each sub-band through the two probability values corresponding to each sub-band. Therefore, the application can better and rapidly track the signal change by respectively carrying out normalized classification factor calculation on the short-time energy and the signal change rate, and acquire the signal gain corresponding to each sub-band, so that the audio to be processed can be stably transited without causing signal distortion.
And 104, synthesizing the signal gain corresponding to each sub-band to obtain the audio after the limiting.
It should be noted that, by synthesizing the corresponding signal gain obtained by each sub-band (as shown in fig. 2), and converting the synthesized sub-band, the signal can be output as an analog signal, so as to complete the voltage limiting processing of the audio to be processed. The synthesized signal gain is a Digital signal, and may be converted into an Analog signal output by a Digital-to-Analog Converter (DAC). In this way, the final output is the analog signal subjected to the voltage limiting process, and the possibility of distortion of a high dynamic signal in the output analog signal is reduced because of smooth transition in the signal gain process.
Optionally, said determining short-time energy of each of said subbands comprises:
the short-term energy of the target subband is determined according to the following formula:
;
wherein,the method comprises the steps of setting a signal size of any frame signal in a target sub-band at a moment i, wherein the target sub-band is any one of a plurality of sub-bands;
-said short-time energy at the current instant for said target subband;
to calculate the number of points of short-time energy.
It can be understood that, in the present application, the short-time energy corresponding to each sub-band can be obtained through the above formula, so as to determine the short-time energy corresponding to each sub-band.
Optionally, determining a respective signal change rate of each of the subbands includes:
acquiring a first average value envelope and a second average value envelope of the target sub-band at the current moment based on the short-time energy corresponding to the target sub-band, wherein the first average value envelope is a calculated signal envelope value acquired based on a first preset smoothing coefficient, the second average value envelope is a calculated signal envelope value acquired based on a second preset smoothing coefficient, and the first preset smoothing coefficient is larger than the second preset smoothing coefficient;
and calculating the signal change rate corresponding to the target sub-band based on the first mean envelope and the second mean envelope.
Specifically, the signal change rate of the target subband may be obtained by first obtaining a first mean envelope and a second mean envelope of the target subband at the current moment, where the first mean envelope and the second mean envelope are determined based on different preset thresholds. The first preset smooth coefficient corresponding to the first mean value envelope is larger than the second preset smooth coefficient corresponding to the second mean value envelope, and the first mean value envelope can be a fast calculated envelope value, and the second mean value envelope can be a slow calculated envelope value, because the determination of the first preset smooth coefficient and the second preset smooth coefficient is related to the change condition of the envelope value, the change of the envelope value corresponding to the first preset smooth coefficient is faster than the change condition of the envelope value corresponding to the second preset smooth coefficient.
In a specific embodiment of the present application, after determining the first mean envelope and the second mean envelope of the target subband, the signal change rate corresponding to the target subband may be calculated by the following formula:
;
wherein,a first mean envelope of the target sub-band at the current moment;
a second mean envelope of the target sub-band at the current time;
and the signal change rate corresponding to the target sub-band at the current moment.
It can be understood that, to increase the accuracy of the data, the different changing directions of the signal changing rate corresponding to each sub-band are unified to one direction, which can be set inWhen the weight is less than 1, let ∈1>。
Optionally, the acquiring, based on the short-time energy corresponding to the target subband, a first mean envelope and a second mean envelope of the target subband includes:
acquiring a third mean value envelope and a fourth mean value envelope of the target sub-band at a target time, wherein the target time is a time before the current time, the third mean value envelope is a calculated signal envelope value acquired based on a first threshold value corresponding to the target time, the fourth mean value envelope is a calculated signal envelope value acquired based on a second threshold value corresponding to the target time, and the third mean value envelope is larger than the fourth mean value envelope;
determining the first mean envelope based on the third mean envelope, the short-time energy, and the first preset smoothing coefficient;
and determining the second mean envelope based on the fourth mean envelope, the short-time energy and the second preset smoothing coefficient.
In a specific embodiment of the present application, the target time may be a time immediately before the current time, for example, a second immediately before the current time is the target time, which is not limited in the present application. The third mean envelope and the fourth mean envelope are respectively obtained based on a first threshold value and a second threshold value, wherein the first threshold value and the second threshold value can be preset at a target moment, and specific values are determined according to the change condition of the sub-bands. Specifically, the first mean envelope corresponding to the target subband may be determined according to the following formula:
;
wherein,a third mean envelope of the target sub-band for the target instant;
a first preset smoothing coefficient;
likewise, the second mean envelope of the target subband may be obtained according to the following formula:
;
a fourth mean envelope of the target sub-band at the previous time;
and (5) a smoothing coefficient is preset for the second.
In one embodiment, the aboveCan take a value of 0.05, above +.>The value can be 0.02. Therefore, the envelope value corresponding to each sub-band in the audio to be processed can be tracked rapidly and accurately through the formula, and the problem of delay of the pressure limit caused by untimely estimation is avoided.
Optionally, the calculating, based on the short-time energy and the signal change rate corresponding to each sub-band, a signal gain corresponding to each sub-band includes:
normalizing the signal change rate corresponding to the target sub-band to obtain a first classification factor;
normalizing the short-time energy corresponding to the target sub-band to obtain a second classification factor;
calculating a target envelope corresponding to the target sub-band based on the first classification factor and the second classification factor;
and calculating the signal gain corresponding to the target sub-band based on the target envelope, the preset gain and the delay time of the target sub-band.
In another embodiment of the present application, the signal gain corresponding to each sub-band is determined by the short-time energy and the signal change rate corresponding to each sub-band, and the normalization processing is needed to be performed on the short-time energy and the signal change rate. In each sub-band of the audio to be processed, if there is a segment without a signal, the segment may be noise, and since the variation of the noise is relatively smooth, the smooth value ratio tends to be 1. The signal change is faster, so that the normalization factor calculation is needed for the signal change rate, and the calculation can be performed by the following formula:
;
;
wherein,the rate of change of the signal expressed as the current time is mapped to [ -1,1]The value corresponding to this interval;
is->The distance to 1 can take a value of 0.965;
the first slope, represented as a normalized curve in the normalization process, may take a value of-5.12;
the first intercept, represented as a normalized curve in the normalization process, may take a value of 0.22;
the rate of change of the signal, expressed as the current time, is mapped to [0,1 ]]The value corresponding to this interval, the first classification factor.
Specifically, the normalization processing may be to perform normalization classification factor calculation on the short-time energy and the signal change rate respectively, and perform normalization classification factor calculation on the short-time energy by the following formula to obtain a second classification factor:
;
;
wherein,the short time energy represented as the current time is mapped to [ -1,1]The value corresponding to this interval;
for the stationary noise level at the current moment (at +.>Less than the original noise signal->In the case of->Can take the value of 0.25, < + >>Wherein->For the third preset smoothing factor, the value can be 0.22,/for>A stationary noise level for the target instant);
is->A distance factor to 1;
a second slope represented as a normalized curve in the normalization process;
a second intercept represented as a normalized curve in the normalization process;
the short time energy, denoted as the current time, is mapped to [0,1 ]]The value corresponding to this interval, the second classification factor.
Optionally, the calculating, based on the first classification factor and the second classification factor, a target envelope corresponding to the target subband includes:
acquiring a first peak envelope of the target sub-band at the target time;
determining a second peak envelope of the target sub-band at the current moment based on the first peak envelope, a third preset smoothing coefficient and the short-time energy;
the target envelope is calculated based on the second peak envelope, the first classification factor, and the second classification factor.
In another embodiment of the present application, after determining the first classification factor and the second classification factor, a target envelope corresponding to the target subband may be calculated, specifically may be calculated according to the following formula:
;
wherein,the third mean envelope corresponding to the target sub-band;
a first peak envelope at the current time;
it should be noted that, the above formula is to obtain the signal envelope by multiplying the first classification factor and the second classification factor, that is, calculate the signal envelope by the first classification factor corresponding to the short-time energy and the second classification factor corresponding to the signal change rate (as shown in fig. 2), and then multiply the signal envelope with the first peak envelope to obtain the target envelope.
In addition, if the short-time energy of the target subband at this time is greater than the first peak envelope of the target instant, the second peak envelope is determined by the following formula:
;
the peak envelope value at the target instant;
for the fourth preset smoothing factor, the value may be 0.08.
Otherwise, it can be determined by the following formula:
;
at this time, the liquid crystal display device,for the fifth preset smoothing factor, a value of 0.00013 may be taken.
In addition, the determining the fourth preset smoothing coefficient may be to calculate the second peak envelope, where the signal is larger by a value of the maximum point (the value is the fourth preset smoothing coefficient), and the tracking signal is faster. The signal is reduced to a small point value (the value is a fifth preset smoothing coefficient), the tracking signal is slower, and the peak envelope is formed together.
Optionally, the calculating the signal gain corresponding to the target subband based on the target envelope, a preset gain and a delay time of the target subband includes:
calculating the signal gain corresponding to the target sub-band according to the following formula:
;
;
wherein,an adjusted gain for the target subband;
the preset gain is set;
is the target envelope;
delay time for the target subband;
and the signal gain corresponding to the target sub-band is obtained.
It can be understood that, by the above formula, the signal gain corresponding to each subband can be determined, and since the subband corresponding to the high dynamic signal is included, the voltage limiting processing is performed on the subband corresponding to the high dynamic signal by using the signal gain manner, so that signal distortion can be avoided, and the audio signal can be stably transited.
Referring to fig. 3, in another embodiment of the present application, there is further provided a pressure limit processing apparatus 200, including:
a subband acquiring module 201, configured to acquire n subbands associated with audio to be processed, where n is an integer greater than or equal to 2;
a first determining module 202, configured to determine a short-time energy and a signal change rate corresponding to each of the subbands;
a signal gain module 203, configured to calculate a signal gain corresponding to each of the subbands based on the short-time energy and the signal change rate corresponding to each of the subbands;
and the synthesizing module 204 is configured to synthesize the signal gain corresponding to each sub-band to obtain the audio after the compression limiting.
Optionally, the first determining module 202 is configured to:
the short-term energy of the target subband is determined according to the following formula:
;
wherein,the method comprises the steps of setting a signal size of any frame signal in a target sub-band at a moment i, wherein the target sub-band is any one of a plurality of sub-bands;
-said short-time energy at the current instant for said target subband;
to calculate the number of points of short-time energy.
Optionally, the first determining module 202 includes:
a second determining sub-module, configured to obtain, based on the short-time energy corresponding to the target subband, a first mean envelope and a second mean envelope of the target subband at a current time, where the first mean envelope is a calculated signal envelope value obtained based on a first preset smoothing coefficient, and the second mean envelope is a calculated signal envelope value obtained based on a second preset smoothing coefficient, and the first preset smoothing coefficient is greater than the second preset smoothing coefficient;
and the first calculating sub-module is used for calculating the signal change rate corresponding to the target sub-band based on the first mean envelope and the second mean envelope.
Optionally, the second determining submodule includes:
a first obtaining unit, configured to obtain a third mean value envelope and a fourth mean value envelope of the target subband at a target time, where the target time is a time before a current time, the third mean value envelope is a calculated signal envelope value obtained based on a first threshold value corresponding to the target time, the fourth mean value envelope is a calculated signal envelope value obtained based on a second threshold value corresponding to the target time, and the third mean value envelope is greater than the fourth mean value envelope;
a first determining unit, configured to determine the first mean envelope based on the third mean envelope, the short-time energy, and the first preset smoothing coefficient;
and a second determining unit, configured to determine the second mean envelope based on the fourth mean envelope, the short-time energy, and the second preset smoothing coefficient.
Optionally, the signal gain module 203 includes:
the first classification factor sub-module is used for carrying out normalization processing on the signal change rate corresponding to the target sub-band to obtain a first classification factor;
the second classification factor sub-module is used for carrying out normalization processing on the short-time energy corresponding to the target sub-band to obtain a second classification factor;
a second computing sub-module, configured to compute a target envelope corresponding to the target subband based on the first classification factor and the second classification factor;
and a third calculation sub-module, configured to calculate the signal gain corresponding to the target subband based on the target envelope, a preset gain, and a delay time of the target subband.
Optionally, the second computing submodule includes:
a second obtaining unit, configured to obtain a first peak envelope of an envelope of the target sub-band at the target time;
a third determining unit, configured to determine a second peak envelope of the target subband at the current moment based on the first peak envelope, a third preset smoothing coefficient, and the short-time energy;
and a third mean envelope unit for calculating the target envelope based on the second peak envelope, the first classification factor and the second classification factor.
Optionally, the third computing sub-module is configured to:
calculating the signal gain corresponding to the target sub-band according to the following formula:
;
;
wherein,an adjusted gain for the target subband;
the preset gain is set;
is the target envelope;
delay time for the target subband;
and the signal gain corresponding to the target sub-band is obtained.
The pressure limit processing device 200 provided in the embodiment of the present application can implement each process implemented by the embodiment of the method illustrated in fig. 1, and can achieve corresponding beneficial effects, so that repetition is avoided, and details are not repeated here.
As shown in fig. 4, the embodiment of the present application further provides an electronic device 300, including a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of running on the processor 301, where the program or the instruction implements each process of the embodiment of the method shown in fig. 1 when being executed by the processor 301, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the processes of the embodiment of the compression limiting processing method described in fig. 1 are implemented, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a computing network, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
Claims (10)
1. A compression limiting processing method, characterized by comprising:
acquiring n subbands associated with audio to be processed, wherein n is an integer greater than or equal to 2;
determining the short-time energy and the signal change rate corresponding to each sub-band;
calculating a signal gain corresponding to each sub-band based on the short-time energy and the signal change rate corresponding to each sub-band;
and synthesizing the signal gain corresponding to each sub-band to obtain the audio after the compression limitation.
2. The method of claim 1, wherein said determining the short-time energy of each of said subbands comprises:
the short-term energy of the target subband is determined according to the following formula:
;
wherein,the method comprises the steps of setting a signal size of any frame signal in a target sub-band at a moment i, wherein the target sub-band is any one of a plurality of sub-bands;
-said short-time energy at the current instant for said target subband;
to calculate the number of points of short-time energy.
3. The method of claim 2, wherein determining a respective rate of change of the signal for each of the subbands comprises:
acquiring a first average value envelope and a second average value envelope of the target sub-band at the current moment based on the short-time energy corresponding to the target sub-band, wherein the first average value envelope is a calculated signal envelope value acquired based on a first preset smoothing coefficient, the second average value envelope is a calculated signal envelope value acquired based on a second preset smoothing coefficient, and the first preset smoothing coefficient is larger than the second preset smoothing coefficient;
and calculating the signal change rate corresponding to the target sub-band based on the first mean envelope and the second mean envelope.
4. The method of claim 3, wherein the obtaining a first mean envelope and a second mean envelope of the target subband based on the short-time energy corresponding to the target subband comprises:
acquiring a third mean value envelope and a fourth mean value envelope of the target sub-band at a target time, wherein the target time is a time before the current time, the third mean value envelope is a calculated signal envelope value acquired based on a first threshold value corresponding to the target time, the fourth mean value envelope is a calculated signal envelope value acquired based on a second threshold value corresponding to the target time, and the third mean value envelope is larger than the fourth mean value envelope;
determining the first mean envelope based on the third mean envelope, the short-time energy, and the first preset smoothing coefficient;
and determining the second mean envelope based on the fourth mean envelope, the short-time energy and the second preset smoothing coefficient.
5. The method of claim 4, wherein said calculating a respective signal gain for each of said subbands based on said respective short-time energy and said signal rate of change for each of said subbands comprises:
normalizing the signal change rate corresponding to the target sub-band to obtain a first classification factor;
normalizing the short-time energy corresponding to the target sub-band to obtain a second classification factor;
calculating a target envelope corresponding to the target sub-band based on the first classification factor and the second classification factor;
and calculating the signal gain corresponding to the target sub-band based on the target envelope, the preset gain and the delay time of the target sub-band.
6. The method of claim 5, wherein the calculating the target envelope for the target subband based on the first classification factor and the second classification factor comprises:
acquiring a first peak envelope of the target sub-band at the target time;
determining a second peak envelope of the target sub-band at the current moment based on the first peak envelope, a third preset smoothing coefficient and the short-time energy;
the target envelope is calculated based on the second peak envelope, the first classification factor, and the second classification factor.
7. The method of claim 5, wherein the calculating the signal gain corresponding to the target subband based on the target envelope, a preset gain, and a delay time of the target subband comprises:
calculating the signal gain corresponding to the target sub-band according to the following formula:
;
;
wherein,an adjusted gain for the target subband;
the preset gain is set;
is the target envelope;
delay time for the target subband;
and the signal gain corresponding to the target sub-band is obtained.
8. A pressure limiting processing apparatus, comprising:
the sub-band acquisition module is used for acquiring n sub-bands associated with the audio to be processed, wherein n is an integer greater than or equal to 2;
the first determining module is used for determining the short-time energy and the signal change rate corresponding to each sub-band;
a signal gain module, configured to calculate a signal gain corresponding to each sub-band based on the short-time energy and the signal change rate corresponding to each sub-band;
and the synthesis module is used for synthesizing the signal gain corresponding to each sub-band to obtain the audio after the compression limiting.
9. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the compression limiting method of any one of claims 1-7.
10. A computer readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implements the steps of the pressure limit processing method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311335260.XA CN117079657B (en) | 2023-10-16 | 2023-10-16 | Pressure limit processing method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311335260.XA CN117079657B (en) | 2023-10-16 | 2023-10-16 | Pressure limit processing method and device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117079657A true CN117079657A (en) | 2023-11-17 |
CN117079657B CN117079657B (en) | 2024-01-26 |
Family
ID=88713742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311335260.XA Active CN117079657B (en) | 2023-10-16 | 2023-10-16 | Pressure limit processing method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117079657B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1684143A (en) * | 2004-04-14 | 2005-10-19 | 华为技术有限公司 | Method for strengthening sound |
JP2008090316A (en) * | 2007-11-02 | 2008-04-17 | Sharp Corp | Signal processing method, signal processing device and program |
CA3203400A1 (en) * | 2010-07-19 | 2012-01-26 | Dolby International Ab | Processing of audio signals during high frequency reconstruction |
EP2418643A1 (en) * | 2010-08-11 | 2012-02-15 | Software AG | Computer-implemented method and system for analysing digital speech data |
CN102668374A (en) * | 2009-10-09 | 2012-09-12 | Dts(英属维尔京群岛)有限公司 | Adaptive dynamic range enhancement of audio recordings |
CN103761969A (en) * | 2014-02-20 | 2014-04-30 | 武汉大学 | Perception domain audio encoding method and system based on Gaussian mixed model |
US20170374478A1 (en) * | 2016-06-27 | 2017-12-28 | Oticon A/S | Method and a hearing device for improved separability of target sounds |
CN108269585A (en) * | 2013-04-05 | 2018-07-10 | 杜比实验室特许公司 | The companding device and method of quantizing noise are reduced using advanced spectrum continuation |
JP2021525390A (en) * | 2018-05-31 | 2021-09-24 | 華為技術有限公司Huawei Technologies Co.,Ltd. | Stereo signal coding method and stereo signal coding device |
-
2023
- 2023-10-16 CN CN202311335260.XA patent/CN117079657B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1684143A (en) * | 2004-04-14 | 2005-10-19 | 华为技术有限公司 | Method for strengthening sound |
JP2008090316A (en) * | 2007-11-02 | 2008-04-17 | Sharp Corp | Signal processing method, signal processing device and program |
CN102668374A (en) * | 2009-10-09 | 2012-09-12 | Dts(英属维尔京群岛)有限公司 | Adaptive dynamic range enhancement of audio recordings |
CA3203400A1 (en) * | 2010-07-19 | 2012-01-26 | Dolby International Ab | Processing of audio signals during high frequency reconstruction |
EP2418643A1 (en) * | 2010-08-11 | 2012-02-15 | Software AG | Computer-implemented method and system for analysing digital speech data |
CN108269585A (en) * | 2013-04-05 | 2018-07-10 | 杜比实验室特许公司 | The companding device and method of quantizing noise are reduced using advanced spectrum continuation |
CN103761969A (en) * | 2014-02-20 | 2014-04-30 | 武汉大学 | Perception domain audio encoding method and system based on Gaussian mixed model |
US20170374478A1 (en) * | 2016-06-27 | 2017-12-28 | Oticon A/S | Method and a hearing device for improved separability of target sounds |
JP2021525390A (en) * | 2018-05-31 | 2021-09-24 | 華為技術有限公司Huawei Technologies Co.,Ltd. | Stereo signal coding method and stereo signal coding device |
Also Published As
Publication number | Publication date |
---|---|
CN117079657B (en) | 2024-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110634497B (en) | Noise reduction method and device, terminal equipment and storage medium | |
US8571231B2 (en) | Suppressing noise in an audio signal | |
CN104067339B (en) | Noise-suppressing device | |
CN109036460B (en) | Voice processing method and device based on multi-model neural network | |
CN110556125B (en) | Feature extraction method and device based on voice signal and computer storage medium | |
CN110177317B (en) | Echo cancellation method, echo cancellation device, computer-readable storage medium and computer equipment | |
JP6073456B2 (en) | Speech enhancement device | |
CN110085246A (en) | Sound enhancement method, device, equipment and storage medium | |
CN109104655B (en) | Audio equipment and microphone gain adjusting method, device and system thereof | |
US20120002823A1 (en) | Acoustic correction apparatus, audio output apparatus, and acoustic correction method | |
CN103905656A (en) | Residual echo detection method and apparatus | |
KR102201791B1 (en) | Method and device for processing audio signal | |
CN117079657B (en) | Pressure limit processing method and device, electronic equipment and readable storage medium | |
US20120243706A1 (en) | Method and Arrangement for Processing of Audio Signals | |
US20230198488A1 (en) | Method and unit for performing dynamic range control | |
CN112309418A (en) | Method and device for inhibiting wind noise | |
CN107919136B (en) | Digital voice sampling frequency estimation method based on Gaussian mixture model | |
CN108831497B (en) | Echo compression method and device, storage medium and electronic equipment | |
CN111243631B (en) | Automatic gain control method and electronic equipment | |
CN117133307A (en) | Low-power consumption mono voice noise reduction method, computer device and computer readable storage medium | |
JP2011227256A (en) | Signal correction apparatus | |
CN110335623B (en) | Audio data processing method and device | |
CN109378012B (en) | Noise reduction method and system for recording audio by single-channel voice equipment | |
CN113470691A (en) | Automatic gain control method of voice signal and related device thereof | |
CN109493878B (en) | Filtering method, device, equipment and medium for echo cancellation |
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 |