如何检测任何应用程序是否使用麦克风
我编写了一个程序,该程序会根据我是否参加会议来改变我的灯光。检测到这一点的最简单方法是检查麦克风是否打开。当前,我检查屏幕上是否出现麦克风图标(OPENCV):
我敢肯定它不是最佳解决方案。 Java有什么方法可以检测到正在使用麦克风的事实?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
多亏了Eskandar Abedini,我能够做到!以下是整个代码:
我还必须使用: https://github.com/java -native-access/jna
Thanks to Eskandar Abedini I was able to do it! Below is the entire code:
And I also had to use: https://github.com/java-native-access/jna
几年前,我正在调查如何通过网络传输音频,并写了简单的丑陋项目。
并检查是否准备好使用麦克风:
也许这有点无用的信息,但我希望它可以是有用的方向!
链接到类:
A few years ago I was investigating how to transmit audio through the network, and I wrote simple ugly project.
And to check if a mic is ready to use I used:
Maybe it's a bit useless info but I hope it can be useful direction!
Link to class: MicrophoneReader.java
您可以检查Windows注册表,检查托盘或其他方式麦克风用法
注意:
如何查看哪些应用在Windows 10中使用您的麦克风
You may check Windows registry, checking tray or other means for microphone usage
Detecting if mic/camera is in use?
Note:
Detecting if mic/camera is in use?
How to see which apps are using your microphone in Windows 10