Measure speaker volume by recording playing sound with microphone

给你一囗甜甜゛ 提交于 2019-12-01 07:28:44

问题


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?


Update: Found a good related question.


回答1:


Take this:

http://windowsmedianet.sourceforge.net/

and use waveIn managed wrapper.

http://msdn.microsoft.com/en-us/library/ms712636(VS.85).aspx

Of course, you'll need some calibration there...



来源:https://stackoverflow.com/questions/3955253/measure-speaker-volume-by-recording-playing-sound-with-microphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!