简体   繁体   English

调整麦克风输入音量

[英]Adjust the microphone input volume

I'm developing an iOS 4 application for iPhone. 我正在为iPhone开发iOS 4应用程序。

I want to use mic on my app, and I'm following this tutorial to get mic input values. 我想在应用程序上使用麦克风,我正在按照本教程获取麦克风输入值。 I'm not using any filter. 我没有使用任何过滤器。

My problem is that I can't use my app propertly when there is a noise (not so much). 我的问题是,当有噪音(不是很多)时,我无法正确使用我的应用程序。

Is there any way to calibrate iPhone's mic? 有什么方法可以校准iPhone的麦克风? On my mac system preferences -> sound -> input; 在我的mac系统上,首选项->声音->输入; there is an utility to do this. 有一个实用程序可以做到这一点。

How can I do that programmatically? 如何以编程方式做到这一点?

The tutorial code contains a decision threshold (of 0.95). 教程代码包含一个决策阈值(0.95)。 Assuming the mic isn't overloaded and clipping, if you change the average peak threshold up, this will be equivalent to turning the input volume down. 假设麦克风没有过载和削波,如果您将平均峰值阈值调高,则相当于调低输入音量。

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

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