简体   繁体   English

外部麦克风的自动增益控制(AGC)

[英]Automatic Gain Control(AGC) for external mic

I have an audio recording app on android market which records using PCM-WAV format. 我在Android市场上有一个录音应用程序,它使用PCM-WAV格式进行录音。 My app also offers custom gain control ([-20dB, +20dB]) , so I alter the original audio data with user selected gain value. 我的应用程序还提供了custom gain control ([-20dB, +20dB]) ,因此我用用户选择的增益值更改了原始音频数据。

It works pretty well when using device built-in mic, but I have a user which uses some external mic plugged into his device, and the output is too loud and full of distortions (because of the loudness of his ext mic). 使用内置麦克风时,它工作得很好,但是我有一个用户external mic plugged into his device, and the output is too loud and full of distortions一些external mic plugged into his device, and the output is too loud and full of distortions (由于external mic plugged into his device, and the output is too loud and full of distortions的响度大)。 Even when he set the gain to -20dB, the output is loud and contains distortions. 即使将增益设置为-20dB,输出仍会很大且包含失真。

I thought I should add AGC control into the app for cases as this. 我认为我应该在这种情况下将AGC控件添加到应用程序中。

Now my question: This AGC only applies when using DEVICE BUILT-IN mic? Or it applies also when using an ext mic plugged into the handheld? 现在我的问题是:此AGC仅在使用DEVICE BUILT-IN mic? Or it applies also when using an ext mic plugged into the handheld?时适用DEVICE BUILT-IN mic? Or it applies also when using an ext mic plugged into the handheld? DEVICE BUILT-IN mic? Or it applies also when using an ext mic plugged into the handheld?

It's quite likely that the real problem is that his microphone is overdriving the input jack - if that is the case, software can't fix the problem as what the A/D converter sees is already hopelessly distorted. 真正的问题很可能是他的麦克风过度驱动了输入插孔-如果是这种情况,软件将无法解决问题,因为A / D转换器所看到的已经失真。

Your client may need to add an attenuator (resistive voltage divider) to the input signal. 您的客户可能需要在输入信号上添加一个衰减器(电阻分压器)。

Also, if the input signal is asymmetric it may be necessary to couple through a series capacitor to block any DC component. 同样,如果输入信号不对称,则可能有必要通过串联电容器耦合以阻止任何直流分量。

Doing a recording with no gain, and examining the resulting waveform in an audio editor like audacity would probably be informative. 进行无增益记录,然后在音频编辑器中检查诸如audacity之类的结果波形可能会很有帮助。

(Normally I would not post something this speculative as an answer, but was specificaly asked to convert it to one from its original offering as a comment) (通常,我不会发布这种投机性内容作为答案,但特别是要求将其从原始提供的内容转换为评论内容)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM