HackerShackOfficial / AI-Smart-Mirror

Smart Mirror with a smart AI 🤖
MIT License
536 stars 217 forks source link

IOError: [Errno -9999] Unanticipated host error #99

Open ahmed-ibrahim-asl opened 5 years ago

ahmed-ibrahim-asl commented 5 years ago

Found face Expression 'r' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2097 Expression 'PaAlsaStreamComponent_FinishConfigure( &self->capture, hwParamsCapture, inParams, self->primeBuffers, realSr, inputLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2731 Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2843 Traceback (most recent call last): File "bot.py", line 254, in bot.start() File "bot.py", line 43, in start recognizer, audio = self.speech.listen_for_audio() File "/home/pi/AI-Smart-Mirror/speech.py", line 33, in listen_for_audio with m as source: File "/home/pi/AI-Smart-Mirror/hhsmartmirror/local/lib/python2.7/site-packages/speech_recognition/init.py", line 141, in enter input=True, # stream is an input stream File "/home/pi/AI-Smart-Mirror/hhsmartmirror/local/lib/python2.7/site-packages/pyaudio.py", line 750, in open stream = Stream(self, *args, kwargs) File "/home/pi/AI-Smart-Mirror/hhsmartmirror/local/lib/python2.7/site-packages/pyaudio.py", line 441, in init self._stream = pa.open(arguments) IOError: [Errno -9999] Unanticipated host error

please Iam really Need Help