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() | |
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() | |