通过记录播放声音和麦克风测量扬声器的音量 [英] Measure speaker volume by recording playing sound with microphone
问题描述
我想通过播放声音和上同时本地麦克风侦听它来测量系统的扬声器的音量。这是为特定的应用程序。确切录制的声音并不像声音之前录制的麦克风音量区分作为重要的是播放,播放时。
I want to measure a system's speaker volume by playing a sound and listening for it on a local microphone at the same time. This is for a specific application. The exact recorded sound is not as important as differentiating between the microphone volume recorded before the sound is played and while it is playing.
的想法是向用户发出警告,如果扬声器关闭或过低。我该如何录制声音同时播放,并确定音量不同?是否有任何托管库这样做呢?
The idea is to warn the user if speakers are turned off or too low. How can I record a sound while playing it and determine a difference in volume? Are there are any managed libraries to do this?
更新:发现了一个<一个href=\"http://stackoverflow.com/questions/1191613/managed-access-to-microphone-input-and-system-volume\">good相关的问题。
推荐答案
借此:
http://windowsmedianet.sourceforge.net/
和使用waveIn托管包装。
and use waveIn managed wrapper.
http://msdn.microsoft.com/en -us /库/ ms712636(VS.85)的.aspx
当然,你需要一些校准有...
Of course, you'll need some calibration there...
这篇关于通过记录播放声音和麦克风测量扬声器的音量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!