How do you install mpg321? Because I keep getting: ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM _lfe ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM 71 ALSA lib setup.c:547:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_dmix." Started out, J.A.R.V.I.S. any insights are appreciated!īTW: It is tts.save that generates the error. : HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, ' certificate verify failed (_ssl.c:547)'),)) Raise ConnectionError(e, request=request) if I interpret the error correctly.įile "C:\Python33\lib\site-packages\requests\adapters.py", line 504, in send
#JARVIS PROGRAM COMPUTER CODE#
When I try to run your example code (short version), I get a string of errors, the end of which oddly seems tied to a URL related to ''. using python 3.3 and seems to need Visual C++ 10.0. Having trouble getting PyAudio and PySpeech installed. Installed the gTTS and SpeechRecognition. I have written several basic programs to control the microscope. I generally hack my way through what I need to get the job done. I intend to build an interface to run some scientific equipment. Any IDEA?ĪLSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slaveĪLSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slaveĪLSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM ĪLSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM _lfeĪLSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM Ĭannot lock down 82274202 byte memory area (Cannot allocate memory)įile "/usr/local/lib/python3.5/dist-packages/speech_recognition/_init_.py", line 525, in listenĪssert source.stream is not None, "Audio source must be entered before listening, see documentation for ``AudioSource`` are you using ``source`` outside of a ``with`` statement?"ĪssertionError: Audio source must be entered before listening, see documentation for ``AudioSource`` are you using ``source`` outside of a ``with`` statement?įrank, I love the quality and execution of this program. Robotics, computer vision and awesome stuff.Speak( "Hi Frank, what can I do for you?") Os.system( "chromium-browser " + location + "/&")
Speak( "Hold on Frank, I will show you where " + location + " is.") Print( "Could not request results from Google Speech Recognition service ".format(e)) Print( "Google Speech Recognition could not understand audio") # To use another API key: `r.recognize_google(audio, key="GOOGLE_SPEECH_RECOGNITION_API_KEY")` # Speech recognition using Google Speech Recognition
The program below will answer spoken questions. Tts = gTTS(text= 'Hello World', lang= 'en') We decided to go with the Google Text To Speech API, gTTS. Espeak and pyttsx work out of the box but sound very robotic. Various APIs and programs are available for text to speech applications. We make use of the Google Speech API because of it’s great quality. Speech recognition can by done using the Python SpeechRecognition module. This is what you’ll create (watch the whole video, demo at the end):