TADBot / Audio.py
ryefoxlime's picture
Raspberry pi codes
6e9c870
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()