title: How to get audio devices and names
body: <p>I am trying to get the audio devices names from using PyQt4 framework in Python.</p>
  
  <p>The code is as follows:</p>
  
  <pre><code>from PyQt4 import QtCore, QtGui, QtMultimedia
  
  temp_list=()
  x=()
  
  for i in range(5):
      temp_list=QtMultimedia.QAudioDeviceInfo.availableDevices(QtMultimedia.QAudio.AudioInput)
      x=QtMultimedia.QAudioDeviceInfo.deviceName
      print temp_list
      print x
  </code></pre>
  
  <p>yet somehow I can't get the device names. Not too sure how to proceed from here.</p>