Silverlight Mac 麦克风音量
我有一个 SL4 应用程序,它(除其他外)可以从用户的麦克风捕获音频并播放它。它在 PC 上运行得相当好,但我在让它在我们的测试 Macintosh 上正常运行时遇到了很多麻烦。一方面,它似乎忽略了 AudioCaptureDevice.AudioFrameSize:我将其设置为 20 毫秒,这意味着以每秒 16000 个样本的速度,它应该每秒返回 640 字节 50 次。相反,我的 AudioSink.OnSamples() 始终使用 1024 字节数组调用 32 次/秒。奇怪且烦人,但我可以纠正这一点。
更大的问题是我捕获的音频非常非常安静。当我在 PC 上捕获音频并点击作为音频源的网络摄像头时,我会获得 +/- 10,000 范围内的样本。然而,当我在测试 Macintosh 上捕获音频并点击网络摄像头时,我得到的样本在 +/- 100 范围内。如果我在 Mac 的网络摄像头麦克风上录制任何内容然后回放,我实际上根本听不到任何声音。 (我使用的是 MS Lifecam HD-5000,如果这有什么区别的话。)
我知道网络摄像头的麦克风正在工作,因为它与 Skype 配合得很好。
对于解决此问题有什么建议吗?还有其他人遇到类似的问题吗?
I've got an SL4 application that (among other things) captures audio from a user's microphone and plays it back. It all works reasonably well on a PC, but I'm having a lot of trouble getting it to work correctly on our test Macintosh. For one thing, it seems to ignore the AudioCaptureDevice.AudioFrameSize: I've set it to 20 ms, which means that at 16000 samples per second, it should return 640 bytes 50 times per second. Instead, my AudioSink.OnSamples() is consistently called with a 1024 byte array 32 times/second. Odd, and annoying, but I can correct for that.
The bigger problem is that the audio I'm capturing is very, very quiet. When I'm capturing audio on my PC, and I tap on the webcam that's the source of the audio, I get samples in the +/- 10,000 range. However, when I'm capturing audio on my test Macintosh, and I tap on the webcam, I get samples in the +/- 100 range. If I record anything on the Mac's webcam microphone and then play it back, I effectively can't hear anything at all. (I'm using an MS Lifecam HD-5000, if that makes any difference.)
I know that the webcam's microphone is working, as it works just fine with Skype.
Any suggestions for troubleshooting this? Anybody else run into similar issues?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一般来说,在 Mac 上设置输入音量不太方便:(
我建议切换到 SoundSource 或 MuteMyMic - 两者都允许直接从状态栏调整音量。
In general setting input volume on mac is not quite user friendly :(
I'd suggest switching to SoundSource or MuteMyMic - both allow to adjust volume directly from Status Bar.
事实证明这是一个愚蠢的配置问题,我应该首先检查一下。由于某种原因,OSX 最初将网络摄像头的麦克风设置为“0”(满分 10)。不知道为什么,但当我进入“系统偏好设置”/“声音”/“输入”并调整“输入音量”后,网络摄像头麦克风就开始按照广告宣传的那样工作。
Turned out to be a stupid configuration issue that I should have checked first. For some reason, OSX had initially set the webcam's microphone to "0" out of 10. Not sure why, but as soon as I went to System Preferences / Sound / Input, and adjusted the Input Volume, the webcam microphone started working as advertised.