mirror of
https://github.com/bjoernellens1/cps_loki.git
synced 2024-11-22 23:33:50 +00:00
f17bec16c6
Install additional dependencies for image processing Add ros2_whisper repository
13 lines
259 B
Python
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()
|
|
|