---------------------------------------------------------------------------
IOError Traceback (most recent call last)
<ipython-input-7-27c37e7f7ded> in <module>()
25 output=True,
26 output_device_index=device_index,
---> 27 stream_callback=callback)
28
29 stream.start_stream()
/usr/local/anaconda/lib/python2.7/site-packages/pyaudio.pyc in open(self, *args, **kwargs)
745 """
746
--> 747 stream = Stream(self, *args, **kwargs)
748 self._streams.add(stream)
749 return stream
/usr/local/anaconda/lib/python2.7/site-packages/pyaudio.pyc in __init__(self, PA_manager, rate, channels, format, input, output, input_device_index, output_device_index, frames_per_buffer, start, input_host_api_specific_stream_info, output_host_api_specific_stream_info, stream_callback)
440
441 # calling pa.open returns a stream object
--> 442 self._stream = pa.open(**arguments)
443
444 self._input_latency = self._stream.inputLatency
IOError: [Errno Device unavailable] -9985