WO2020107385A1 - Gain processing method and device implementing same, electronic apparatus, signal acquisition method and system implementing same - Google Patents
Gain processing method and device implementing same, electronic apparatus, signal acquisition method and system implementing same Download PDFInfo
- Publication number
- WO2020107385A1 WO2020107385A1 PCT/CN2018/118488 CN2018118488W WO2020107385A1 WO 2020107385 A1 WO2020107385 A1 WO 2020107385A1 CN 2018118488 W CN2018118488 W CN 2018118488W WO 2020107385 A1 WO2020107385 A1 WO 2020107385A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- audio
- gain
- digital signal
- current frame
- audio digital
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 230000008859 change Effects 0.000 claims abstract description 105
- 238000012545 processing Methods 0.000 claims abstract description 37
- 230000007613 environmental effect Effects 0.000 claims description 39
- 230000003321 amplification Effects 0.000 claims description 35
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 35
- 230000005236 sound signal Effects 0.000 claims description 30
- 230000008569 process Effects 0.000 claims description 17
- 238000004458 analytical method Methods 0.000 claims description 16
- 238000006243 chemical reaction Methods 0.000 claims description 9
- 238000000605 extraction Methods 0.000 claims description 8
- 230000003247 decreasing effect Effects 0.000 claims description 7
- 230000000694 effects Effects 0.000 abstract description 8
- 230000002349 favourable effect Effects 0.000 abstract 1
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000013522 software testing Methods 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 235000013311 vegetables Nutrition 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/02—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using spectral analysis, e.g. transform vocoders or subband vocoders
Definitions
- Embodiments of the present application relate to the field of signal processing, and in particular, to a gain processing method and apparatus, electronic equipment, signal acquisition method, and system thereof.
- Audio automatic gain control (Automatic Gain control, hereinafter referred to as AGC) technology has a wide range of applications in audio systems.
- AGC Automatic Gain control
- PGA programmable Gain Amplifier
- one of the technical problems solved by the embodiments of the present application is to provide a gain processing method and its device, electronic equipment, signal acquisition method and its system, to overcome the above-mentioned defects in the prior art.
- An embodiment of the present application provides a gain processing method, including:
- control parameters are updated.
- the audio index of the current frame of audio digital signals includes at least one of peak-to-peak value of the signal envelope, fluctuation frequency of the signal envelope, and estimated intensity of environmental noise.
- analyzing the current frame of audio digital signal to extract its corresponding audio index includes: analyzing the signal envelope of the current frame of audio digital signal to extract its corresponding The peak-to-peak value of the signal envelope.
- analyzing the current frame of audio digital signal to extract its corresponding audio index includes: performing noise analysis on the current frame of audio digital signal to extract the corresponding estimated intensity of environmental noise .
- analyzing the current frame of audio digital signal to extract its corresponding audio index includes: analyzing the signal envelope of the current frame of audio digital signal to extract its signal package The frequency of the network.
- the method further includes: acquiring a preset audio indicator change limit;
- control parameters of the gain used are updated, including:
- the control parameters of the gain used are updated.
- the audio index change between the current frame of audio digital signal and the audio digital signal targeted when the gain control parameter was last updated and the audio index change limit To determine whether it is necessary to update the control parameters of the gain used when performing gain amplification processing on the audio signal of the current frame, including:
- the audio digital signal of the current frame needs to be performed During the gain amplification process, the control parameters of the used gain are updated.
- the method further includes: determining to update the gain Control parameters used at the time, and updating the control parameters according to the set adjustment rules.
- determining the control parameter used when updating the gain includes: if the current frame of audio digital signal and the audio digital targeted when the control parameter of the gain was last updated If the change in the estimated intensity of the environmental noise between the signals exceeds the limit of the change in the estimated intensity of the environmental noise, then set the control parameter used when updating the gain as the noise threshold;
- the gain is set to
- the control parameter used when updating is at least one of a speed parameter when increasing the gain or a speed parameter when decreasing the gain.
- updating the control parameter according to the set adjustment rule includes: according to the current frame of audio The estimated noise intensity of the digital signal updates the noise threshold.
- updating the control parameter according to the set adjustment rule includes: The speed parameter when increasing the gain is updated according to the peak-to-peak value of the signal envelope equal to the current frame of the audio digital signal and the fluctuation frequency of the signal envelope.
- updating the control parameter according to the set adjustment rule includes: The speed parameter when reducing the gain is updated according to the peak-to-peak value of the signal envelope equal to the current frame of the audio digital signal and the fluctuation frequency of the signal envelope.
- An embodiment of the present application also provides a signal acquisition method, which includes:
- An embodiment of the present application further provides a gain adjustment device, including:
- the extraction unit is used to analyze the current frame of audio digital signal to extract its corresponding audio index and determine the relationship between the current frame of audio digital signal and the audio digital signal targeted for the last gain control parameter update Audio index changes;
- the analysis unit is used for determining whether it is necessary to perform gain amplification processing on the current frame of audio digital signal according to the change of the audio index between the current frame of audio digital signal and the audio digital signal targeted when the gain control parameter was updated last time
- the control parameters of the gain used are updated.
- An embodiment of the present application also provides a signal acquisition system, which includes:
- Analog-to-digital conversion module used for analog-to-digital conversion of the current frame of audio analog signals to generate corresponding audio digital signals
- Gain adjustment device including an extraction unit and an analysis unit
- the extraction unit is used to analyze the current frame of audio digital signal to extract its corresponding audio index, and determine the current frame of audio digital signal and the last gain
- the audio index changes between the audio digital signals targeted when the control parameters are updated
- the analysis unit is used to determine the relationship between the audio digital signals of the current frame and the audio digital signals targeted during the last gain control parameter update
- the audio index changes to determine whether it is necessary to update the gain control parameters used when the current frame of audio digital signal is gain amplified
- a gain amplification module is used to amplify the current frame of audio digital signal according to the gain.
- An embodiment of the present application also provides an electronic device, which includes the signal acquisition system described in the embodiment of the present application.
- the current frame of audio digital signal is analyzed to extract its corresponding audio index, and it is determined that the current frame of audio digital signal is the same as the last time
- the audio index changes between the audio digital signals targeted when the gain control parameter is updated, and then further based on the audio index changes between the current frame of audio digital signals and the audio digital signals targeted when the gain control parameter was last updated
- it can adaptively respond to the jitter of the sound source position, the change of the sound source (such as the change of the speaker), Under the influence of factors such as changes in environmental noise, the above-mentioned gain control parameters are adjusted in real time to achieve a good gain control effect.
- FIG. 5 is a schematic flowchart of a fourth gain processing method according to Embodiment 4 of the present application.
- the current frame of audio digital signal is analyzed to extract its corresponding audio index, and it is determined that the current frame of audio digital signal is the same as the last time
- the audio index changes between the audio digital signals targeted when the gain control parameter is updated, and then further based on the audio index changes between the current frame of audio digital signals and the audio digital signals targeted when the gain control parameter was last updated
- it can adaptively respond to changes in the sound source position, changes in the sound source (such as the change of the speaker) Under the influence of factors such as changes in environmental noise, the above-mentioned gain control parameters are adjusted in real time to achieve a good gain control effect.
- FIG. 0 is a schematic structural diagram of a signal acquisition system according to an embodiment of the present application; as shown in FIG. 0, it includes:
- Analog-to-digital conversion module also known as AD converter, used for analog-to-digital conversion of the current frame of audio analog signals to generate corresponding audio digital signals;
- a gain adjustment device also known as an AGC analysis module
- the extraction unit is used to analyze the current frame of audio digital signal to extract its corresponding audio index and determine the current The change of the audio index between the audio digital signal of one frame and the audio digital signal targeted when the control parameter of the last gain is updated;
- the analysis unit is used to determine the control parameter of the gain according to the current audio digital signal of the current frame During the update, the audio index changes between the audio digital signals to determine whether it is necessary to update the gain control parameters used when the current frame of audio digital signals is subjected to gain amplification processing;
- a gain amplification module (also called PGA) is used to amplify the current frame of audio digital signal according to the gain.
- the above-mentioned audio collection system in the first embodiment can be applied to but not limited to: 1) the noise intensity changes obviously; 2) the audio loudness may change at a high frequency. among them:
- the scenario 1) specifically includes but is not limited to: the audio collection system is integrated into a portable microphone, and the user carries the microphone into different environments to perform audio collection activities.
- the different environments may be but not limited to schools, shopping malls, vegetable markets, conference rooms, etc.
- the scenario 2) includes but is not limited to: the audio collection system is integrated into a portable microphone.
- the relative position of the microphone and the sound source changes at a certain frequency, such as the shaking of the microphone, resulting in the collection
- the loudness of the audio frequency also fluctuates at this frequency.
- the output of the audio collection system may be, but not limited to: 1) converted to an analog signal by a D/A converter and played directly; 2) encoded by an encoder, and then saved as an audio file or sent to a remote end through a wireless network Equipment; 3) After the subsequent speech enhancement algorithm processing, to get a clearer speech.
- the audio acquisition system in the first embodiment above can adaptively respond to the position of the sound source during the signal acquisition process The influence of factors such as the jitter of the sound source, the change of the sound source (such as the change of the utterer), the change of the environmental noise, etc., adjust the above-mentioned gain control parameters in real time to achieve a good gain control effect.
- an embodiment of the present application also provides a signal acquisition method, which includes the following steps: performing analog-to-digital conversion on the current frame of audio analog signals to generate corresponding audio digital signals; and analyzing the current frame of audio digital signals To extract the corresponding audio index and determine the audio index change between the current frame of audio digital signal and the audio digital signal targeted at the last gain control parameter update; according to the current frame of audio digital signal and The audio index changes between the audio digital signals for the last time when the control parameters of the gain were updated, to determine whether it is necessary to update the control parameters of the used gain when performing gain amplification processing on the current frame of audio digital signals; and The gain amplifies the audio signal of the current frame.
- FIG. 1 is a schematic flowchart of the gain processing method in Embodiment 1. As shown in FIG. 1, it specifically includes the following steps:
- S102 Determine whether it is necessary to use the gain amplification processing of the current frame of audio digital signal according to the change of the audio index between the current frame of audio digital signal and the audio digital signal targeted when the gain control parameter was updated last time The gain control parameters are updated.
- the audio index of the current frame of audio digital signals includes but is not limited to at least one of the peak-to-peak value of the signal envelope, the fluctuation frequency of the signal envelope, and the estimated intensity of environmental noise.
- FIG. 2 is a schematic flowchart of a gain processing method according to Embodiment 2 of the present application; as shown in FIG. 2, it includes the following steps S201-205A, or, steps S201-205B:
- analyzing the current frame of audio digital signal may include analyzing the signal envelope of the current frame of audio digital signal to extract the peak-to-peak value of the signal envelope.
- it may further include: performing an envelope analysis on the current frame of audio digits based on the Hilbert transform method or the complex analytical wavelet transform method to obtain the signal envelope.
- the peak-to-peak value of the signal envelope can reflect the change in the strength of the audio digital signal (also known as the change in audio loudness), which is the maximum difference between the adjacent peak value and the valley value of the signal envelope within the set time period value.
- the duration of the current frame of audio digital signals can be set according to actual conditions, and can be from a few hundred milliseconds to tens of seconds.
- the gain control parameters include at least the speed parameter when reducing the gain. Further, in specific applications, it is not necessary to use the time to reduce the gain when processing each frame of audio digital signals The speed parameter is updated. In fact, there are often several frames of audio digital signals corresponding to an audio stream. For the multi-frame audio digital signal (the multi-frame audio digital signal is not necessarily continuous), when reducing the gain The speed parameter needs to be updated, and the speed parameter for reducing the gain used for another multi-frame audio digital signal (the other multi-frame audio digital signal is not necessarily continuous) does not need to be updated.
- the audio digital signal targeted when the speed parameter update when the gain is reduced last time may be the audio digital signal of the previous frame that has an adjacent relationship with the audio digital signal of the current frame, and may be A frame of audio digital signals with a space relationship in the current frame of audio digital signals.
- the peak-to-peak change limit of the signal envelope may be a single peak-to-peak change threshold of the signal envelope (or the peak-to-peak change threshold of the signal envelope), or may be a signal envelope with upper and lower limits
- the peak-to-peak variation range of the signal, the peak-to-peak variation threshold of the signal envelope, and the specific values of the upper and lower limits of the peak-to-peak variation range of the signal envelope are flexibly set according to empirical statistics of actual application scenarios.
- the threshold of the peak-to-peak change of the signal envelope and the upper and lower limits of the peak-to-peak change range of the signal envelope can be adjusted manually or adaptively according to different application scenarios.
- step S204 Determine whether the peak-to-peak change of the signal envelope between the current frame of audio digital signal and the audio digital signal targeted for the last gain control parameter update exceeds the peak-to-peak change limit of the signal envelope, if If it is exceeded, step S205A is executed; otherwise, step S205B is executed.
- the audio digital signal of the current frame may also be referred to as the audio digital signal of the first frame
- the audio digital signal targeted when the gain control parameter was last updated It can be called the second frame audio digital signal. Therefore, in step S202, the peak-to-peak value of the signal envelope of the first frame audio digital signal can be directly compared with the peak-to-peak value of the signal envelope of the second frame audio digital signal to determine this The peak-to-peak variation of the signal envelope of the two frames of audio digital signals.
- the corresponding number can be the absolute value of the difference between the peak and peak values of the signal envelope of the first frame of audio digital signals and the second frame of audio digital signals. Compare with the peak-to-peak change limit of the signal envelope to further determine whether the peak-to-peak change of the signal envelope of the audio digital signal of the first frame exceeds the preset signal envelope in step S204 through a judgment process Peak-to-peak variation limits.
- the adjustment rule includes the speed parameter that is equal to the peak-to-peak value of the signal envelope of the current frame of audio digital signal and the fluctuation frequency of the signal envelope when the gain is reduced.
- the control parameter of the gain mentioned in step 204 and the related steps before it is specifically the speed parameter when reducing the gain when the amplitude of the amplified audio digital signal exceeds the target level, in this embodiment the gain is reduced.
- the speed parameter of time is used to control the speed of reducing the PGA gain by AGC technology when the audio digital signal exceeds the target level. In a specific application scenario, the speed parameter of reducing the gain is also called Attack time.
- control parameter may be updated according to the set adjustment rule. Specifically, the following formula (1) may be used to update the speed parameter when reducing the gain:
- t attack represents Attack time
- t a0 represents the maximum value of Attack time
- env represents the peak-to-peak value of the signal envelope of the current frame of audio digital signals
- f represents The fluctuation frequency of the signal envelope of the current frame of audio digital signals
- k a represents the coefficient of attack time varying with env ⁇ f.
- t a0 and k a are constant parameters, and the specific values of the constant parameters are manually set by the designer according to actual needs or obtained through debugging software testing.
- the relationship between t attack and env and f is not limited to the proportional relationship described above, but may also be other negative correlations.
- the adjustment rules of the update control parameters set in this embodiment are only exemplary descriptions. In actual use, those skilled in the art can refer to the solutions in the embodiments of the present application on the premise of not paying any creative labor. , Other adjustment rules for updating control parameters can be obtained according to the adjustment rules.
- the fluctuation frequency f of the signal envelope in the above formula (1) can also be obtained by statistically calculating the signal envelope within a set time period.
- the fluctuation frequency of the signal envelope of the audio digital signal of the current frame is unchanged or relatively small with respect to the fluctuation frequency of the signal envelope of the audio digital signal for the last gain control parameter update.
- the fluctuation frequency f of the signal envelope may also be relative to the fluctuation frequency of the signal envelope of the audio digital signal targeted at the last gain control parameter update
- the change of the undulation frequency exceeds the set undulation frequency change limit, it can be based on the above formula (1) and at the same time according to the undulation frequency f of the signal envelope of the current frame of audio digital signal and the signal envelope
- the peak-to-peak value env updates the attack time, the speed parameter when reducing the gain.
- t attack is recalculated through the above formula (1), and when the peak-to-peak value of the signal envelope becomes larger, the value of t attack becomes smaller than the t attack used in the last update, that is, minus
- the small PGA gain needs a shorter time, that is, the PGA gain needs to be quickly reduced, so that the audio digital signal quickly falls back to the target level when it is amplified, thereby avoiding the effect of "suppressing and frustrating".
- the speed parameter at the time of reducing the gain obtained when the control parameter of the gain was last updated is continued.
- FIG. 3 is a schematic flowchart of a third gain processing method according to an embodiment of the present application; as shown in FIG. 3, it includes the following steps S301-305A, or, steps S301-305B:
- analyzing the current frame of audio digital signals may include analyzing the signal envelope of the current frame of audio digital signals to extract the fluctuation frequency of the signal envelope.
- the fluctuation frequency of the signal envelope can reflect the speed of the change of the intensity of the audio digital signal (also known as the speed of the change of the audio loudness).
- the specific signal envelope may be obtained based on signal envelope analysis methods such as the Hilbert transform method or the complex analytical wavelet transform method.
- S302 Determine the fluctuation frequency of the signal envelope between the audio signal of the current frame and the audio digital signal targeted at the last time when the control parameter of the gain is updated;
- the gain control parameters include at least the speed parameter when increasing the gain.
- the update of the speed parameter when increasing the gain does not exclude the need to update the speed parameter when increasing the gain used for processing each frame of audio digital signal. Therefore, in this embodiment, The audio digital signal targeted at the last time when the gain parameter was updated when the speed was increased may be the audio digital signal of the previous frame that is adjacent to the current frame of audio digital signal, or may be separated from the current frame of audio digital signal A frame of audio digital signals.
- the fluctuation frequency limit of the signal envelope may be a single fluctuation threshold of the signal envelope (also referred to as the fluctuation threshold of the signal envelope) It can also be the range of fluctuation frequency of the signal envelope with upper and lower limits.
- the threshold value of the fluctuation frequency of the signal envelope and the specific values of the upper and lower limits of the fluctuation range of the signal envelope can be flexibly set according to the actual application scenarios. set.
- the threshold of the fluctuation frequency of the signal envelope and the upper and lower limits of the fluctuation range of the signal envelope can be adjusted manually or adaptively according to different application scenarios.
- step S304 Determine whether the fluctuation frequency of the signal envelope between the audio signal of the current frame and the audio digital signal targeted for the last gain control parameter update exceeds the fluctuation frequency change limit of the signal envelope, if If it exceeds, step S305A is executed; otherwise, step S305B is executed.
- the current frame of audio digital signal is called the first frame of audio digital signal.
- the audio digital signal can also be called the second frame audio digital signal. Therefore, in step S302, the fluctuation frequency of the signal envelope of the first frame audio digital signal can be directly compared with the fluctuation of the signal envelope of the second frame audio digital signal Frequency to determine the fluctuation frequency of the signal envelope of the two frames of audio digital signals, the corresponding number can be the difference between the fluctuation frequency of the signal envelope of the first frame of audio digital signals and the second frame of audio digital signals.
- the absolute value is compared with the fluctuation limit of the signal envelope in step S304 to further determine whether the change of the fluctuation frequency of the signal envelope of the audio digital signal of the first frame exceeds the preset signal envelope The limit of the frequency fluctuation.
- the adjustment rule includes the peak-to-peak value of the signal envelope of the audio digital signal of the current frame and the fluctuation frequency of the signal envelope update the speed parameter when increasing the gain.
- the control parameters of the gain mentioned in step 304 and the related steps above specifically refer to the speed parameter when increasing the gain.
- the speed parameter when increasing the gain is used to control the audio frequency digital signal.
- the speed of increasing the PGA gain by means of AGC technology.
- the speed parameter when increasing the gain is also called Decay time.
- control parameter may be updated according to the set adjustment rule. Specifically, the following formula (2) may be used to update the speed parameter when increasing the gain:
- t decay represents Decay time
- t d0 represents the maximum value of Decay time
- env represents the peak-to-peak value of the signal envelope of the current frame of audio digital signals
- f represents the fluctuation frequency of the signal envelope of the current frame of audio digital signal
- k d represents the coefficient of Decay time varying with env ⁇ f.
- t d0 and k d are constant parameters, and the specific values of the constant parameters are manually set by the designer according to actual needs or obtained through debugging software testing.
- the relationship of the change of t decay with env and f is not limited to the proportional relationship described above, but may also be other negative correlations.
- the adjustment rules of the update control parameters set in this embodiment are only exemplary descriptions. In actual use, those skilled in the art can refer to the solutions in the embodiments of the present application on the premise of not paying any creative labor. , Other adjustment rules for updating control parameters can be obtained according to the adjustment rules.
- the peak-to-peak value of the signal envelope in the above formula (2) can also be obtained by referring to the above embodiment.
- the peak-to-peak value of the signal envelope of the current frame of audio digital signal is The peak-to-peak value of the signal envelope of the audio digital signal for which the control parameter update of the gain is updated does not change or changes little.
- the peak-to-peak value of the signal envelope of the env may also be relative to the peak-to-peak value of the signal envelope of the audio digital signal when the control parameter of the last gain is updated env changes, when the peak-to-peak change of the signal envelope exceeds the set peak-to-peak change limit, it can be based on the above formula (2), and at the same time according to the fluctuation frequency f of the signal envelope of the current frame of audio digital signal and The peak-to-peak value of the signal envelope env updates the Decay time parameter when increasing the gain.
- t decay is recalculated through the above formula (2).
- the fluctuation frequency of the signal envelope becomes larger, its value becomes smaller than the t decay used in the last update, that is, increases.
- the large PGA gain needs a shorter time, that is, the PGA gain needs to be increased quickly, so that the audio digital signal quickly rises to the target level when it is amplified, thereby avoiding the effect of "suppressing and frustrating".
- the speed parameter when increasing the gain obtained when the control parameter of the gain was last updated is continued.
- the peak-to-peak value of the signal envelope env and the fluctuation frequency f of the signal envelope can also be considered as a comprehensive audio index.
- the comprehensive audio index for the current frame of audio digital signal is relatively
- the change between the comprehensive audio index of the audio digital signal last updated exceeds the set comprehensive audio index change limit, then refer to formulas (1) and (2) to adjust the speed parameter and the increase rate when reducing the gain, respectively The speed parameter when the gain is large.
- control parameters used when updating the gain can be set as the speed parameter when reducing the gain and the speed parameter when increasing the gain, and the speed when reducing the gain can be adjusted according to the set adjustment rule The parameters are updated together with the speed parameter when increasing the gain.
- the adjustment rules include the peak-to-peak value of the signal envelope equal to the current frame of the audio digital signal and the fluctuation frequency of the signal envelope are updated when the gain is reduced Speed parameter and speed parameter when increasing the gain, specifically, refer to the above formulas (1) and (2) for the speed parameter when decreasing the gain and the speed parameter when increasing the gain And update, please refer to the second and third embodiments above for details.
- control parameters used when updating the gain can be set as the speed parameter when reducing the gain and the speed parameter when increasing the gain, and the speed when reducing the gain can be adjusted according to the set adjustment rule The parameters are updated together with the speed parameter when increasing the gain.
- the adjustment rules include the peak-to-peak value of the signal envelope equal to the current frame of the audio digital signal and the fluctuation frequency of the signal envelope are updated when the gain is reduced Speed parameter and speed parameter when increasing the gain, specifically, refer to the above formulas (1) and (2) for the speed parameter when decreasing the gain and the speed parameter when increasing the gain And update, please refer to the second and third embodiments above for details.
- the difference from the above-mentioned second embodiment is: in the above-mentioned second embodiment, the peak of the signal envelope between the audio signal of the current frame and the audio digital signal targeted at the last time when the gain control parameter is updated
- the control parameter used when updating the gain is set as the speed parameter when reducing the gain, it should be noted that it can also be used when updating the gain
- the control parameter of is only the speed parameter when increasing the gain
- the speed parameter when increasing the gain is updated according to the set adjustment rule
- the adjustment rule includes a signal equal to the current frame of audio digital signal
- the peak-to-peak value of the envelope and the fluctuation frequency of the signal envelope update the speed parameter when increasing the gain.
- the above Examples two and three refer to the above Examples two and three.
- the difference from the above-mentioned third embodiment is: in the above-mentioned third embodiment, the fluctuation of the signal envelope between the audio signal of the current frame and the audio digital signal targeted when the gain control parameter was last updated
- the control parameter used when updating the gain is set as the speed parameter when increasing the gain, it should be noted that it can also be used when updating the gain
- the control parameter of is only the speed parameter when reducing the gain, and the speed parameter when reducing the gain is updated according to the set adjustment rule.
- the adjustment rule includes a signal packet equal to the current frame of audio digital signal
- the peak-to-peak value of the network and the fluctuation frequency of the signal envelope are updated to reduce the speed parameter of the gain.
- the above formula (1) may also be used to update only the speed parameter of the gain reduction. Examples two and three.
- FIG. 4 is a schematic flowchart of a gain processing method according to Embodiment 4 of the present application; as shown in FIG. 4, it includes the following steps S401-405A, or, steps S401-405B:
- analyzing the current frame of audio digital signal may include performing noise analysis on the current frame of audio digital signal to extract the corresponding estimated intensity of environmental noise.
- noise analysis methods such as minimum value tracking algorithm, time recursive averaging algorithm, and quantile noise estimation can be used to perform noise analysis on the current frame of audio digital signal to obtain the estimated intensity of environmental noise.
- S402. Determine the change in the estimated intensity of the environmental noise between the audio signal of the current frame and the audio digital signal targeted when the gain control parameter was last updated;
- the gain control parameter includes at least a noise threshold.
- the audio digital signal targeted for the last noise threshold update may be the same as the current frame of audio digital signal.
- the audio digital signal of the previous frame with an adjacent relationship may be a frame of audio digital signal with an interval relationship with the audio digital signal of the current frame.
- the noise threshold used when processing each frame of audio digital signal needs to be updated.
- the environmental noise estimated intensity change limit may be a single environmental noise estimated intensity change threshold (or also referred to as the environmental noise estimated intensity change threshold), or it may be an environmental noise estimated intensity change range with upper and lower limits
- the threshold value of the variation intensity of the estimated environmental noise and the specific values of the upper and lower limits of the variation range of the estimated intensity of the environmental noise are flexibly set according to empirical statistics of actual application scenarios.
- the threshold of the change in the intensity of the environmental noise estimate and the upper and lower limits of the range of the change in the intensity of the environmental noise estimate can be adjusted manually or adaptively according to different application scenarios.
- S404 Determine whether the change in the estimated intensity of the environmental noise between the current frame of the digital audio signal and the audio digital signal targeted at the last time when the control parameter of the gain was updated exceeds the limit of the change in the estimated intensity of the environmental noise.
- S405A otherwise, execute S405B.
- the current frame of audio digital signal is called the first frame of audio digital signal.
- the audio digital signal may also be referred to as a second frame audio digital signal. Therefore, in step S402, the estimated environmental noise intensity of the first frame audio digital signal and the second frame audio digital signal may be directly compared to determine this
- the estimated intensity of the environmental noise of the two frames of audio digital signal changes, and the corresponding number may be the absolute value of the difference between the estimated intensity of the environmental noise of the audio signal of the first frame and the second frame of the audio digital signal, and then in step S404 A comparison is made with the change limit of the estimated intensity of the environmental noise to further determine whether the change in the estimated intensity of the environmental noise of the first frame of the audio digital signal exceeds the preset limit of the change of the estimated intensity of the environmental noise.
- the adjustment rule includes updating the noise threshold proportional to the estimated intensity of the environmental noise of the current frame of audio digital signal.
- the noise threshold also referred to as noise threshold
- the noise threshold specifically refers to identifying noise from the audio digital signal. For example, when the amplitude of the audio digital signal is lower than the noise threshold, it is considered It's noise. If the noise threshold is set too high, then the smaller audio digital signal will be considered as noise and ignored; if the noise threshold is set too low, then the larger noise will be significantly amplified. In a specific application scenario, the noise threshold is also called Noise threshold.
- control parameter may be updated according to the set adjustment rule, specifically the noise threshold may be updated by the following formula (3):
- noise thr represents Noise threshold
- noise est represents the estimated intensity of environmental noise
- k represents the coefficient of variation of Noise threshold with the estimated intensity of environmental noise
- k is a constant parameter
- the relationship between noise thr and noise est is not limited to the proportional relationship described above, but may also be other positive correlation relationships.
- the adjustment rules of the update control parameters set in this embodiment are only exemplary descriptions. In actual use, those skilled in the art can refer to the solutions in the embodiments of the present application on the premise of not paying any creative labor. , Other adjustment rules for updating control parameters can be obtained according to the adjustment rules.
- the noise threshold is recalculated through the above formula (3).
- the noise threshold becomes larger, compared with the noise threshold used in the last update, for the current frame of audio digital signal
- the noise threshold of becomes larger, so as to avoid larger noise from being amplified.
- the noise threshold obtained when the control parameter of the gain was last updated is continued.
- the noise threshold in addition to updating the noise threshold, it may also include updating one or more other related parameters of the control noise, such as maximum gain, maximum hysteresis, and noise.
- Anti-jitter time Noise debounce time
- signal anti-jitter time Signal anti-jitter time
- any one of the speed parameter when increasing the gain or the speed parameter when decreasing the gain may also be updated, or A situation may occur in which the noise threshold, the speed parameter when increasing the gain, and the speed parameter when decreasing the gain are updated together (or referred to as adjustment).
- a situation may occur in which the noise threshold, the speed parameter when increasing the gain, and the speed parameter when decreasing the gain are updated together (or referred to as adjustment).
- the audio collection system needs to enter a low-power mode, and the audio collection system needs to free up more
- the CPU resources are used to process other tasks, and a step to determine whether to stop updating the gain control parameters can also be added. Specifically, whether to stop can be judged by capturing a stop operation command, which can be issued by the controller of the audio collection system or triggered by an external control button.
- the processing method adopted by the present invention can be realized not only by AGC hardware, but also by AGC software.
- Embodiments of the present application also provide an electronic device that uses the above audio acquisition system or that separately applies the above gain adjustment device.
- the electronic device exists in various forms, including but not limited to:
- Mobile communication equipment The characteristic of this type of equipment is that it has mobile communication functions, and its main goal is to provide voice and data communication.
- Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
- Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has the characteristics of mobile Internet access.
- Such terminals include: PDA, MID and UMPC devices, such as iPad.
- Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
- Server a device that provides computing services.
- the composition of the server includes a processor 810, hard disk, memory, system bus, etc.
- the server is similar to a general-purpose computer architecture, but due to the need to provide highly reliable services, the processing power and stability The requirements for performance, reliability, security, scalability, and manageability are high.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Computational Linguistics (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Control Of Amplification And Gain Control (AREA)
- Tone Control, Compression And Expansion, Limiting Amplitude (AREA)
Abstract
A gain processing method and a device implementing the same, an electronic apparatus, and a signal acquisition method and a system implementing the same. The gain processing method comprises: analyzing a current audio digital signal to extract a corresponding audio index, and determining an audio index change between the current audio digital signal and an audio digital signal associated with the last update to a gain increase control parameter (S101); and determining, according to the audio index change, whether there is a need to update a gain control parameter used when performing gain processing on the current audio digital signal (S102). The gain processing method can adjust, in real time, a gain control parameter to adapt to the effect of vibrations at the position of a sound source, a sound source change (such as the change of a speaker) or a change in ambient noise, thereby achieving favorable gain control.
Description
本申请实施例涉及信号处理领域,尤其涉及一种增益处理方法及其装置、电子设备、信号采集方法及其系统。Embodiments of the present application relate to the field of signal processing, and in particular, to a gain processing method and apparatus, electronic equipment, signal acquisition method, and system thereof.
音频自动增益控制(Automatic Gain control,以下简称AGC)技术在音频系统中具有广泛的应用。当音频模拟信号的输入幅度动态变化时,通过AGC技术调整可编程增益放大器(Programmable gain Amplifier,以下简称PGA)的增益,使得经过PGA放大处理后的音频数字信号的幅度保持在一个稳定的水平,业界又称之为目标水平(Target level)。Audio automatic gain control (Automatic Gain control, hereinafter referred to as AGC) technology has a wide range of applications in audio systems. When the input amplitude of the audio analog signal changes dynamically, adjust the gain of the programmable gain amplifier (Programmable Gain Amplifier, hereinafter referred to as PGA) through AGC technology, so that the amplitude of the audio digital signal after the PGA amplification process is maintained at a stable level, The industry also calls it the target level.
但是,现有技术中,针对同一个应用场景通常预先设定固定的控制参数来控制增益的调整,而在同一场景中由于实际环境通常存在随机变化,比如声源位置的抖动、声源的改变(如发声者改变)、环境噪声的改变等因素的影响,如果按照预先设定的固定的控制参数来实现增益的调整,无法实现良好的增益控制效果。However, in the prior art, fixed control parameters are usually set in advance for the same application scenario to control the gain adjustment, and in the same scenario, there are usually random changes in the actual environment, such as jitter of the sound source position and change of the sound source (For example, the change of the speaker), the change of environmental noise and other factors, if the gain is adjusted according to the preset fixed control parameters, a good gain control effect cannot be achieved.
发明内容Summary of the invention
有鉴于此,本申请实施例所解决的技术问题之一在于提供一种增益处理方法及其装置、电子设备、信号采集方法及其系统,用以克服现有技术中上述缺陷。In view of this, one of the technical problems solved by the embodiments of the present application is to provide a gain processing method and its device, electronic equipment, signal acquisition method and its system, to overcome the above-mentioned defects in the prior art.
本申请实施例提供了一种增益处理方法,其包括:An embodiment of the present application provides a gain processing method, including:
对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化;Analyze the current frame of audio digital signal to extract its corresponding audio index, and determine the change in audio index between the current frame of audio digital signal and the audio digital signal targeted at the last gain control parameter update;
根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新。According to the change of the audio index between the current digital audio signal of the current frame and the audio digital signal targeted when the gain control parameter was updated last time, determine whether the gain to be used when the current digital audio signal of the current frame is subjected to gain amplification processing The control parameters are updated.
可选地,在本申请的一实施例中,所述当前一帧音频数字信号的音频指标包括信号包络的峰峰值、信号包络的起伏频率、环境噪声估计强度的至少一种。Optionally, in an embodiment of the present application, the audio index of the current frame of audio digital signals includes at least one of peak-to-peak value of the signal envelope, fluctuation frequency of the signal envelope, and estimated intensity of environmental noise.
可选地,在本申请的一实施例中,对当前一帧音频数字信号进行分析以提取其对应的音频指标,包括:对当前一帧音频数字信号的信号包络进行分析以提取其对应的信号包络的峰峰值。Optionally, in an embodiment of the present application, analyzing the current frame of audio digital signal to extract its corresponding audio index includes: analyzing the signal envelope of the current frame of audio digital signal to extract its corresponding The peak-to-peak value of the signal envelope.
可选地,在本申请的一实施例中,对当前一帧音频数字信号进行分析以提取其对应的音频指标,包括:对当前一帧音频数字信号进行噪声分析以提取对应的环境噪声估计强度。Optionally, in an embodiment of the present application, analyzing the current frame of audio digital signal to extract its corresponding audio index includes: performing noise analysis on the current frame of audio digital signal to extract the corresponding estimated intensity of environmental noise .
可选地,在本申请的一实施例中,对当前一帧音频数字信号进行分析以提取其对应的音频指标,包括:对当前一帧音频数字信号的信号包络进行分析以提取其信号包络的起伏频率。Optionally, in an embodiment of the present application, analyzing the current frame of audio digital signal to extract its corresponding audio index includes: analyzing the signal envelope of the current frame of audio digital signal to extract its signal package The frequency of the network.
可选地,在本申请的一实施例中,还包括:获取预先设定的音频指标变化界限;Optionally, in an embodiment of the present application, the method further includes: acquiring a preset audio indicator change limit;
对应地,根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新,包括:Correspondingly, according to the change of the audio index between the current digital audio signal of the current frame and the audio digital signal targeted when the gain control parameter was last updated, it is determined whether it is necessary to perform gain amplification processing on the current digital audio signal The control parameters of the gain used are updated, including:
根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化与所述音频指标变化界限,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新。According to the change of the audio index between the current frame of audio digital signal and the audio digital signal targeted for the last gain control parameter update and the change of the audio index, determine whether it is necessary to perform gain on the current frame of audio digital signal During the amplification process, the control parameters of the gain used are updated.
可选地,在本申请的一实施例中,根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化与所述音频指标变化界限,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新包括:Optionally, in an embodiment of the present application, according to the audio index change between the current frame of audio digital signal and the audio digital signal targeted when the gain control parameter was last updated and the audio index change limit To determine whether it is necessary to update the control parameters of the gain used when performing gain amplification processing on the audio signal of the current frame, including:
若所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化未超过所述音频指标变化界限,则不需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新;If the change of the audio index between the current frame of audio digital signal and the audio digital signal targeted for the last gain control parameter update does not exceed the audio index change limit, there is no need to perform the current frame of audio digital signal Update the control parameters of the gain used during the gain amplification process;
或者,若所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化超过所述音频指标变化界限,则需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新。Or, if the change of the audio index between the current frame of audio digital signal and the audio digital signal targeted for the last gain control parameter update exceeds the limit of the change of the audio index, the audio digital signal of the current frame needs to be performed During the gain amplification process, the control parameters of the used gain are updated.
可选地,在本申请的一实施例中,需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新,则所述方法还包括:确定对所述增益进行更新时使用的控制参数,以及根据设定的调整规则更新所述控制参 数。Optionally, in an embodiment of the present application, it is necessary to update the control parameters of the gain used when performing gain amplification processing on the current frame of audio digital signals, then the method further includes: determining to update the gain Control parameters used at the time, and updating the control parameters according to the set adjustment rules.
可选地,在本申请的一实施例中,确定对所述增益进行更新时使用的控制参数包括:若所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的环境噪声估计强度变化超过所述环境噪声估计强度变化界限,则设置对所述增益进行更新时使用的控制参数为噪声阈值;Optionally, in an embodiment of the present application, determining the control parameter used when updating the gain includes: if the current frame of audio digital signal and the audio digital targeted when the control parameter of the gain was last updated If the change in the estimated intensity of the environmental noise between the signals exceeds the limit of the change in the estimated intensity of the environmental noise, then set the control parameter used when updating the gain as the noise threshold;
若所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的信号包络的峰峰值变化超过所述信号包络的峰峰值变化界限,或者,所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的信号包络的起伏频率变化超过所述信号包络的起伏频率变化界限,则设置对所述增益进行更新时使用的控制参数为增大所述增益时的快慢参数或减小所述增益时的快慢参数中的至少一种。If the peak-to-peak change of the signal envelope between the current frame of audio digital signal and the audio digital signal targeted at the last gain control parameter update exceeds the peak-to-peak change limit of the signal envelope, or When the fluctuation frequency of the signal envelope between the audio digital signal of the current frame and the audio digital signal targeted for the last gain control parameter update exceeds the fluctuation frequency change limit of the signal envelope, the gain is set to The control parameter used when updating is at least one of a speed parameter when increasing the gain or a speed parameter when decreasing the gain.
可选地,在本申请的一实施例中,若所述控制参数为所述噪声阈值;对应地,根据设定的调整规则对所述控制参数进行更新,包括:根据正比于当前一帧音频数字信号的环境噪声估计强度更新所述噪声阈值。Optionally, in an embodiment of the present application, if the control parameter is the noise threshold; correspondingly, updating the control parameter according to the set adjustment rule includes: according to the current frame of audio The estimated noise intensity of the digital signal updates the noise threshold.
可选地,在本申请的一实施例中,若所述控制参数为所述增大所述增益时的快慢参数;对应地,根据设定的调整规则对所述控制参数进行更新,包括:根据等比于当前一帧音频数字信号的信号包络的峰峰值以及信号包络的起伏频率更新所述增大所述增益时的快慢参数。Optionally, in an embodiment of the present application, if the control parameter is the speed parameter when increasing the gain; correspondingly, updating the control parameter according to the set adjustment rule includes: The speed parameter when increasing the gain is updated according to the peak-to-peak value of the signal envelope equal to the current frame of the audio digital signal and the fluctuation frequency of the signal envelope.
可选地,在本申请的一实施例中,若所述控制参数为所述减小所述增益时的快慢参数;对应地,根据设定的调整规则对所述控制参数进行更新,包括:根据等比于当前一帧音频数字信号的信号包络的峰峰值以及信号包络的起伏频率更新所述减小所述增益时的快慢参数。Optionally, in an embodiment of the present application, if the control parameter is the speed parameter when reducing the gain; correspondingly, updating the control parameter according to the set adjustment rule includes: The speed parameter when reducing the gain is updated according to the peak-to-peak value of the signal envelope equal to the current frame of the audio digital signal and the fluctuation frequency of the signal envelope.
本申请实施例还提供一种信号采集方法,其包括:An embodiment of the present application also provides a signal acquisition method, which includes:
对当前一帧音频模拟信号进行模数转化生成对应的音频数字信号;Perform analog-to-digital conversion on the current frame of audio analog signals to generate corresponding audio digital signals;
对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化;Analyze the current frame of audio digital signal to extract its corresponding audio index, and determine the change in audio index between the current frame of audio digital signal and the audio digital signal targeted at the last gain control parameter update;
根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新;According to the change of the audio index between the current digital audio signal of the current frame and the audio digital signal targeted when the gain control parameter was updated last time, determine whether the gain to be used when the current digital audio signal of the current frame is subjected to gain amplification processing To update the control parameters;
根据所述增益对所述当前一帧音频数字信号进行放大处理。Amplify the audio signal of the current frame according to the gain.
本申请实施例还提供一种增益调整装置,其包括:An embodiment of the present application further provides a gain adjustment device, including:
提取单元,用于对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化;The extraction unit is used to analyze the current frame of audio digital signal to extract its corresponding audio index and determine the relationship between the current frame of audio digital signal and the audio digital signal targeted for the last gain control parameter update Audio index changes;
分析单元,用于根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新。The analysis unit is used for determining whether it is necessary to perform gain amplification processing on the current frame of audio digital signal according to the change of the audio index between the current frame of audio digital signal and the audio digital signal targeted when the gain control parameter was updated last time The control parameters of the gain used are updated.
本申请实施例还提供一种信号采集系统,其包括:An embodiment of the present application also provides a signal acquisition system, which includes:
模数转换模块,用于对当前一帧音频模拟信号进行模数转化生成对应的音频数字信号;Analog-to-digital conversion module, used for analog-to-digital conversion of the current frame of audio analog signals to generate corresponding audio digital signals;
增益调整装置,其包括提取单元以及分析单元,所述提取单元用于对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化;所述分析单元用于根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新;Gain adjustment device, including an extraction unit and an analysis unit, the extraction unit is used to analyze the current frame of audio digital signal to extract its corresponding audio index, and determine the current frame of audio digital signal and the last gain The audio index changes between the audio digital signals targeted when the control parameters are updated; the analysis unit is used to determine the relationship between the audio digital signals of the current frame and the audio digital signals targeted during the last gain control parameter update The audio index changes to determine whether it is necessary to update the gain control parameters used when the current frame of audio digital signal is gain amplified;
增益放大模块,用于根据所述增益对所述当前一帧音频数字信号进行放大处理。A gain amplification module is used to amplify the current frame of audio digital signal according to the gain.
本申请实施例还提供一种电子设备,其包括本申请实施例中所述的信号采集系统。An embodiment of the present application also provides an electronic device, which includes the signal acquisition system described in the embodiment of the present application.
本申请实施例中,由于在确定是否需要进行增益的控制参数调整时,对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,再进一步根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新,因此,可以自适应应对由于声源位置的抖动、声源的改变(如发声者改变)、环境噪声的改变等因素的影响,实时调整上述增益的控制参数,达到良好的增益控制效果。In the embodiment of the present application, when determining whether it is necessary to adjust the gain control parameters, the current frame of audio digital signal is analyzed to extract its corresponding audio index, and it is determined that the current frame of audio digital signal is the same as the last time The audio index changes between the audio digital signals targeted when the gain control parameter is updated, and then further based on the audio index changes between the current frame of audio digital signals and the audio digital signals targeted when the gain control parameter was last updated To determine whether it is necessary to update the control parameters of the gain used when performing gain amplification processing on the current frame of audio digital signal, therefore, it can adaptively respond to the jitter of the sound source position, the change of the sound source (such as the change of the speaker), Under the influence of factors such as changes in environmental noise, the above-mentioned gain control parameters are adjusted in real time to achieve a good gain control effect.
后文将参照附图以示例性而非限制性的方式详细描述本申请实施例的一些具体实施例。附图中相同的附图标记标示了相同或类似的部件或部分。本领域 技术人员应该理解,这些附图未必是按比例绘制的。附图中:Hereinafter, some specific embodiments of the embodiments of the present application will be described in detail in an exemplary but non-limiting manner with reference to the drawings. The same reference numerals in the drawings indicate the same or similar parts or portions. Those skilled in the art should understand that these drawings are not necessarily drawn to scale. In the drawings:
[根据细则26改正25.01.2019]
图1为本申请实施例信号采集系统的结构示意图;[Corrected according to Rule 26. 25.01.2019]
1 is a schematic structural diagram of a signal acquisition system according to an embodiment of this application;
图1为本申请实施例信号采集系统的结构示意图;[Corrected according to Rule 26. 25.01.2019]
1 is a schematic structural diagram of a signal acquisition system according to an embodiment of this application;
[根据细则26改正25.01.2019]
图2为本申请实施例一增益处理方法的流程示意图;[Corrected according to Rule 26. 25.01.2019]
2 is a schematic flowchart of a gain processing method according to an embodiment of the present application;
图2为本申请实施例一增益处理方法的流程示意图;[Corrected according to Rule 26. 25.01.2019]
2 is a schematic flowchart of a gain processing method according to an embodiment of the present application;
[根据细则26改正25.01.2019]
图3为本申请实施例二增益处理方法的流程示意图;[Corrected according to Rule 26. 25.01.2019]
3 is a schematic flowchart of a gain processing method according to Embodiment 2 of the present application;
图3为本申请实施例二增益处理方法的流程示意图;[Corrected according to Rule 26. 25.01.2019]
3 is a schematic flowchart of a gain processing method according to Embodiment 2 of the present application;
[根据细则26改正25.01.2019]
图4为本申请实施例三增益处理方法的流程示意图;[Corrected according to Rule 26. 25.01.2019]
4 is a schematic flowchart of a third gain processing method according to an embodiment of this application;
图4为本申请实施例三增益处理方法的流程示意图;[Corrected according to Rule 26. 25.01.2019]
4 is a schematic flowchart of a third gain processing method according to an embodiment of this application;
[根据细则26改正25.01.2019]
图5为本申请实施例四增益处理方法的流程示意图。[Corrected according to Rule 26. 25.01.2019]
FIG. 5 is a schematic flowchart of a fourth gain processing method according to Embodiment 4 of the present application.
图5为本申请实施例四增益处理方法的流程示意图。[Corrected according to Rule 26. 25.01.2019]
FIG. 5 is a schematic flowchart of a fourth gain processing method according to Embodiment 4 of the present application.
实施本申请实施例的任一技术方案必不一定需要同时达到以上的所有优点。It is not necessary for all technical solutions of the embodiments of the present application to achieve all the above advantages at the same time.
本申请实施例中,由于在确定是否需要进行增益的控制参数调整时,对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,再进一步根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新,因此,可以自适应应对由于声源位置的抖动、声源的改变(如发声者改变)、环境噪声的改变等因素的影响,实时调整上述增益的控制参数,达到良好的增益控制效果。In the embodiment of the present application, when determining whether it is necessary to adjust the gain control parameters, the current frame of audio digital signal is analyzed to extract its corresponding audio index, and it is determined that the current frame of audio digital signal is the same as the last time The audio index changes between the audio digital signals targeted when the gain control parameter is updated, and then further based on the audio index changes between the current frame of audio digital signals and the audio digital signals targeted when the gain control parameter was last updated To determine whether it is necessary to update the control parameters of the used gain when performing gain amplification processing on the current frame of audio digital signals, therefore, it can adaptively respond to changes in the sound source position, changes in the sound source (such as the change of the speaker) Under the influence of factors such as changes in environmental noise, the above-mentioned gain control parameters are adjusted in real time to achieve a good gain control effect.
图0为本申请实施例信号采集系统的结构示意图;如图0所示,其包括:FIG. 0 is a schematic structural diagram of a signal acquisition system according to an embodiment of the present application; as shown in FIG. 0, it includes:
模数转换模块(又可称之AD转换器),用于对当前一帧音频模拟信号进行模数转化生成对应的音频数字信号;Analog-to-digital conversion module (also known as AD converter), used for analog-to-digital conversion of the current frame of audio analog signals to generate corresponding audio digital signals;
增益调整装置(又可称之为AGC分析模块),其包括提取单元以及分析单元,所述提取单元用于对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化;所述分析单元用于根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新;A gain adjustment device (also known as an AGC analysis module) includes an extraction unit and an analysis unit. The extraction unit is used to analyze the current frame of audio digital signal to extract its corresponding audio index and determine the current The change of the audio index between the audio digital signal of one frame and the audio digital signal targeted when the control parameter of the last gain is updated; the analysis unit is used to determine the control parameter of the gain according to the current audio digital signal of the current frame During the update, the audio index changes between the audio digital signals to determine whether it is necessary to update the gain control parameters used when the current frame of audio digital signals is subjected to gain amplification processing;
增益放大模块(又可称之为PGA),用于根据所述增益对所述当前一帧音频数字信号进行放大处理。A gain amplification module (also called PGA) is used to amplify the current frame of audio digital signal according to the gain.
实施例一中的上述音频采集系统可以但不局限于应用于:1)噪声强度变化 明显;2)音频响度可能高频率变化。其中:The above-mentioned audio collection system in the first embodiment can be applied to but not limited to: 1) the noise intensity changes obviously; 2) the audio loudness may change at a high frequency. among them:
所述场景1)具体包括但不局限于:所述音频采集系统被集成在一个便携式麦克风里,使用者携带麦克风进入不同的环境中进行音频采集活动。所述不同的环境可以但不局限于学校、商场、菜市场、会议室等。The scenario 1) specifically includes but is not limited to: the audio collection system is integrated into a portable microphone, and the user carries the microphone into different environments to perform audio collection activities. The different environments may be but not limited to schools, shopping malls, vegetable markets, conference rooms, etc.
所述场景2)包括但不局限于:所述音频采集系统被集成在一个便携式麦克风里,在音频采集过程中,麦克风与音源的相对位置以一定的频率改变,比如麦克风的晃动,导致采集到的音频响度也以该频率不断起伏变化。The scenario 2) includes but is not limited to: the audio collection system is integrated into a portable microphone. During the audio collection process, the relative position of the microphone and the sound source changes at a certain frequency, such as the shaking of the microphone, resulting in the collection The loudness of the audio frequency also fluctuates at this frequency.
所述音频采集系统的输出可以是但不局限于:1)被D/A转化器转换成模拟信号,直接播放;2)被编码器编码,然后保存为音频文件或者通过无线网络发送到远端设备;3)经过后续的语音增强算法处理,以得到更清晰的语音。The output of the audio collection system may be, but not limited to: 1) converted to an analog signal by a D/A converter and played directly; 2) encoded by an encoder, and then saved as an audio file or sent to a remote end through a wireless network Equipment; 3) After the subsequent speech enhancement algorithm processing, to get a clearer speech.
由上述可见,由于在确定是否需要进行增益的控制参数调整时,对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,再进一步根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新,因此,上述实施例一中的音频采集系统在采集信号的过程中,可以自适应应对由于声源位置的抖动、声源的改变(如发声者改变)、环境噪声的改变等因素的影响,实时调整上述增益的控制参数,达到良好的增益控制效果。It can be seen from the above that when determining whether it is necessary to adjust the gain control parameters, the current frame of audio digital signal is analyzed to extract its corresponding audio index, and the current frame of audio digital signal and the last gain gain are determined The audio index changes between the audio digital signals targeted when the control parameters are updated, and then further determined according to the audio index changes between the current frame of audio digital signals and the audio digital signals targeted when the control parameters were updated last time Whether it is necessary to update the control parameters of the gain used when performing gain amplification processing on the current frame of audio digital signals, therefore, the audio acquisition system in the first embodiment above can adaptively respond to the position of the sound source during the signal acquisition process The influence of factors such as the jitter of the sound source, the change of the sound source (such as the change of the utterer), the change of the environmental noise, etc., adjust the above-mentioned gain control parameters in real time to achieve a good gain control effect.
对应上述信号采集系统,本申请实施例还提供一种信号采集方法,其包括如下步骤:对当前一帧音频模拟信号进行模数转化生成对应的音频数字信号;对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化;根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新;以及根据所述增益对所述当前一帧音频数字信号进行放大处理。Corresponding to the above signal acquisition system, an embodiment of the present application also provides a signal acquisition method, which includes the following steps: performing analog-to-digital conversion on the current frame of audio analog signals to generate corresponding audio digital signals; and analyzing the current frame of audio digital signals To extract the corresponding audio index and determine the audio index change between the current frame of audio digital signal and the audio digital signal targeted at the last gain control parameter update; according to the current frame of audio digital signal and The audio index changes between the audio digital signals for the last time when the control parameters of the gain were updated, to determine whether it is necessary to update the control parameters of the used gain when performing gain amplification processing on the current frame of audio digital signals; and The gain amplifies the audio signal of the current frame.
对应上述信号采集系统中的增益调整装置,本申请实施例提供了一种增益处理方法,图1为实施例一增益处理方法的流程示意图;如图1所示,其具体包括以下步骤:Corresponding to the gain adjustment device in the above-mentioned signal acquisition system, an embodiment of the present application provides a gain processing method. FIG. 1 is a schematic flowchart of the gain processing method in Embodiment 1. As shown in FIG. 1, it specifically includes the following steps:
S101、对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确 定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化;S101. Analyze the current frame of audio digital signal to extract its corresponding audio index, and determine the change of the audio index between the current frame of audio digital signal and the audio digital signal targeted when the gain control parameter was last updated ;
S102、根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新。S102: Determine whether it is necessary to use the gain amplification processing of the current frame of audio digital signal according to the change of the audio index between the current frame of audio digital signal and the audio digital signal targeted when the gain control parameter was updated last time The gain control parameters are updated.
本实施例中,当前一帧音频数字信号的音频指标包括但不限于信号包络的峰峰值、信号包络的起伏频率、环境噪声估计强度中的至少一种。对当前一帧音频数字信号进行分析并提取其信号包络的峰峰值、信号包络的起伏频率、环境噪声估计强度中的至少一种之后,确定当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间对应的音频指标变化。In this embodiment, the audio index of the current frame of audio digital signals includes but is not limited to at least one of the peak-to-peak value of the signal envelope, the fluctuation frequency of the signal envelope, and the estimated intensity of environmental noise. After analyzing the current frame of audio digital signals and extracting at least one of the peak value of the signal envelope, the fluctuation frequency of the signal envelope, and the estimated intensity of environmental noise, determine the current frame of audio digital signals and the last gain The corresponding audio index changes between the audio digital signals targeted when the control parameters are updated.
下述实施例中,具体如何利用上述信号采集系统中的增益调整装置实现增益调整的过程进行如下示例性说明。当需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新时,具体如何确定对增益进行更新时使用的控制参数,以及根据设定的调整规则更新控制参数进行如下示例性说明。In the following embodiments, how to use the gain adjustment device in the above-mentioned signal acquisition system to implement the process of gain adjustment will be exemplified as follows. When it is necessary to update the control parameters of the gain used in the current frame of audio digital signals during gain amplification, how to determine the control parameters used to update the gain, and update the control parameters according to the set adjustment rules are as follows Exemplary instructions.
图2为本申请实施例二增益处理方法的流程示意图;如图2所示,其包括如下步骤S201-205A,或者,步骤S201-205B:FIG. 2 is a schematic flowchart of a gain processing method according to Embodiment 2 of the present application; as shown in FIG. 2, it includes the following steps S201-205A, or, steps S201-205B:
S201、对当前一帧音频数字信号进行分析以提取其对应的信号包络的峰峰值;S201. Analyze the current frame of audio digital signal to extract the peak-to-peak value of its corresponding signal envelope;
本实施例中,对当前一帧音频数字信号进行分析可以包括对当前一帧音频数字信号的信号包络进行分析,以提取其信号包络的峰峰值。在步骤S201中或者在步骤S201之前还可以包括:基于希尔伯特变换法或者复解析子波变换法等对所述当前一帧音频数字进行包络分析以得到所述信号包络。In this embodiment, analyzing the current frame of audio digital signal may include analyzing the signal envelope of the current frame of audio digital signal to extract the peak-to-peak value of the signal envelope. In step S201 or before step S201, it may further include: performing an envelope analysis on the current frame of audio digits based on the Hilbert transform method or the complex analytical wavelet transform method to obtain the signal envelope.
本实施例中,信号包络的峰峰值可以反映音频数字信号的强度变化(又称之音频响度的变化),其为设定时间段内信号包络的相邻峰值与谷值之差的最大值。在一具体应用场景中,所述当前一帧音频数字信号的时长可以根据实际情况来设定,可以是几百毫秒到几十秒。In this embodiment, the peak-to-peak value of the signal envelope can reflect the change in the strength of the audio digital signal (also known as the change in audio loudness), which is the maximum difference between the adjacent peak value and the valley value of the signal envelope within the set time period value. In a specific application scenario, the duration of the current frame of audio digital signals can be set according to actual conditions, and can be from a few hundred milliseconds to tens of seconds.
S202、确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的信号包络的峰峰值变化;S202. Determine the peak-to-peak change of the signal envelope between the audio signal of the current frame and the audio digital signal targeted when the gain control parameter was updated last time;
本实施例中,增益的控制参数至少包括减小所述增益时的快慢参数,进一步地,在具体应用时,并非一定要对每一帧音频数字信号进行处理时使用的减小所述增益时的快慢参数进行更新,实际经常出现一段音频流对应的若干帧音 频数字信号来说,其中对于针对多帧音频数字信号(该多帧音频数字信号并非一定连续)使用的减小所述增益时的快慢参数需要更新,而对于针对另外多帧音频数字信号(该另外多帧音频数字信号并非一定连续)使用的减小所述增益时的快慢参数不需要更新。因此,本实施例中,上次进行减小所述增益时的快慢参数更新时针对的音频数字信号可能是与当前一帧音频数字信号具有相邻关系的上一帧音频数字信号,可能是与当前一帧音频数字信号具有间隔关系的一帧音频数字信号。In this embodiment, the gain control parameters include at least the speed parameter when reducing the gain. Further, in specific applications, it is not necessary to use the time to reduce the gain when processing each frame of audio digital signals The speed parameter is updated. In fact, there are often several frames of audio digital signals corresponding to an audio stream. For the multi-frame audio digital signal (the multi-frame audio digital signal is not necessarily continuous), when reducing the gain The speed parameter needs to be updated, and the speed parameter for reducing the gain used for another multi-frame audio digital signal (the other multi-frame audio digital signal is not necessarily continuous) does not need to be updated. Therefore, in this embodiment, the audio digital signal targeted when the speed parameter update when the gain is reduced last time may be the audio digital signal of the previous frame that has an adjacent relationship with the audio digital signal of the current frame, and may be A frame of audio digital signals with a space relationship in the current frame of audio digital signals.
当然,在其他实施例中,并不排除需要对每一帧音频数字信号进行处理时使用的减小所述增益时的快慢参数进行更新的情形。Of course, in other embodiments, it is not ruled out that it is necessary to update the speed parameter when reducing the gain used in processing each frame of audio digital signals.
S203、获取预先设定的信号包络的峰峰值变化界限;S203. Acquire a preset peak-to-peak variation limit of the signal envelope;
本实施例中,信号包络的峰峰值变化界限可以是单一的信号包络的峰峰值变化阈值(或者又称之信号包络的峰峰值变化门限),也可以是具有上下限的信号包络的峰峰值变化范围,该信号包络的峰峰值变化阈值、以及信号包络的峰峰值变化范围的上下限具体数值根据实际应用场景的经验统计灵活设定。当然,可以根据应用场景的不同,对信号包络的峰峰值变化阈值、以及信号包络的峰峰值变化范围的上下限进行人工或者自适应调整。In this embodiment, the peak-to-peak change limit of the signal envelope may be a single peak-to-peak change threshold of the signal envelope (or the peak-to-peak change threshold of the signal envelope), or may be a signal envelope with upper and lower limits The peak-to-peak variation range of the signal, the peak-to-peak variation threshold of the signal envelope, and the specific values of the upper and lower limits of the peak-to-peak variation range of the signal envelope are flexibly set according to empirical statistics of actual application scenarios. Of course, the threshold of the peak-to-peak change of the signal envelope and the upper and lower limits of the peak-to-peak change range of the signal envelope can be adjusted manually or adaptively according to different application scenarios.
S204、判断所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的信号包络的峰峰值变化是否超过所述信号包络的峰峰值变化界限,若超过则执行步骤S205A,否则,执行S205B。S204. Determine whether the peak-to-peak change of the signal envelope between the current frame of audio digital signal and the audio digital signal targeted for the last gain control parameter update exceeds the peak-to-peak change limit of the signal envelope, if If it is exceeded, step S205A is executed; otherwise, step S205B is executed.
本实施例中,为了便于清楚并非对帧顺序的限定,所述当前一帧音频数字信号又可以称之为第一帧音频数字信号,上次进行增益的控制参数更新时针对的音频数字信号又可以称之为第二帧音频数字信号,因此,步骤S202中,可以直接比较第一帧音频数字信号的信号包络的峰峰值与第二帧音频数字信号的信号包络的峰峰值从而确定这两帧音频数字信号的信号包络的峰峰值变化,其对应的数字可以为第一帧音频数字信号与第二帧音频数字信号的信号包络的峰峰值之间的差值的绝对值,再与信号包络的峰峰值变化界限去做比对,以进一步在步骤S204中通过判断处理来确定第一帧音频数字信号的信号包络的峰峰值变化是否超过了预先设定的信号包络的峰峰值变化界限。In this embodiment, in order to make it clear that the frame order is not limited, the audio digital signal of the current frame may also be referred to as the audio digital signal of the first frame, and the audio digital signal targeted when the gain control parameter was last updated It can be called the second frame audio digital signal. Therefore, in step S202, the peak-to-peak value of the signal envelope of the first frame audio digital signal can be directly compared with the peak-to-peak value of the signal envelope of the second frame audio digital signal to determine this The peak-to-peak variation of the signal envelope of the two frames of audio digital signals. The corresponding number can be the absolute value of the difference between the peak and peak values of the signal envelope of the first frame of audio digital signals and the second frame of audio digital signals. Compare with the peak-to-peak change limit of the signal envelope to further determine whether the peak-to-peak change of the signal envelope of the audio digital signal of the first frame exceeds the preset signal envelope in step S204 through a judgment process Peak-to-peak variation limits.
S205A、需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新,设置对增益进行更新时使用的控制参数为减小所述增益时的快慢参数,以及根据设定的调整规则对减小所述增益时的快慢参数进行更新。S205A. It is necessary to update the control parameters of the gain used when performing gain amplification processing on the current frame of audio digital signals, and set the control parameters used when updating the gain to be the speed parameter when reducing the gain, and according to the settings The adjustment rule of updates the speed parameter when reducing the gain.
对于本实施例来说,在步骤205A中,调整规则包括等比于当前一帧音频数字信号的信号包络的峰峰值以及信号包络的起伏频率更新减小所述增益时的快慢参数。步骤204及其之前相关步骤中提及的增益的控制参数具体是当放大处理后的音频数字信号的幅度超过目标水平时减小所述增益时的快慢参数,本实施例中减小所述增益时的快慢参数用于控制决定了当音频数字信号超过目标水平时通过AGC技术手段减小PGA增益的快慢,在一具体应用场景中该减小所述增益时的快慢参数又称为Attack time。For this embodiment, in step 205A, the adjustment rule includes the speed parameter that is equal to the peak-to-peak value of the signal envelope of the current frame of audio digital signal and the fluctuation frequency of the signal envelope when the gain is reduced. The control parameter of the gain mentioned in step 204 and the related steps before it is specifically the speed parameter when reducing the gain when the amplitude of the amplified audio digital signal exceeds the target level, in this embodiment the gain is reduced The speed parameter of time is used to control the speed of reducing the PGA gain by AGC technology when the audio digital signal exceeds the target level. In a specific application scenario, the speed parameter of reducing the gain is also called Attack time.
进一步地,可以根据设定的调整规则更新该控制参数,具体可采用如下公式(1)更新减小所述增益时的快慢参数:Further, the control parameter may be updated according to the set adjustment rule. Specifically, the following formula (1) may be used to update the speed parameter when reducing the gain:
t
attack=t
a0-k
a×env×f (1)
t attack = t a0 -k a ×env×f (1)
上述公式(1)中,对于所述当前一帧音频数字信号,t
attack表示Attack time,t
a0表示Attack time的最大值,env表示当前一帧音频数字信号的信号包络的峰峰值,f表示当前一帧音频数字信号的信号包络的起伏频率。k
a表示Attack time随着env×f变化的系数。其中t
a0、k
a为常量参数,常量参数的具体数值由设计者根据实际需要人为设定或者通过调试软件测试得到。
In the above formula (1), for the current frame of audio digital signals, t attack represents Attack time, t a0 represents the maximum value of Attack time, env represents the peak-to-peak value of the signal envelope of the current frame of audio digital signals, and f represents The fluctuation frequency of the signal envelope of the current frame of audio digital signals. k a represents the coefficient of attack time varying with env×f. Among them, t a0 and k a are constant parameters, and the specific values of the constant parameters are manually set by the designer according to actual needs or obtained through debugging software testing.
在本实施例中,t
attack随env和f的变化关系不局限于上面描述的等比例关系,也可以是其他负相关关系。需要说明的是,本实施例中设定的更新控制参数的调整规则只是示例性说明,在实际使用中,本领域的技术人员可以参照本申请实施例的方案,在不付出创造性劳动的前提下,可以根据该调整规则获得其他的更新控制参数的调整规则。
In this embodiment, the relationship between t attack and env and f is not limited to the proportional relationship described above, but may also be other negative correlations. It should be noted that the adjustment rules of the update control parameters set in this embodiment are only exemplary descriptions. In actual use, those skilled in the art can refer to the solutions in the embodiments of the present application on the premise of not paying any creative labor. , Other adjustment rules for updating control parameters can be obtained according to the adjustment rules.
上述公式(1)中的信号包络的起伏频率f具体也可以通过统计设定时间段内的信号包络得到。在本实施例中,假设当前一帧音频数字信号的信号包络的起伏频率相对于上次增益的控制参数更新针对的音频数字信号的信号包络的起伏频率不变或者变化较小。The fluctuation frequency f of the signal envelope in the above formula (1) can also be obtained by statistically calculating the signal envelope within a set time period. In this embodiment, it is assumed that the fluctuation frequency of the signal envelope of the audio digital signal of the current frame is unchanged or relatively small with respect to the fluctuation frequency of the signal envelope of the audio digital signal for the last gain control parameter update.
在其他实施例中,对于所述当前一帧音频数字信号来说,其信号包络的起伏频率f也可以相对于上次增益的控制参数更新时针对的音频数字信号的信号包络的起伏频率发生变化,当该起伏频率的变化超过设定的起伏频率变化界限时,可以根据上述公式(1),同时根据所述当前一帧音频数字信号的信号包络的起伏频率f和信号包络的峰峰值env更新该减小所述增益时的快慢参数Attack time。In other embodiments, for the current frame of audio digital signals, the fluctuation frequency f of the signal envelope may also be relative to the fluctuation frequency of the signal envelope of the audio digital signal targeted at the last gain control parameter update When a change occurs, when the change of the undulation frequency exceeds the set undulation frequency change limit, it can be based on the above formula (1) and at the same time according to the undulation frequency f of the signal envelope of the current frame of audio digital signal and the signal envelope The peak-to-peak value env updates the attack time, the speed parameter when reducing the gain.
本实施例中,通过上述公式(1)重新计算得到t
attack,在所述信号包络的峰峰值变大的情况下,相比上次更新时使用的t
attack,其值变小,即减小PGA 增益需要更短时间,即需要快速减小PGA增益,使得音频数字信号在被放大时快速地回落到目标水平,从而避免听到“抑扬顿挫”的效果。
In this embodiment, t attack is recalculated through the above formula (1), and when the peak-to-peak value of the signal envelope becomes larger, the value of t attack becomes smaller than the t attack used in the last update, that is, minus The small PGA gain needs a shorter time, that is, the PGA gain needs to be quickly reduced, so that the audio digital signal quickly falls back to the target level when it is amplified, thereby avoiding the effect of "suppressing and frustrating".
S205B、不需要在当前一帧音频数字信号进行增益放大处理时对减小所述增益时的快慢参数进行更新。S205B. It is not necessary to update the speed parameter when reducing the gain when performing gain amplification processing on the audio signal of the current frame.
本实施例中,若不需要对减小所述增益时的快慢参数进行更新,则继续沿用上次进行增益的控制参数更新时得到的减小所述增益时的快慢参数。In this embodiment, if there is no need to update the speed parameter at the time of reducing the gain, the speed parameter at the time of reducing the gain obtained when the control parameter of the gain was last updated is continued.
图3为本申请实施例三增益处理方法的流程示意图;如图3所示,其包括如下步骤S301-305A,或者,步骤S301-305B:FIG. 3 is a schematic flowchart of a third gain processing method according to an embodiment of the present application; as shown in FIG. 3, it includes the following steps S301-305A, or, steps S301-305B:
S301、对当前一帧音频数字信号进行分析以提取其信号包络的起伏频率。S301. Analyze the audio digital signal of the current frame to extract the fluctuation frequency of its signal envelope.
本实施例中,对当前一帧音频数字信号进行分析可以包括对当前一帧音频数字信号的信号包络进行分析,以提取其信号包络的起伏频率。信号包络的起伏频率可以反映音频数字信号的强度变化的快慢(又称之音频响度的变化快慢)。In this embodiment, analyzing the current frame of audio digital signals may include analyzing the signal envelope of the current frame of audio digital signals to extract the fluctuation frequency of the signal envelope. The fluctuation frequency of the signal envelope can reflect the speed of the change of the intensity of the audio digital signal (also known as the speed of the change of the audio loudness).
本实施例中,与上述实施例类似,具体信号包络可以基于希尔伯特变换法或者复解析子波变换法等信号包络分析方法得到。In this embodiment, similar to the above embodiment, the specific signal envelope may be obtained based on signal envelope analysis methods such as the Hilbert transform method or the complex analytical wavelet transform method.
S302、确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的信号包络的起伏频率变化;S302: Determine the fluctuation frequency of the signal envelope between the audio signal of the current frame and the audio digital signal targeted at the last time when the control parameter of the gain is updated;
本实施例中,增益的控制参数至少包括增大所述增益时的快慢参数,进一步地,与上述实施例类似,在具体应用时,并非一定要对每一帧音频数字信号进行处理时使用的增大所述增益时的快慢参数进行更新,当然并不排除需要对每一帧音频数字信号进行处理时使用的增大所述增益时的快慢参数进行更新的情形,因此,本实施例中,上次增大所述增益时的快慢参数更新时针对的音频数字信号可能是与当前一帧音频数字信号具有相邻关系的上一帧音频数字信号,可能是与当前一帧音频数字信号具有间隔关系的一帧音频数字信号。In this embodiment, the gain control parameters include at least the speed parameter when increasing the gain. Further, similar to the above embodiment, in specific applications, it is not necessary to process each frame of audio digital signal. The update of the speed parameter when increasing the gain does not exclude the need to update the speed parameter when increasing the gain used for processing each frame of audio digital signal. Therefore, in this embodiment, The audio digital signal targeted at the last time when the gain parameter was updated when the speed was increased may be the audio digital signal of the previous frame that is adjacent to the current frame of audio digital signal, or may be separated from the current frame of audio digital signal A frame of audio digital signals.
当然,在其他实施例中,并不排除需要对每一帧音频数字信号进行处理时使用的增大所述增益时的快慢参数进行更新的情形。Of course, in other embodiments, it is not excluded that it is necessary to update the speed parameter used to increase the gain when processing each frame of audio digital signals.
S303、获取预先设定的信号包络的起伏频率变化界限;S303. Acquire a predetermined limit of the fluctuation frequency of the signal envelope;
本实施例中,与上述实施例相似,本实施例中,信号包络的起伏频率界限可以是单一的信号包络的起伏频率变化阈值(或者又称之为信号包络的起伏频率变化门限),也可以是具有上下限的信号包络的起伏频率变化范围,该信号包络的起伏频率变化阈值、以及信号包络的起伏频率变化范围的上下限具体数值根据实际应用场景的经验统计灵活设定。当然,可以根据应用场景的不同,对信号包络的起伏频率变化阈值、以及信号包络的起伏频率变化范围的上下限 进行人工或者自适应调整。In this embodiment, similar to the above embodiment, in this embodiment, the fluctuation frequency limit of the signal envelope may be a single fluctuation threshold of the signal envelope (also referred to as the fluctuation threshold of the signal envelope) It can also be the range of fluctuation frequency of the signal envelope with upper and lower limits. The threshold value of the fluctuation frequency of the signal envelope and the specific values of the upper and lower limits of the fluctuation range of the signal envelope can be flexibly set according to the actual application scenarios. set. Of course, the threshold of the fluctuation frequency of the signal envelope and the upper and lower limits of the fluctuation range of the signal envelope can be adjusted manually or adaptively according to different application scenarios.
S304、判断所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的信号包络的起伏频率变化是否超过所述信号包络的起伏频率变化界限,若超过则执行步骤S305A,否则,执行S305B。S304. Determine whether the fluctuation frequency of the signal envelope between the audio signal of the current frame and the audio digital signal targeted for the last gain control parameter update exceeds the fluctuation frequency change limit of the signal envelope, if If it exceeds, step S305A is executed; otherwise, step S305B is executed.
参考上述实施例二,本实施例中,为了便于清楚并非对帧顺序的限定,所述当前一帧音频数字信号称之为第一帧音频数字信号,上次进行增益的控制参数更新时针对的音频数字信号又可以称之为第二帧音频数字信号,因此,步骤S302中,可以直接比较第一帧音频数字信号的信号包络的起伏频率与第二帧音频数字信号的信号包络的起伏频率从而确定这两帧音频数字信号的信号包络的起伏频率变化,其对应的数字可以为第一帧音频数字信号与第二帧音频数字信号的信号包络的起伏频率之间的差值的绝对值,再在步骤S304中与信号包络的起伏频率变化界限去做比对,以进一步确定第一帧音频数字信号的信号包络的起伏频率的变化是否超过了预先设定的信号包络的起伏频率变化界限。With reference to the second embodiment above, in this embodiment, for the sake of clarity, it does not limit the frame order. The current frame of audio digital signal is called the first frame of audio digital signal. The audio digital signal can also be called the second frame audio digital signal. Therefore, in step S302, the fluctuation frequency of the signal envelope of the first frame audio digital signal can be directly compared with the fluctuation of the signal envelope of the second frame audio digital signal Frequency to determine the fluctuation frequency of the signal envelope of the two frames of audio digital signals, the corresponding number can be the difference between the fluctuation frequency of the signal envelope of the first frame of audio digital signals and the second frame of audio digital signals The absolute value is compared with the fluctuation limit of the signal envelope in step S304 to further determine whether the change of the fluctuation frequency of the signal envelope of the audio digital signal of the first frame exceeds the preset signal envelope The limit of the frequency fluctuation.
S305A、需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新,设置对增益进行更新时使用的控制参数为增大所述增益时的快慢参数,以及根据设定的调整规则对增大所述增益时的快慢参数进行更新。S305A. It is necessary to update the control parameters of the gain used when performing gain amplification processing on the audio signal of the current frame, set the control parameters used when updating the gain to be the speed parameter when increasing the gain, and according to the settings The adjustment rule of updates the speed parameter when increasing the gain.
对于本实施例来说,在步骤305A中,调整规则包括等比于当前一帧音频数字信号的信号包络的峰峰值以及信号包络的起伏频率更新增大所述增益时的快慢参数。步骤304及其之前相关步骤中提及的增益的控制参数具体是指增大所述增益时的快慢参数,本实施例中增大所述增益时的快慢参数用于控制决定了当音频数字信号低于目标水平时通过AGC技术手段增大PGA增益的快慢,在一具体应用场景中该增大所述增益时的快慢参数又称为Decay time。For this embodiment, in step 305A, the adjustment rule includes the peak-to-peak value of the signal envelope of the audio digital signal of the current frame and the fluctuation frequency of the signal envelope update the speed parameter when increasing the gain. The control parameters of the gain mentioned in step 304 and the related steps above specifically refer to the speed parameter when increasing the gain. In this embodiment, the speed parameter when increasing the gain is used to control the audio frequency digital signal. When it is lower than the target level, the speed of increasing the PGA gain by means of AGC technology. In a specific application scenario, the speed parameter when increasing the gain is also called Decay time.
进一步地,可以根据设定的调整规则更新该控制参数,具体可采用如下公式(2)更新增大所述增益时的快慢参数:Further, the control parameter may be updated according to the set adjustment rule. Specifically, the following formula (2) may be used to update the speed parameter when increasing the gain:
t
decay=t
d0-k
d×env×f (2)
t decay = t d0 -k d ×env×f (2)
上述公式(2)中,对于所述当前一帧音频数字信号来说,t
decay表示Decay time,t
d0表示Decay time的最大值,env表示当前一帧音频数字信号的信号包络的峰峰值,f表示当前一帧音频数字信号的信号包络的起伏频率,k
d表示Decay time随着env×f变化的系数。其中t
d0、k
d为常量参数,常量参数的具体数值由设计者根据实际需要人为设定或者通过调试软件测试得到。
In the above formula (2), for the current frame of audio digital signals, t decay represents Decay time, t d0 represents the maximum value of Decay time, and env represents the peak-to-peak value of the signal envelope of the current frame of audio digital signals, f represents the fluctuation frequency of the signal envelope of the current frame of audio digital signal, and k d represents the coefficient of Decay time varying with env×f. Among them, t d0 and k d are constant parameters, and the specific values of the constant parameters are manually set by the designer according to actual needs or obtained through debugging software testing.
在本实施例中,t
decay随env和f的变化关系不局限于上面描述的等比例关 系,也可以是其他负相关关系。需要说明的是,本实施例中设定的更新控制参数的调整规则只是示例性说明,在实际使用中,本领域的技术人员可以参照本申请实施例的方案,在不付出创造性劳动的前提下,可以根据该调整规则获得其他的更新控制参数的调整规则。
In this embodiment, the relationship of the change of t decay with env and f is not limited to the proportional relationship described above, but may also be other negative correlations. It should be noted that the adjustment rules of the update control parameters set in this embodiment are only exemplary descriptions. In actual use, those skilled in the art can refer to the solutions in the embodiments of the present application on the premise of not paying any creative labor. , Other adjustment rules for updating control parameters can be obtained according to the adjustment rules.
上述公式(2)中的所述信号包络的峰峰值env具体也可以参照上述实施例而得到,在本实施例中,假设当前一帧音频数字信号的信号包络的峰峰值相对于上次增益的控制参数更新针对的音频数字信号的信号包络的峰峰值不变或者变化较小。The peak-to-peak value of the signal envelope in the above formula (2) can also be obtained by referring to the above embodiment. In this embodiment, it is assumed that the peak-to-peak value of the signal envelope of the current frame of audio digital signal is The peak-to-peak value of the signal envelope of the audio digital signal for which the control parameter update of the gain is updated does not change or changes little.
在其他实施例中,对于所述当前一帧音频数字信号来说,其信号包络的峰峰值env也可以相对于上次增益的控制参数更新时针对的音频数字信号的信号包络的峰峰值env有变化,当该信号包络的峰峰值变化超过设定的峰峰值变化界限时,可以根据上述公式(2),同时根据所述当前一帧音频数字信号的信号包络的起伏频率f和信号包络的峰峰值env更新该增大所述增益时的快慢参数Decay time。In other embodiments, for the current frame of audio digital signals, the peak-to-peak value of the signal envelope of the env may also be relative to the peak-to-peak value of the signal envelope of the audio digital signal when the control parameter of the last gain is updated env changes, when the peak-to-peak change of the signal envelope exceeds the set peak-to-peak change limit, it can be based on the above formula (2), and at the same time according to the fluctuation frequency f of the signal envelope of the current frame of audio digital signal and The peak-to-peak value of the signal envelope env updates the Decay time parameter when increasing the gain.
本实施例中,通过上述公式(2)重新计算得到t
decay,在所述信号包络的起伏频率变大的情况下,相比上次更新时使用的t
decay,其值变小,即增大PGA增益需要更短时间,即需要快速增大PGA增益,使得音频数字信号在被放大时快速地上升到目标水平,从而避免听到“抑扬顿挫”的效果。
In this embodiment, t decay is recalculated through the above formula (2). When the fluctuation frequency of the signal envelope becomes larger, its value becomes smaller than the t decay used in the last update, that is, increases. The large PGA gain needs a shorter time, that is, the PGA gain needs to be increased quickly, so that the audio digital signal quickly rises to the target level when it is amplified, thereby avoiding the effect of "suppressing and frustrating".
S305B、不需要在当前一帧音频数字信号进行增益放大处理时对增大所述增益时的快慢参数进行更新。S305B. It is not necessary to update the speed parameter when increasing the gain when performing gain amplification processing on the audio signal of the current frame.
本实施例中,若不需要对增大所述增益时的快慢参数进行更新,则继续沿用上次进行增益的控制参数更新时得到的增大所述增益时的快慢参数。In this embodiment, if there is no need to update the speed parameter when increasing the gain, the speed parameter when increasing the gain obtained when the control parameter of the gain was last updated is continued.
参照上述实施例二和三,是假设信号包络的峰峰值env和信号包络的起伏频率f其中之一不变或者变化较小可当作近似不变。当然,在其他实施例中,也可以把信号包络的峰峰值env和信号包络的起伏频率f作为一个综合性音频指标来考量,当对于当前一帧音频数字信号的该综合性音频指标相对上次更新针对的音频数字信号的综合性音频指标之间变化超过设定的综合性音频指标变化界限,则参照公式(1)和(2)分别调整减小所述增益时的快慢参数以及增大所述增益时的快慢参数。With reference to the second and third embodiments above, it is assumed that one of the peak-to-peak value of the signal envelope env and the fluctuation frequency f of the signal envelope is unchanged or the change is small, which can be regarded as approximately unchanged. Of course, in other embodiments, the peak-to-peak value of the signal envelope env and the fluctuation frequency f of the signal envelope can also be considered as a comprehensive audio index. When the comprehensive audio index for the current frame of audio digital signal is relatively The change between the comprehensive audio index of the audio digital signal last updated exceeds the set comprehensive audio index change limit, then refer to formulas (1) and (2) to adjust the speed parameter and the increase rate when reducing the gain, respectively The speed parameter when the gain is large.
上述实施例二和三中分别是以只更新减小所述增益时的快慢参数以及增大 所述增益时的快慢参数中之一进行说明、而另外一快慢参数保持不变,但是,在一些应用场景中,也可以参照上述公式(1)和(2)对减小所述增益时的快慢参数以及增大所述增益时的快慢参数一并进行更新。In the second and third embodiments described above, only one of the speed parameter at the time of decreasing the gain and the speed parameter at the time of increasing the gain are described, and the other speed parameter remains unchanged. However, in some In an application scenario, the speed parameters when the gain is reduced and the speed parameters when the gain is increased may be updated together with reference to the above formulas (1) and (2).
在其他实施例中,当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的信号包络的峰峰值变化超过所述信号包络的峰峰值变化界限时,可以设置对增益进行更新时使用的控制参数为减小所述增益时的快慢参数和增大所述增益时的快慢参数,并且,可以根据设定的调整规则对减小所述增益时的快慢参数和增大所述增益时的快慢参数一并进行更新,调整规则包括等比于当前一帧音频数字信号的信号包络的峰峰值以及信号包络的起伏频率更新减小所述增益时的快慢参数和增大所述增益时的快慢参数,具体地,可以参照上述公式(1)和(2)对减小所述增益时的快慢参数以及增大所述增益时的快慢参数一并进行更新,详细可参照上述实施例二和三。In other embodiments, when the peak-to-peak change of the signal envelope between the audio signal of the current frame and the audio digital signal for which the gain control parameter was last updated exceeds the limit of the peak-to-peak change of the signal envelope, The control parameters used when updating the gain can be set as the speed parameter when reducing the gain and the speed parameter when increasing the gain, and the speed when reducing the gain can be adjusted according to the set adjustment rule The parameters are updated together with the speed parameter when increasing the gain. The adjustment rules include the peak-to-peak value of the signal envelope equal to the current frame of the audio digital signal and the fluctuation frequency of the signal envelope are updated when the gain is reduced Speed parameter and speed parameter when increasing the gain, specifically, refer to the above formulas (1) and (2) for the speed parameter when decreasing the gain and the speed parameter when increasing the gain And update, please refer to the second and third embodiments above for details.
在其他实施例中,当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的信号包络的起伏频率变化超过所述信号包络的起伏频率变化界限时,可以设置对增益进行更新时使用的控制参数为减小所述增益时的快慢参数和增大所述增益时的快慢参数,并且,可以根据设定的调整规则对减小所述增益时的快慢参数和增大所述增益时的快慢参数一并进行更新,调整规则包括等比于当前一帧音频数字信号的信号包络的峰峰值以及信号包络的起伏频率更新减小所述增益时的快慢参数和增大所述增益时的快慢参数,具体地,可以参照上述公式(1)和(2)对减小所述增益时的快慢参数以及增大所述增益时的快慢参数一并进行更新,详细可参照上述实施例二和三。In other embodiments, when the fluctuation frequency of the signal envelope between the audio digital signal of the current frame and the audio digital signal targeted for the last gain control parameter update exceeds the fluctuation frequency change limit of the signal envelope, The control parameters used when updating the gain can be set as the speed parameter when reducing the gain and the speed parameter when increasing the gain, and the speed when reducing the gain can be adjusted according to the set adjustment rule The parameters are updated together with the speed parameter when increasing the gain. The adjustment rules include the peak-to-peak value of the signal envelope equal to the current frame of the audio digital signal and the fluctuation frequency of the signal envelope are updated when the gain is reduced Speed parameter and speed parameter when increasing the gain, specifically, refer to the above formulas (1) and (2) for the speed parameter when decreasing the gain and the speed parameter when increasing the gain And update, please refer to the second and third embodiments above for details.
在其他实施例中,与上述实施例二的区别是:上述实施例二中,当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的信号包络的峰峰值变化超过所述信号包络的峰峰值变化界限时,设置对增益进行更新时使用的控制参数为减小所述增益时的快慢参数,需要说明的是,也可以设置对增益进行更新时使用的控制参数仅仅为增大所述增益时的快慢参数,并且,根据设定的调整规则对增大所述增益时的快慢参数进行更新,调整规则包括等比于当前一帧音频数字信号的信号包络的峰峰值以及信号包络的起伏频率更新增大所述增益时的快慢参数,具体地,也可以参照上述公式(2)仅更新增大所述增益时的快慢参数,详细可参照上述实施例二和三。In other embodiments, the difference from the above-mentioned second embodiment is: in the above-mentioned second embodiment, the peak of the signal envelope between the audio signal of the current frame and the audio digital signal targeted at the last time when the gain control parameter is updated When the peak change exceeds the peak-to-peak change limit of the signal envelope, the control parameter used when updating the gain is set as the speed parameter when reducing the gain, it should be noted that it can also be used when updating the gain The control parameter of is only the speed parameter when increasing the gain, and the speed parameter when increasing the gain is updated according to the set adjustment rule, the adjustment rule includes a signal equal to the current frame of audio digital signal The peak-to-peak value of the envelope and the fluctuation frequency of the signal envelope update the speed parameter when increasing the gain. Specifically, you can also refer to the above formula (2) to update only the speed parameter when increasing the gain. For details, refer to the above Examples two and three.
在其他实施例中,与上述实施例三的区别是:上述实施例三中,当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的信 号包络的起伏频率变化超过所述信号包络的起伏频率变化界限时,设置对增益进行更新时使用的控制参数为增大所述增益时的快慢参数,需要说明的是,也可以设置对增益进行更新时使用的控制参数仅仅为减小所述增益时的快慢参数,并且根据设定的调整规则对减小所述增益时的快慢参数进行更新,调整规则包括等比于当前一帧音频数字信号的信号包络的峰峰值以及信号包络的起伏频率更新减小所述增益时的快慢参数,具体地,也可以参照上述公式(1)仅更新减小所述增益时的快慢参数,详细可参照上述实施例二和三。In other embodiments, the difference from the above-mentioned third embodiment is: in the above-mentioned third embodiment, the fluctuation of the signal envelope between the audio signal of the current frame and the audio digital signal targeted when the gain control parameter was last updated When the frequency change exceeds the fluctuating frequency change limit of the signal envelope, the control parameter used when updating the gain is set as the speed parameter when increasing the gain, it should be noted that it can also be used when updating the gain The control parameter of is only the speed parameter when reducing the gain, and the speed parameter when reducing the gain is updated according to the set adjustment rule. The adjustment rule includes a signal packet equal to the current frame of audio digital signal The peak-to-peak value of the network and the fluctuation frequency of the signal envelope are updated to reduce the speed parameter of the gain. Specifically, the above formula (1) may also be used to update only the speed parameter of the gain reduction. Examples two and three.
图4为本申请实施例四增益处理方法的流程示意图;如图4所示,其包括如下步骤S401-405A,或者,步骤S401-405B:FIG. 4 is a schematic flowchart of a gain processing method according to Embodiment 4 of the present application; as shown in FIG. 4, it includes the following steps S401-405A, or, steps S401-405B:
S401、对当前一帧音频数字信号进行分析以提取对应的环境噪声估计强度。S401. Analyze the current frame of audio digital signals to extract the corresponding estimated intensity of environmental noise.
本实施例中,对当前一帧音频数字信号进行分析可以包括对当前一帧音频数字信号进行噪声分析,以提取对应的环境噪声估计强度。具体可以基于最小值跟踪算法、时间递归平均算法、分位数噪声估计等噪声分析方法,对当前一帧音频数字信号进行噪声分析从而得到环境噪声估计强度。In this embodiment, analyzing the current frame of audio digital signal may include performing noise analysis on the current frame of audio digital signal to extract the corresponding estimated intensity of environmental noise. Specifically, noise analysis methods such as minimum value tracking algorithm, time recursive averaging algorithm, and quantile noise estimation can be used to perform noise analysis on the current frame of audio digital signal to obtain the estimated intensity of environmental noise.
S402、确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的环境噪声估计强度变化;S402. Determine the change in the estimated intensity of the environmental noise between the audio signal of the current frame and the audio digital signal targeted when the gain control parameter was last updated;
本实施例中,增益的控制参数至少包括噪声阈值,进一步地,与上述实施例类似,在具体应用时,并非一定要对每一帧音频数字信号进行处理时使用的噪声阈值进行更新,当然并不排除需要对每一帧音频数字信号进行处理时使用的噪声阈值进行更新的情形,因此,本实施例中,上次进行噪声阈值更新时针对的音频数字信号可能是与当前一帧音频数字信号具有相邻关系的上一帧音频数字信号,可能是与当前一帧音频数字信号具有间隔关系的一帧音频数字信号。In this embodiment, the gain control parameter includes at least a noise threshold. Further, similar to the above embodiment, in specific applications, it is not necessary to update the noise threshold used when processing each frame of audio digital signal. Of course It does not rule out the need to update the noise threshold used when processing each frame of audio digital signal. Therefore, in this embodiment, the audio digital signal targeted for the last noise threshold update may be the same as the current frame of audio digital signal. The audio digital signal of the previous frame with an adjacent relationship may be a frame of audio digital signal with an interval relationship with the audio digital signal of the current frame.
当然,在其他实施例中,并不排除需要对每一帧音频数字信号进行处理时使用的噪声阈值进行更新的情形。Of course, in other embodiments, it is not excluded that the noise threshold used when processing each frame of audio digital signal needs to be updated.
S403、获取预先设定的环境噪声估计强度变化界限;S403. Acquire a preset limit of change in the estimated intensity of environmental noise;
本实施例中,环境噪声估计强度变化界限可以是单一的环境噪声估计强度变化阈值(或者又称之为环境噪声估计强度变化阈值门限),也可以是具有上下限的环境噪声估计强度变化范围,该环境噪声估计强度变化阈值、以及环境噪声估计强度变化范围的上下限具体数值根据实际应用场景的经验统计灵活设定。当然,可以根据应用场景的不同,对环境噪声估计强度变化阈值、以及环境噪声估计强度变化范围的上下限进行人工或者自适应调整。In this embodiment, the environmental noise estimated intensity change limit may be a single environmental noise estimated intensity change threshold (or also referred to as the environmental noise estimated intensity change threshold), or it may be an environmental noise estimated intensity change range with upper and lower limits, The threshold value of the variation intensity of the estimated environmental noise and the specific values of the upper and lower limits of the variation range of the estimated intensity of the environmental noise are flexibly set according to empirical statistics of actual application scenarios. Of course, the threshold of the change in the intensity of the environmental noise estimate and the upper and lower limits of the range of the change in the intensity of the environmental noise estimate can be adjusted manually or adaptively according to different application scenarios.
S404、判断所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的环境噪声估计强度变化是否超过所述环境噪声估计强度变化界限,若超过则执行步骤S405A,否则,执行S405B。S404. Determine whether the change in the estimated intensity of the environmental noise between the current frame of the digital audio signal and the audio digital signal targeted at the last time when the control parameter of the gain was updated exceeds the limit of the change in the estimated intensity of the environmental noise. S405A, otherwise, execute S405B.
参考上述实施例二,本实施例中,为了便于清楚并非对帧顺序的限定,所述当前一帧音频数字信号称之为第一帧音频数字信号,上次进行增益的控制参数更新时针对的音频数字信号又可以称之为第二帧音频数字信号,因此,步骤S402中,可以直接比较第一帧音频数字信号的环境噪声估计强度与第二帧音频数字信号的环境噪声估计强度从而确定这两帧音频数字信号的环境噪声估计强度变化,其对应的数字可以为第一帧音频数字信号与第二帧音频数字信号的环境噪声估计强度之间的差值的绝对值,再在步骤S404中与环境噪声估计强度变化界限去做比对,以进一步确定第一帧音频数字信号的环境噪声估计强度的变化是否超过了预先设定的环境噪声估计强度变化界限。With reference to the second embodiment above, in this embodiment, for the sake of clarity, it does not limit the frame order. The current frame of audio digital signal is called the first frame of audio digital signal. The audio digital signal may also be referred to as a second frame audio digital signal. Therefore, in step S402, the estimated environmental noise intensity of the first frame audio digital signal and the second frame audio digital signal may be directly compared to determine this The estimated intensity of the environmental noise of the two frames of audio digital signal changes, and the corresponding number may be the absolute value of the difference between the estimated intensity of the environmental noise of the audio signal of the first frame and the second frame of the audio digital signal, and then in step S404 A comparison is made with the change limit of the estimated intensity of the environmental noise to further determine whether the change in the estimated intensity of the environmental noise of the first frame of the audio digital signal exceeds the preset limit of the change of the estimated intensity of the environmental noise.
S405A、需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新,设置对所述增益进行更新时使用的控制参数为噪声阈值,以及根据设定的调整规则对噪声阈值进行更新。S405A. It is necessary to update the control parameters of the gain used when performing gain amplification processing on the current frame of audio digital signal, set the control parameter used when updating the gain to be a noise threshold, and adjust the noise according to the set adjustment rule The threshold is updated.
对于本实施例来说,在步骤405A中,调整规则包括正比于当前一帧音频数字信号的环境噪声估计强度更新所述噪声阈值。步骤404及其之前相关步骤中提及的噪声阈值(又称之为噪声门限)具体是指从音频数字信号中识别出噪声,比如当音频数字信号的幅度低于该噪声阈值时,则被认为是噪声。如果噪声阈值设置得过高,那么较小的音频数字信号会被认为是噪声而被忽略;如果噪声阈值设置得过低,那么较大的噪声会被明显放大。在一具体应用场景中该噪声阈值又称为Noise threshold。For this embodiment, in step 405A, the adjustment rule includes updating the noise threshold proportional to the estimated intensity of the environmental noise of the current frame of audio digital signal. The noise threshold (also referred to as noise threshold) mentioned in step 404 and the related steps before it specifically refers to identifying noise from the audio digital signal. For example, when the amplitude of the audio digital signal is lower than the noise threshold, it is considered It's noise. If the noise threshold is set too high, then the smaller audio digital signal will be considered as noise and ignored; if the noise threshold is set too low, then the larger noise will be significantly amplified. In a specific application scenario, the noise threshold is also called Noise threshold.
在本实施例中,进一步地,可以根据设定的调整规则更新该控制参数,具体可通过如下公式(3)来更新噪声阈值:In this embodiment, further, the control parameter may be updated according to the set adjustment rule, specifically the noise threshold may be updated by the following formula (3):
noise
thr=k×noise
est (3)
noise thr = k×noise est (3)
其中,上述公式(3)中,对于当前一帧音频数字信号,noise
thr表示Noise threshold,noise
est表示环境噪声估计强度,k表示Noise threshold随环境噪声估计强度的变化系数,其中k为常量参数,常量参数的具体数值由设计者根据实际需要人为设定或者通过调试软件测试得到。
Among the above formula (3), for the current frame of audio digital signal, noise thr represents Noise threshold, noise est represents the estimated intensity of environmental noise, k represents the coefficient of variation of Noise threshold with the estimated intensity of environmental noise, where k is a constant parameter The specific value of the constant parameter is set by the designer according to actual needs or obtained through debugging software test.
需要说明的是,在其他实施例中,noise
thr与noise
est的关系不局限于上面描述的等比例关系,也可以是其他正相关关系。需要说明的是,本实施例中设定的更新控制参数的调整规则只是示例性说明,在实际使用中,本领域的技术 人员可以参照本申请实施例的方案,在不付出创造性劳动的前提下,可以根据该调整规则获得其他的更新控制参数的调整规则。
It should be noted that in other embodiments, the relationship between noise thr and noise est is not limited to the proportional relationship described above, but may also be other positive correlation relationships. It should be noted that the adjustment rules of the update control parameters set in this embodiment are only exemplary descriptions. In actual use, those skilled in the art can refer to the solutions in the embodiments of the present application on the premise of not paying any creative labor. , Other adjustment rules for updating control parameters can be obtained according to the adjustment rules.
本实施例中,通过上述公式(3)重新计算得到噪声阈值,在所述环境噪声估计强度变大的情况下,相比上次更新时使用的噪声阈值来说,针对当前一帧音频数字信号的噪声阈值也变大,从而避免较大的噪声被放大处理。In this embodiment, the noise threshold is recalculated through the above formula (3). In the case where the estimated intensity of the environmental noise becomes larger, compared with the noise threshold used in the last update, for the current frame of audio digital signal The noise threshold of becomes larger, so as to avoid larger noise from being amplified.
S405B、不需要在当前一帧音频数字信号进行增益放大处理时对所述噪声阈值进行更新。S405B. It is not necessary to update the noise threshold when performing gain amplification processing on the audio signal of the current frame.
本实施例中,若不需要对所述噪声阈值进行更新,则继续沿用上次进行增益的控制参数更新时得到的噪声阈值。In this embodiment, if there is no need to update the noise threshold, the noise threshold obtained when the control parameter of the gain was last updated is continued.
需要说明的是,本实施例中,除了更新噪声阈值之外,还可以包括对控制噪声的其他一个或多个相关参数进行更新,例如最大增益(Maximum gain)、磁滞幅度(Hysteresis)、噪声防抖动时间(Noise debounce time)和信号防抖动时间(Signal debounce time)等。It should be noted that in this embodiment, in addition to updating the noise threshold, it may also include updating one or more other related parameters of the control noise, such as maximum gain, maximum hysteresis, and noise. Anti-jitter time (Noise debounce time) and signal anti-jitter time (Signal debounce time), etc.
需要说明的是,在另外一实施例中,在对噪声阈值进行更新时,也可以对增大所述增益时的快慢参数或者减小所述增益时的快慢参数中的任意一个进行更新,也可以出现对噪声阈值、增大所述增益时的快慢参数、减小所述增益时的快慢参数进行一并更新(或者又称之为调整)的情形,详细方案可参见上述实施例二至四的记载。It should be noted that, in another embodiment, when updating the noise threshold, any one of the speed parameter when increasing the gain or the speed parameter when decreasing the gain may also be updated, or A situation may occur in which the noise threshold, the speed parameter when increasing the gain, and the speed parameter when decreasing the gain are updated together (or referred to as adjustment). For detailed solutions, refer to Embodiments 2 to 4 above. Records.
上述实施例中,假设目标水平不需要调整。In the above embodiment, it is assumed that the target level does not need to be adjusted.
在其他实施例中,在上述实施例的基础上,在一些应用场景中,比如可以是但不局限于音频环境相对稳定、音频采集系统需要进入低功耗模式、音频采集系统需要腾出更多的CPU资源用于处理其他任务,还可以增加判断是否停止更新增益的控制参数的步骤。具体地,可以通过捕获停止操作命令来判断是否停止,该停止操作命令可以由音频采集系统的控制器发出或者触发外部的控制按钮产生。In other embodiments, based on the above embodiments, in some application scenarios, such as but not limited to, the audio environment is relatively stable, the audio collection system needs to enter a low-power mode, and the audio collection system needs to free up more The CPU resources are used to process other tasks, and a step to determine whether to stop updating the gain control parameters can also be added. Specifically, whether to stop can be judged by capturing a stop operation command, which can be issued by the controller of the audio collection system or triggered by an external control button.
本发明所采用的处理方法不仅可以通过AGC硬件来实现,同样也可以通过AGC软件来实现。The processing method adopted by the present invention can be realized not only by AGC hardware, but also by AGC software.
本申请实施例还提供一种应用上述音频采集系统或者单独应用上述增益调整装置的电子设备,该电子设备以多种形式存在,包括但不限于:Embodiments of the present application also provide an electronic device that uses the above audio acquisition system or that separately applies the above gain adjustment device. The electronic device exists in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication equipment: The characteristic of this type of equipment is that it has mobile communication functions, and its main goal is to provide voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has the characteristics of mobile Internet access. Such terminals include: PDA, MID and UMPC devices, such as iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器810、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: a device that provides computing services. The composition of the server includes a processor 810, hard disk, memory, system bus, etc. The server is similar to a general-purpose computer architecture, but due to the need to provide highly reliable services, the processing power and stability The requirements for performance, reliability, security, scalability, and manageability are high.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction function.
至此,已经对本主题的特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作可以按照不同的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序,以实现期望的结果。在某些实施方式中,多任务处理和并行处理可以是有利的。So far, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. Additionally, the processes depicted in the drawings do not necessarily require the particular order shown, or sequential order, to achieve the desired results. In certain embodiments, multitasking and parallel processing may be advantageous.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device that includes a series of elements includes not only those elements, but also includes Other elements not explicitly listed, or include elements inherent to this process, method, commodity, or equipment. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, commodity, or equipment that includes the element.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The embodiments in this specification are described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method embodiment.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the scope of the claims of this application.
Claims (16)
- 一种增益处理方法,其特征在于,包括:A gain processing method, characterized in that it includes:对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化;Analyze the current frame of audio digital signal to extract its corresponding audio index, and determine the change in audio index between the current frame of audio digital signal and the audio digital signal targeted at the last gain control parameter update;根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新。According to the change of the audio index between the current digital audio signal of the current frame and the audio digital signal targeted when the gain control parameter was updated last time, determine whether the gain to be used when the current digital audio signal of the current frame is subjected to gain amplification processing The control parameters are updated.
- 根据权利要求1所述的方法,其特征在于,所述当前一帧音频数字信号的音频指标包括信号包络的峰峰值、信号包络的起伏频率、环境噪声估计强度中的至少一种。The method according to claim 1, wherein the audio index of the current frame of audio digital signals includes at least one of a peak-to-peak value of the signal envelope, a fluctuation frequency of the signal envelope, and an estimated intensity of environmental noise.
- 根据权利要求2所述的方法,其特征在于,对当前一帧音频数字信号进行分析以提取其对应的音频指标,包括:对当前一帧音频数字信号的信号包络进行分析以提取其信号包络的峰峰值。The method according to claim 2, characterized in that analyzing the current frame of audio digital signal to extract its corresponding audio index comprises: analyzing the signal envelope of the current frame of audio digital signal to extract its signal package Peak-to-peak value of the network.
- 根据权利要求2所述的方法,其特征在于,对当前一帧音频数字信号进行分析以提取其对应的音频指标,包括:对当前一帧音频数字信号进行噪声分析以提取对应的环境噪声估计强度。The method according to claim 2, wherein analyzing the current frame of audio digital signal to extract its corresponding audio index includes: performing noise analysis on the current frame of audio digital signal to extract the corresponding estimated intensity of environmental noise .
- 根据权利要求2所述的方法,其特征在于,对当前一帧音频数字信号进行分析以提取其对应的音频指标,包括:对当前一帧音频数字信号的信号包络进行分析以提取其信号包络的起伏频率。The method according to claim 2, characterized in that analyzing the current frame of audio digital signal to extract its corresponding audio index comprises: analyzing the signal envelope of the current frame of audio digital signal to extract its signal package The frequency of the network.
- 根据权利要求1至5中任一项所述的方法,其特征在于,还包括:获取预先设定的音频指标变化界限;The method according to any one of claims 1 to 5, further comprising: obtaining a preset change limit of the audio index;对应地,根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新,包括:Correspondingly, according to the change of the audio index between the current digital audio signal of the current frame and the audio digital signal targeted when the gain control parameter was last updated, it is determined whether it is necessary to perform gain amplification processing on the current digital audio signal The control parameters of the gain used are updated, including:根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化与所述音频指标变化界限,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新。According to the change of the audio index between the current frame of audio digital signal and the audio digital signal targeted for the last gain control parameter update and the change of the audio index, determine whether it is necessary to perform gain on the current frame of audio digital signal During the amplification process, the control parameters of the gain used are updated.
- 根据权利要求6所述的方法,其特征在于,根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化与所述音频指标变化界限,确定是否需要在当前一帧音频数字信号进行增益 放大处理时对使用的增益的控制参数进行更新包括:The method according to claim 6, characterized in that, according to the change of the audio index between the audio digital signal of the current frame and the audio digital signal targeted when the gain control parameter was last updated, and the change limit of the audio index To determine whether it is necessary to update the control parameters of the gain used when performing gain amplification processing on the audio signal of the current frame, including:若所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化未超过所述音频指标变化界限,则不需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新;If the change of the audio index between the current frame of audio digital signal and the audio digital signal targeted for the last gain control parameter update does not exceed the audio index change limit, there is no need to perform the current frame of audio digital signal Update the control parameters of the gain used during the gain amplification process;或者,若所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化超过所述音频指标变化界限,则需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新。Or, if the change of the audio index between the current frame of audio digital signal and the audio digital signal targeted for the last gain control parameter update exceeds the limit of the change of the audio index, the audio digital signal of the current frame needs to be performed During the gain amplification process, the control parameters of the used gain are updated.
- 根据权利要求1至7中任一项所述的方法,其特征在于,需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新,则所述方法还包括:确定对所述增益进行更新时使用的控制参数,以及根据设定的调整规则更新所述控制参数。The method according to any one of claims 1 to 7, characterized in that it is necessary to update the control parameters of the gain used when performing gain amplification processing on the current frame of audio digital signals, then the method further comprises: determining Control parameters used when updating the gain, and updating the control parameters according to the set adjustment rule.
- 根据权利要求8所述的方法,其特征在于,所述确定对所述增益进行更新时使用的控制参数包括:The method according to claim 8, wherein the control parameters used when determining the update of the gain include:若所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的环境噪声估计强度变化超过所述环境噪声估计强度变化界限,则设置对所述增益进行更新时使用的控制参数为噪声阈值;If the environmental noise estimated intensity change between the current frame of audio digital signal and the audio digital signal targeted for the last gain control parameter update exceeds the environmental noise estimated intensity change limit, the update of the gain is set The control parameter used at the time is the noise threshold;若所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的信号包络的峰峰值变化超过所述信号包络的峰峰值变化界限,或者,所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的信号包络的起伏频率变化超过所述信号包络的起伏频率变化界限,则设置对所述增益进行更新时使用的控制参数为增大所述增益时的快慢参数或减小所述增益时的快慢参数中的至少一种。If the peak-to-peak change of the signal envelope between the current frame of audio digital signal and the audio digital signal targeted at the last gain control parameter update exceeds the peak-to-peak change limit of the signal envelope, or When the fluctuation frequency of the signal envelope between the audio digital signal of the current frame and the audio digital signal targeted for the last gain control parameter update exceeds the fluctuation frequency change limit of the signal envelope, the gain is set to The control parameter used when updating is at least one of a speed parameter when increasing the gain or a speed parameter when decreasing the gain.
- 根据权利要求9所述的方法,其特征在于,若所述控制参数为所述噪声阈值;对应地,根据设定的调整规则对所述控制参数进行更新,包括:根据正比于当前一帧音频数字信号的环境噪声估计强度更新所述噪声阈值。The method according to claim 9, wherein if the control parameter is the noise threshold; correspondingly, updating the control parameter according to the set adjustment rule includes: according to the current frame of audio The estimated noise intensity of the digital signal updates the noise threshold.
- 根据权利要求9所述的方法,其特征在于,若所述控制参数为所述增大所述增益时的快慢参数;对应地,根据设定的调整规则对所述控制参数进行更新,包括:根据等比于当前一帧音频数字信号的信号包络的峰峰值以及信号包络的起伏频率更新所述增大所述增益时的快慢参数。The method according to claim 9, wherein if the control parameter is the speed parameter when increasing the gain; correspondingly, updating the control parameter according to the set adjustment rule includes: The speed parameter when increasing the gain is updated according to the peak-to-peak value of the signal envelope equal to the current frame of the audio digital signal and the fluctuation frequency of the signal envelope.
- 根据权利要求9所述的方法,其特征在于,若所述控制参数为所述减小所述增益时的快慢参数;对应地,根据设定的调整规则对所述控制参数进行更新,包括:根据等比于当前一帧音频数字信号的信号包络的峰峰值以及信号 包络的起伏频率更新所述减小所述增益时的快慢参数。The method according to claim 9, wherein if the control parameter is the speed parameter when reducing the gain; correspondingly, updating the control parameter according to the set adjustment rule includes: The speed parameter when reducing the gain is updated according to the peak-to-peak value of the signal envelope equal to the current frame of the audio digital signal and the fluctuation frequency of the signal envelope.
- 一种信号采集方法,其特征在于,包括:A signal acquisition method, characterized in that it includes:对当前一帧音频模拟信号进行模数转化生成对应的音频数字信号;Perform analog-to-digital conversion on the current frame of audio analog signals to generate corresponding audio digital signals;对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化;Analyze the current frame of audio digital signal to extract its corresponding audio index, and determine the change in audio index between the current frame of audio digital signal and the audio digital signal targeted at the last gain control parameter update;根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新;According to the change of the audio index between the current digital audio signal of the current frame and the audio digital signal targeted when the gain control parameter was updated last time, determine whether the gain to be used when the current digital audio signal of the current frame is subjected to gain amplification processing To update the control parameters;根据所述增益对所述当前一帧音频数字信号进行放大处理。Amplify the audio signal of the current frame according to the gain.
- 一种增益调整装置,其特征在于,包括:A gain adjustment device is characterized by comprising:提取单元,用于对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化;The extraction unit is used to analyze the current frame of audio digital signal to extract its corresponding audio index and determine the relationship between the current frame of audio digital signal and the audio digital signal targeted for the last gain control parameter update Audio index changes;分析单元,用于根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新。The analysis unit is used for determining whether it is necessary to perform gain amplification processing on the current frame of audio digital signal according to the change of the audio index between the current frame of audio digital signal and the audio digital signal targeted when the gain control parameter was updated last time The control parameters of the gain used are updated.
- 一种信号采集系统,其特征在于,包括:A signal acquisition system, characterized in that it includes:模数转换模块,用于对当前一帧音频模拟信号进行模数转化生成对应的音频数字信号;Analog-to-digital conversion module, used for analog-to-digital conversion of the current frame of audio analog signals to generate corresponding audio digital signals;增益调整装置,其包括提取单元以及分析单元,所述提取单元用于对当前一帧音频数字信号进行分析以提取其对应的音频指标,并确定所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化;所述分析单元用于根据所述当前一帧音频数字信号与上次进行增益的控制参数更新时针对的音频数字信号之间的音频指标变化,确定是否需要在当前一帧音频数字信号进行增益放大处理时对使用的增益的控制参数进行更新;Gain adjustment device, including an extraction unit and an analysis unit, the extraction unit is used to analyze the current frame of audio digital signal to extract its corresponding audio index, and determine the current frame of audio digital signal and the last gain The audio index changes between the audio digital signals targeted when the control parameters are updated; the analysis unit is used to determine the relationship between the audio digital signals of the current frame and the audio digital signals targeted during the last gain control parameter update The audio index changes to determine whether it is necessary to update the gain control parameters used when the current frame of audio digital signal is gain amplified;增益放大模块,用于根据所述增益对所述当前一帧音频数字信号进行放大处理。A gain amplification module is used to amplify the current frame of audio digital signal according to the gain.
- 一种电子设备,其特征在于,包括权利要求15所述的信号采集系统。An electronic device, characterized by comprising the signal acquisition system of claim 15.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/118488 WO2020107385A1 (en) | 2018-11-30 | 2018-11-30 | Gain processing method and device implementing same, electronic apparatus, signal acquisition method and system implementing same |
CN201880002536.3A CN109716432B (en) | 2018-11-30 | 2018-11-30 | Gain processing method and device, electronic equipment, signal acquisition method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/118488 WO2020107385A1 (en) | 2018-11-30 | 2018-11-30 | Gain processing method and device implementing same, electronic apparatus, signal acquisition method and system implementing same |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020107385A1 true WO2020107385A1 (en) | 2020-06-04 |
Family
ID=66260039
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/118488 WO2020107385A1 (en) | 2018-11-30 | 2018-11-30 | Gain processing method and device implementing same, electronic apparatus, signal acquisition method and system implementing same |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109716432B (en) |
WO (1) | WO2020107385A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111243631B (en) * | 2020-01-14 | 2021-12-14 | 北京声智科技有限公司 | Automatic gain control method and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110110526A1 (en) * | 2008-06-02 | 2011-05-12 | Yamaha Corporation | Acoustic echo canceller and acoustic echo cancellation method |
CN102436821A (en) * | 2011-12-02 | 2012-05-02 | 海能达通信股份有限公司 | Method and equipment for self-adaptive adjustment of sound effect |
CN105101011A (en) * | 2015-05-29 | 2015-11-25 | 福州瑞芯微电子有限公司 | Audio output control method and device |
CN106448712A (en) * | 2016-10-20 | 2017-02-22 | 广州视源电子科技股份有限公司 | Automatic gain control method and device for audio signal |
CN108231088A (en) * | 2018-01-08 | 2018-06-29 | 北京小鱼在家科技有限公司 | A kind of rapid automatic gain control method and device applied to voice digital signal |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1117474A (en) * | 1997-06-26 | 1999-01-22 | Matsushita Electric Ind Co Ltd | Gain varying device |
US6704704B1 (en) * | 2001-03-06 | 2004-03-09 | Microsoft Corporation | System and method for tracking and automatically adjusting gain |
US7155385B2 (en) * | 2002-05-16 | 2006-12-26 | Comerica Bank, As Administrative Agent | Automatic gain control for adjusting gain during non-speech portions |
WO2007049222A1 (en) * | 2005-10-26 | 2007-05-03 | Koninklijke Philips Electronics N.V. | Adaptive volume control for a speech reproduction system |
JP4513021B2 (en) * | 2005-12-28 | 2010-07-28 | ソニー株式会社 | Digital amplifier device and mute method for digital amplifier device |
CN100589183C (en) * | 2007-01-26 | 2010-02-10 | 北京中星微电子有限公司 | Digital auto gain control method and device |
CN101853666B (en) * | 2009-03-30 | 2012-04-04 | 华为技术有限公司 | Speech enhancement method and device |
JP6065308B2 (en) * | 2012-09-07 | 2017-01-25 | パナソニックIpマネジメント株式会社 | Volume correction device |
CN103077733A (en) * | 2012-12-28 | 2013-05-01 | 华为终端有限公司 | Audio frequency information recording method and recording device |
CN104078050A (en) * | 2013-03-26 | 2014-10-01 | 杜比实验室特许公司 | Device and method for audio classification and audio processing |
CN104822108A (en) * | 2015-03-13 | 2015-08-05 | 广州市保伦电子有限公司 | Fully digital conference audio mixing apparatus and method |
CN105845151B (en) * | 2016-05-30 | 2019-05-31 | 百度在线网络技术(北京)有限公司 | Audio gain method of adjustment and device applied to speech recognition front-ends |
CN106448690A (en) * | 2016-10-20 | 2017-02-22 | 广州视源电子科技股份有限公司 | Automatic gain control method and device for audio signal |
-
2018
- 2018-11-30 CN CN201880002536.3A patent/CN109716432B/en active Active
- 2018-11-30 WO PCT/CN2018/118488 patent/WO2020107385A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110110526A1 (en) * | 2008-06-02 | 2011-05-12 | Yamaha Corporation | Acoustic echo canceller and acoustic echo cancellation method |
CN102436821A (en) * | 2011-12-02 | 2012-05-02 | 海能达通信股份有限公司 | Method and equipment for self-adaptive adjustment of sound effect |
CN105101011A (en) * | 2015-05-29 | 2015-11-25 | 福州瑞芯微电子有限公司 | Audio output control method and device |
CN106448712A (en) * | 2016-10-20 | 2017-02-22 | 广州视源电子科技股份有限公司 | Automatic gain control method and device for audio signal |
CN108231088A (en) * | 2018-01-08 | 2018-06-29 | 北京小鱼在家科技有限公司 | A kind of rapid automatic gain control method and device applied to voice digital signal |
Also Published As
Publication number | Publication date |
---|---|
CN109716432B (en) | 2023-05-02 |
CN109716432A (en) | 2019-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12057135B2 (en) | Speech noise reduction method and apparatus, computing device, and computer-readable storage medium | |
US10469967B2 (en) | Utilizing digital microphones for low power keyword detection and noise suppression | |
CN110870201B (en) | Audio signal adjusting method, device, storage medium and terminal | |
WO2015090163A1 (en) | Method and device for controlling output volume of audio in playing device | |
WO2016180100A1 (en) | Method and device for improving audio processing performance | |
CN107682752B (en) | Method, device and system for displaying video picture, terminal equipment and storage medium | |
CN106384597B (en) | Audio data processing method and device | |
US11201598B2 (en) | Volume adjusting method and mobile terminal | |
US10461712B1 (en) | Automatic volume leveling | |
WO2021098698A1 (en) | Audio playback method and terminal device | |
CN108492837B (en) | Method, device and storage medium for detecting audio burst white noise | |
WO2019174492A1 (en) | Voice call data detection method, device, storage medium and mobile terminal | |
US11822854B2 (en) | Automatic volume adjustment method and apparatus, medium, and device | |
CN113010139B (en) | Screen projection method and device and electronic equipment | |
CN113963716A (en) | Volume balancing method, device and equipment for talking doorbell and readable storage medium | |
WO2020107385A1 (en) | Gain processing method and device implementing same, electronic apparatus, signal acquisition method and system implementing same | |
CN110022514B (en) | Method, device and system for reducing noise of audio signal and computer storage medium | |
CN112333534B (en) | Noise elimination method and device, intelligent television system and readable storage medium | |
CN113766385B (en) | Earphone noise reduction method and device | |
CN110798580B (en) | Noise removing method and device for remote multi-party voice conference and electronic equipment | |
CN111370017A (en) | Voice enhancement method, device and system | |
CN112786047A (en) | Voice processing method, device, equipment, storage medium and intelligent sound box | |
CN113593619B (en) | Method, apparatus, device and medium for recording audio | |
CN113808605B (en) | Voice enhancement method, device and equipment based on building intercom system | |
CN115835092B (en) | Audio amplification feedback suppression method, system, computer and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18941483 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18941483 Country of ref document: EP Kind code of ref document: A1 |