How to see if there is one microphone active using python?

前端 未结 2 527
你的背包
你的背包 2021-01-24 08:57

I want to see if there is a microphone active using Python.

How can I do it?

Thanks in advance!

2条回答
  •  [愿得一人]
    2021-01-24 09:57

    This is what I wanted:

    import ctypes
    from ctypes import *
    
    winmm= windll.winmm
    print 'waveInGetNumDevs=',winmm.waveInGetNumDevs()
    

提交回复
热议问题