CN102904538B - Automatic gain control (AGC)-based gain parameter adjustment method of audio analog signal - Google Patents
Automatic gain control (AGC)-based gain parameter adjustment method of audio analog signal Download PDFInfo
- Publication number
- CN102904538B CN102904538B CN201210382796.2A CN201210382796A CN102904538B CN 102904538 B CN102904538 B CN 102904538B CN 201210382796 A CN201210382796 A CN 201210382796A CN 102904538 B CN102904538 B CN 102904538B
- Authority
- CN
- China
- Prior art keywords
- analog signal
- audio
- gain parameter
- agc gain
- digital signals
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Control Of Amplification And Gain Control (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The invention provides an automatic gain control (AGC)-based gain parameter adjustment method of an audio analog signal. The method mainly comprises the steps that the collected audio analog signal is transformed to an audio digital signal by a sound card in advance, and the adjustment of AGC gain parameter is controlled through the calculation and extraction of the key parameter of the audio digital signal, the analysis of the parameter of the audio digital signal and the comparison of the parameter of the audio digital signal in specific conditions and the comparison of the multi-group parameters, so that the possibility of the existence of residual echo and noise is reduced to the maximized degree, and the stability and the comfort output by volume are also ensured.
Description
Technical field
The present invention relates to a kind of audio frequency parameter adjustment field, particularly relate to a kind of AGC gain parameter regulation means of audio analog signals.
Background technology
In audio communication device system, generally all can with automatic growth control (Auto Gain Control; AGC) module, can make the volume of audio frequency control in rationally comfortable scope to reach.And be generally all audio analog signals is converted into digital signal to carry out digital signal AGC again in video conference.And Digital Signal Algorithm process is easy to process and occurs some problems, such as, be easy to cause remaining noise, residual echo to be exaggerated and the distortion factor increases, make the problem that the tonequality of voice communication declines.
In addition, also dealer is had to adopt the mode of simulation AGC and digital AGC combination to control volume, but, when the process of analog signal and Digital Signal Processing mutually independently, algorithm does not generally consider that remaining noise and residual echo are on the impact of gain-adjusted yet, so, the instability of wave volume must be caused, and be difficult to maximize the problem avoiding remaining noise and residual echo to be exaggerated.
Therefore, in order to well solve the drawback of digital signal AGC, be necessary to propose a kind of new AGC gain parameter regulation means, stablize comfortable volume control capability to provide, real is problem anxious to be resolved at present.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of AGC gain parameter regulation means of audio analog signals, with the maximized problem avoided the erroneous judgements such as remaining noise and residual echo and amplification, stablize comfortable volume control capability to provide.
For achieving the above object and other relevant objects, the invention provides a kind of AGC gain parameter regulation means of audio analog signals, it is applied in the audio frequency apparatus with analog signal end and digital signal end, wherein, described analog signal end has microphone and sound card, it is characterized in that, described method comprises: 1) utilize described microphone to gather audio analog signals; 2) utilize described sound card that gathered audio analog signals is converted to audio digital signals; 3) high-pass filtering process is carried out to audio digital signals, to obtain the audio digital signals removing low-frequency disturbance; 4) the average decibel value of input of the audio digital signals removing low-frequency disturbance, saturation condition value and quiet detected value is calculated; 5) judge whether described saturation condition value is 1, if not, then proceeds to step 6), if so, then turn analog signal AGC gain parameter down, then, return step 1); 6) judge whether the audio digital signals of described removal low-frequency disturbance has residual echo, if so, then proceeds to step 7), if not, then export the audio digital signals removing low-frequency disturbance and echo, and proceed to step 8); 7) whether the quiet detected value that judgement calculates is 1, is if so, then left intact to analog signal AGC gain parameter, keeps reset condition, then, step 1 is returned), if not, then turn analog signal AGC gain parameter down, then, return step 1); 8) noise Processing for removing is carried out to the audio digital signals of described removal low-frequency disturbance and echo, to obtain the audio digital signals removing low-frequency disturbance, echo and noise; 9) audio digital signals of described removal low-frequency disturbance, echo and the noise decibel value that is averaged is calculated, to obtain the average decibel value after removing noise; 10) whether the quiet detected value that judgement calculates is 1, if so, then proceeds to step 11), if not, then proceed to step 12); 11) whether the average decibel value after judging described removal noise is greater than the first maximum experience threshold values, if so, then turns analog signal AGC gain parameter down, then, step 1 is returned), if not, whether the average decibel value after then judging described removal noise is further less than the first minimum experience threshold values, if so, then tunes up analog signal AGC gain parameter, then, return step 1), if not, then analog signal gain is left intact, then, step 1 is returned); And 12) judge whether the average decibel value of described input is greater than the second maximum experience threshold values, if so, then turns analog signal AGC gain parameter down, then, step 1 is returned), if not, then judge whether the average decibel value of described input is less than the second minimum experience threshold values, if so, then tunes up analog signal AGC gain parameter further, then, return step 1), if not, then analog signal AGC gain parameter is left intact, then, step 1 is returned).
In the AGC gain parameter regulation means of audio analog signals of the present invention, tuning up or turning down of above-mentioned analog signal AGC gain parameter is that analog signal gain interface by controlling described sound card realizes.
In an embodiment of the AGC gain parameter regulation means of audio analog signals of the present invention, this first maximum experience threshold values is-10dB, and this first minimum experience threshold values is-20dB; This second maximum experience threshold values is-20dB, and this second minimum experience threshold values is-35dB.
As mentioned above, the AGC gain parameter regulation means of audio analog signals of the present invention mainly utilizes sound card that the audio analog signals of collection is converted to audio digital signals in advance, and the calculating passed through the key parameter of audio digital signals and extraction, and the comparison by analyzing the parameter of audio digital signals and under specified conditions, by organizing the adjustment of the signal of the control simulation more accurately AGC gain parameter of parameter more, maximize the possibility reducing residual echo and noise existence, also ensure that volume exports stable and comfortable.
Accompanying drawing explanation
Fig. 1 is the operating process schematic diagram of AGC gain parameter regulation means in single cycle being shown as audio analog signals of the present invention.
Element numbers explanation
S100 ~ S122 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
Refer to Fig. 1, it is the operating process schematic diagram of the AGC gain parameter regulation means showing audio analog signals of the present invention, wherein, the AGC gain parameter regulation means of audio analog signals of the present invention is in the audio frequency apparatus with analog signal end and digital signal end, wherein, described analog signal end has microphone and sound card, and in more detail, this sound card has the analog signal gain interface for the size regulating analog signal AGC gain parameter.Below namely the operating procedure of the AGC gain parameter regulation means of audio analog signals of the present invention is described in detail.
As shown in Figure 1, first, perform step S100, utilize microphone to gather audio analog signals.Then, step S101 is carried out.
In step S101, utilize sound card that gathered audio analog signals is converted to audio digital signals.Then, step S102 is carried out.
In step s 102, high-pass filtering process is carried out to audio digital signals, to obtain the audio digital signals removing low-frequency disturbance.Then, step S103 is carried out.
In step s 103, the average decibel value of input of the audio digital signals removing low-frequency disturbance, saturation condition value and quiet detected value is calculated.Then, step S104 is carried out.
In step S104, judge whether the saturation condition value calculated is 1, if so, then represents in the audio digital signals of this removal low-frequency disturbance to there is saturation condition, and proceeds to step S105, if not, then proceed to step S106.
In step S105, turn analog signal AGC gain parameter down, and terminate this circulation.
In step s 106, judge whether the audio digital signals of described removal low-frequency disturbance has residual echo, if so, then proceeds to step S107, if not, then proceeds to step S110.
In step s 107, judge whether the quiet detected value calculated is 1, and if so, then proceed to step S108, if not, then calculated quiet detected value is 0, and proceeds to step S109.
In step S108, analog signal AGC gain parameter is left intact, keeps reset condition, and terminate this circulation.
In step S109, turn analog signal AGC gain parameter down, and terminate this circulation.
In step s 110, the audio digital signals removing low-frequency disturbance and echo is exported.Then, step S111 is carried out.
In step S111, noise Processing for removing is carried out to the audio digital signals of described removal low-frequency disturbance and echo, to obtain the audio digital signals removing low-frequency disturbance, echo and noise.Then, step S112 is carried out.
In step S112, the audio digital signals of described removal low-frequency disturbance, echo and the noise decibel value that is averaged is calculated, to obtain the average decibel value after removing noise.Then, step S113 is carried out.
In step S113, judge whether the quiet detected value calculated is 1, and if so, then proceed to step S114, if not, then calculated quiet detected value is 0, and proceeds to step S119.
In step S114, judge whether the average decibel value after described removal noise is greater than the first maximum experience threshold values, if so, then proceeds to step S115, if not, then proceeds to step S116.In the present embodiment, this first maximum experience threshold values is-10dB.
In step sl 15, turn analog signal AGC gain parameter down, and terminate this circulation.
In step S116, judge whether the average decibel value after described removal noise is less than the first minimum experience threshold values, if so, then proceeds to step S117, if not, then proceeds to step S118.In the present embodiment, this first minimum experience threshold values is-20dB.
In step S117, tune up analog signal AGC gain parameter, and terminate this circulation.
In step S118, analog signal gain is left intact, and terminates this circulation.
In step S119, judge whether the average decibel value of described input is greater than the second maximum experience threshold values, if so, then proceeds to step S120, if not, then proceeds to step S121.In the present embodiment, this second maximum experience threshold values is-20dB.
In the step s 120, turn analog signal AGC gain parameter down, and terminate this circulation.
In step S121, judge whether the average decibel value after described removal noise is less than the second minimum experience threshold values, if so, then proceeds to step S122, if not, then proceeds to step S118.In the present embodiment, this second minimum experience threshold values is-35dB.
In step S122, tune up analog signal AGC gain parameter, and terminate this circulation.
In step S118, analog signal gain is left intact, and terminates this circulation.
What need to be explained is herein, above-described embodiment only lists the operating procedure of AGC gain parameter regulation means in single cycle of application audio analog signals of the present invention, in actual application, as long as microphone and sound card are in running, in each circulation, once perform step S105, S108, S109, S115, S117, S118, S120, or any one step in S122, namely step S100 is returned, start to perform new circulation, by this continuous circulation, to maximize the possibility reducing residual echo and noise existence, also ensure that volume exports stable and comfortable.
In sum, the AGC gain parameter regulation means of audio analog signals of the present invention mainly utilizes sound card that the audio analog signals of collection is converted to audio digital signals in advance, and the calculating passed through the key parameter of audio digital signals and extraction, and the comparison by analyzing the parameter of audio digital signals and under specified conditions, by organizing the adjustment of the signal of the control simulation more accurately AGC gain parameter of parameter more, to determine to tune up, turn down or will not regulate, thus reduce the possibility of residual echo and noise existence substantially, also ensure that volume exports stable and comfortable.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.
Claims (4)
1. an AGC gain parameter regulation means for audio analog signals, it is applied in the audio frequency apparatus with analog signal end and digital signal end, and wherein, described analog signal end has microphone and sound card, it is characterized in that, described method comprises:
1) described microphone is utilized to gather audio analog signals;
2) utilize described sound card that gathered audio analog signals is converted to audio digital signals;
3) high-pass filtering process is carried out to audio digital signals, to obtain the audio digital signals removing low-frequency disturbance;
4) the average decibel value of input of the audio digital signals removing low-frequency disturbance, saturation condition value and quiet detected value is calculated;
5) judge whether described saturation condition value is 1, if not, then proceeds to step 6), if so, then turn analog signal AGC gain parameter down, then, return step 1);
6) judge whether the audio digital signals of described removal low-frequency disturbance has residual echo, if so, then proceeds to step 7), if not, then export the audio digital signals removing low-frequency disturbance and echo, and proceed to step 8);
7) whether the quiet detected value that judgement calculates is 1, is if so, then left intact to analog signal AGC gain parameter, keeps reset condition, then, step 1 is returned), if not, then turn analog signal AGC gain parameter down, then, return step 1);
8) noise Processing for removing is carried out to the audio digital signals of described removal low-frequency disturbance and echo, to obtain the audio digital signals removing low-frequency disturbance, echo and noise;
9) audio digital signals of described removal low-frequency disturbance, echo and the noise decibel value that is averaged is calculated, to obtain the average decibel value after removing noise;
10) whether the quiet detected value that judgement calculates is 1, if so, then proceeds to step 11), if not, then proceed to step 12);
11) whether the average decibel value after judging described removal noise is greater than the first maximum experience threshold values, if so, then turns analog signal AGC gain parameter down, then, step 1 is returned), if not, whether the average decibel value after then judging described removal noise is further less than the first minimum experience threshold values, if so, then tunes up analog signal AGC gain parameter, then, return step 1), if not, then analog signal gain is left intact, then, step 1 is returned); And
12) judge whether the average decibel value of described input is greater than the second maximum experience threshold values, if so, then turns analog signal AGC gain parameter down, then, step 1 is returned), if not, then judge whether the average decibel value of described input is less than the second minimum experience threshold values, if so, then tunes up analog signal AGC gain parameter further, then, return step 1), if not, then analog signal AGC gain parameter is left intact, then, step 1 is returned).
2. the AGC gain parameter regulation means of audio analog signals according to claim 1, is characterized in that, tuning up or turning down of described analog signal AGC gain parameter is that analog signal gain interface by controlling described sound card realizes.
3. the AGC gain parameter regulation means of audio analog signals according to claim 1, is characterized in that, described first maximum experience threshold values is-10dB, and described first minimum experience threshold values is-20dB.
4. the AGC gain parameter regulation means of audio analog signals according to claim 1, is characterized in that, described second maximum experience threshold values is-20dB, and described second minimum experience threshold values is-35dB.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210382796.2A CN102904538B (en) | 2012-10-10 | 2012-10-10 | Automatic gain control (AGC)-based gain parameter adjustment method of audio analog signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210382796.2A CN102904538B (en) | 2012-10-10 | 2012-10-10 | Automatic gain control (AGC)-based gain parameter adjustment method of audio analog signal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102904538A CN102904538A (en) | 2013-01-30 |
CN102904538B true CN102904538B (en) | 2015-02-04 |
Family
ID=47576615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210382796.2A Active CN102904538B (en) | 2012-10-10 | 2012-10-10 | Automatic gain control (AGC)-based gain parameter adjustment method of audio analog signal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102904538B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1266312A (en) * | 1998-07-31 | 2000-09-13 | 摩托罗拉公司 | Method and apparatus for provding speaking telephone operation in portable communication equipment |
CN1331883A (en) * | 1998-12-23 | 2002-01-16 | 艾利森电话股份有限公司 | Methods and appts. for adaptive signal gain control in communications systems |
CN1416639A (en) * | 2000-01-27 | 2003-05-07 | 高通股份有限公司 | Improved system and method for implementation of echo canceller |
CN101222555A (en) * | 2008-01-25 | 2008-07-16 | 上海华平信息技术股份有限公司 | System and method for improving audio speech quality |
-
2012
- 2012-10-10 CN CN201210382796.2A patent/CN102904538B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1266312A (en) * | 1998-07-31 | 2000-09-13 | 摩托罗拉公司 | Method and apparatus for provding speaking telephone operation in portable communication equipment |
CN1331883A (en) * | 1998-12-23 | 2002-01-16 | 艾利森电话股份有限公司 | Methods and appts. for adaptive signal gain control in communications systems |
CN1416639A (en) * | 2000-01-27 | 2003-05-07 | 高通股份有限公司 | Improved system and method for implementation of echo canceller |
CN101222555A (en) * | 2008-01-25 | 2008-07-16 | 上海华平信息技术股份有限公司 | System and method for improving audio speech quality |
Also Published As
Publication number | Publication date |
---|---|
CN102904538A (en) | 2013-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101223830B1 (en) | Hearing aid and a method of detecting and attenuating transients | |
CN105979415B (en) | A kind of noise-reduction method, device and the noise cancelling headphone of the gain of automatic adjusument noise reduction | |
DK1919257T3 (en) | Niveauafhængig støjreduktion | |
US9985597B2 (en) | Digital compressor for compressing an audio signal | |
CN103473005A (en) | Method and device for performing sound effect control on played audio frequency | |
EP2820863B1 (en) | Method of operating a hearing aid and a hearing aid | |
CN104869503A (en) | Equal loudness curve-based dynamic low-frequency enhancement method and system | |
EP3100353B1 (en) | An audio compression system for compressing an audio signal | |
EP2795924A1 (en) | Method of operating a hearing aid and a hearing aid | |
CN104579212B (en) | Method and device for adjusting audio gains | |
WO2016174603A1 (en) | Process and architecture for remotely adjusting a hearing aid | |
CN103078599B (en) | A kind of playing audio/video and method for controlling volume | |
CN112055279A (en) | Earphone noise reduction method and device, earphone and medium | |
EP2232890A2 (en) | Method for determining a maximum gain in a hearing device as well as a hearing device | |
CN113329305A (en) | Control system of stage intelligence stereo set | |
CN102904538B (en) | Automatic gain control (AGC)-based gain parameter adjustment method of audio analog signal | |
TWI459381B (en) | Speech enhancement method | |
JP5672437B2 (en) | Noise suppression device, noise suppression method and program | |
CN109088611A (en) | A kind of auto gain control method and device of acoustic communication system | |
CN114095835B (en) | Earphone through mode control method and device, earphone equipment and storage medium | |
CN105307012B (en) | A kind of television volume regulating method and device | |
CN105471452A (en) | Transmitter automatic gain control method and transmitter automatic gain control system | |
CN106328159B (en) | Audio stream processing method and device | |
CN107210766B (en) | Audio signal processing apparatus | |
CN102088543B (en) | Peaking method and device based on multi-band-pass filtering |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |