Get device index from QMediaDevices
-
I can get a list of input audio devices with
QMediaDevices.audioInputs()and then iterating and printingdescription()to get the name, but I can't seem to find how to get the device index. PyAudio has a method to do this, but the device name gets cut off, but this isn't the case in PySide so I'd prefer to use it. I know from several sources that my default microphone index is 1, but if I print the index of the default device usingenumerate()andisDefault(), it says the device is 0.QAudioDevice.id()also doesn't give me anything useful.Any ideas?
-
Hey @DoubleFelix
Which kind of index are you looking for? the identifier fromid()looks correct to me, because it contains the information of the peripheral from my system.Maybe you can share the information you get with
PyAudiothat you are trying to find here?