Hacker News new | ask | show | jobs
by anon86ksdf09 3753 days ago
anyone get it working on a macbook?

jarvis.py", line 53, in <module> data = recordAudio() File "jarvis2.py", line 19, in recordAudio audio = r.listen(source) File "/Users/user/anaconda/lib/python2.7/site-packages/speech_recognition/__init__.py", line 377, in listen buffer = source.stream.read(source.CHUNK, exception_on_overflow = False) TypeError: read() got an unexpected keyword argument 'exception_on_overflow'

1 comments

go to cache, copy cache

  $ mkdir jarvis; cd jarvis
  $ vi jarvis.py
paste, then cleanup and read closely for badness

  $ chmod +x jarvis.py
  $ brew doctor
  $ brew update
  $ brew install python3
  $ pip  install --upgrade pip
  $ pip3 install --upgrade pip setuptools
  $ pip3 install --upgrade gTTS
  $ pip  install --upgrade gTTS
  $ brew install portaudio
  $ pip3 install pyaudio
  $ pip  install SpeechRecognition
  $ brew install flac
  $ brew install mpg321

  $ ./jarvis.py 
  Hi Mike, what can I do for you?
  Say something!
  You said: how are you
  I am fine
  Say something!
  ^