---------------------------------------------------------------------------
IOError Traceback (most recent call last)
<ipython-input-23-d8f05400579d> in <module>()
8 # pass
9 # box.speaker.queue('/home/bird/Desktop/test48k.wav')
---> 10 box.speaker.queue('/home/bird/2sec_noise_65dbmean.wav')
11 box.speaker.play()
12 time.sleep(2.0)
/local/home/bird/Code/pyoperant/pyoperant/hwio.pyc in queue(self, wav_filename)
93
94 def queue(self,wav_filename):
---> 95 return self.interface._queue_wav(wav_filename)
96
97 def play(self):
/local/home/bird/Code/pyoperant/pyoperant/interfaces/pyaudio_.pyc in _queue_wav(self, wav_file, start)
55 def _queue_wav(self,wav_file,start=False):
56 self._wf = wave.open(wav_file)
---> 57 self._get_stream(start=start)
58
59 def _play_wav(self):
/local/home/bird/Code/pyoperant/pyoperant/interfaces/pyaudio_.pyc in _get_stream(self, start)
51 output_device_index=self.device_index,
52 start=start,
---> 53 stream_callback=_callback)
54
55 def _queue_wav(self,wav_file,start=False):
/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