File size: 241 Bytes
6e9c870
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import pyaudio

audio = pyaudio.PyAudio()

# List all audio devices
for i in range(audio.get_device_count()):
    info = audio.get_device_info_by_index(i)
    print(f"Device Index {i}: {info['name']} - {info['hostApi']}")

audio.terminate()