6 lines
197 B
Python
6 lines
197 B
Python
|
import pyaudio
|
||
|
audio = pyaudio.PyAudio()
|
||
|
for i in range(audio.get_device_count()):
|
||
|
devInfo = audio.get_device_info_by_index(i)
|
||
|
if devInfo['hostApi'] == 0:
|
||
|
print(devInfo)
|