This is a small python script that uses Google Text To Speech API to identify what you say, and if it is one of three questions ("how are you", "what time is it", "where is") it gives canned responses. This is along the lines of the beginnings of very simple expert system, and seems like a fairly cool project to give someone when they are learning to program. This isn't exactly what I expected from a personal assista…
Jarvis: Personal Assistant in Python
11–17 of 17 posts
Re: Jarvis: Personal Assistant in Python
#12jarvis.py", line 53, in 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'
Re: Jarvis: Personal Assistant in Python
#13Re: Jarvis: Personal Assistant in Python
#14Link is down
Cached version: https://webcache.googleusercontent.com/search?q=cache:fjLltw...
Only process when the double Jarvis exchange has occurred. And then keep on processing, waiting for more leading "Jarvis, "
Putting this onto a RaspberryPi would be cool. Could even train it verbally. "Jarvis, 'let's try something new'"
This is such a cool little simple toy with great potential.
Re: Jarvis: Personal Assistant in Python
#15Re: Jarvis: Personal Assistant in Python
#16anyone get it working on a macbook? jarvis.py", line 53, in 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'
$ 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!
^Re: Jarvis: Personal Assistant in Python
#17Link is down
Here's a link to the general project: http://madlag.github.io/jarvis/ ///edit: hmmm this might be a different project. Yay for namespace collisions... I think this is the actual personal assistant project: https://github.com/ajminich/Jarvis