cps_loki/pyaudiotest.py
Your Name f17bec16c6 Add device mappings for /dev/dri and /dev/snd
Install additional dependencies for image processing
Add ros2_whisper repository
2024-01-18 13:39:15 +01:00

13 lines
259 B
Python

# pyaudio test bluetooth headset
import pyaudio
p = pyaudio.PyAudio()
for i in range(p.get_device_count()):
if (p.get_device_info_by_host_api_device_index(0, i).get('maxInputChannels')) > 0:
print(p.get_device_info_by_index(i))
p.terminate()