List all audio devices with Python's pyaudio (portaudio binding)

前端 未结 3 1085
天命终不由人
天命终不由人 2021-02-14 22:37

I tried

import pyaudio
p = pyaudio.PyAudio()
for i in range(p.get_device_count()):
    print p.get_device_info_by_index(i)

but I don\'t get th

3条回答
  •  [愿得一人]
    2021-02-14 22:52

    I'm thinking that the problem could be in the underlying PortAudio library. Do you have (or can you write, in C) a simple utility that accesses the PortAudio library and tries to perform this same listing?

    Also, googling for 'portaudio asio' reveals this tidbit from the official PortAudio docs:

    There are cases where PortAudio is limited by the capabilities of the underlying native audio API... the ASIO SDK only allows one device to be open at a time, so PortAudio/ASIO doesn't currently support opening multiple ASIO devices simultaneously.

提交回复
热议问题