mic_index.py 271 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 import pyaudio po = pyaudio.PyAudio() for index in range(po.get_device_count()): desc = po.get_device_info_by_index(index) #if desc["name"] == "record": print("DEVICE: %s INDEX: %s RATE: %s " % (desc["name"], index, int(desc["defaultSampleRate"])))