Good morning to all,
We are developing an end-of-grade project in which we will integrate jasper with RPI3, to get a personal assistant for people who are blind or partially sighted. Unfortunately I am encountering numerous problems, which I detail below:
Our goal is to make jasper work in Spanish, for this we need as stt engine the google speech api.
We have configured the profile.yml as indicated in the official documentation.
I have followed all the project creation steps and their corresponding credentials following the steps in this documentation.
Then we have activated the API in the Google Developer Console.
After checking that everything was configured correctly we launched the jasper.py obtaining the following problems:
************************************************** *****
* JASPER - THE TALKING COMPUTER *
* (C) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
************************************************** *****
ALSA lib pcm.c: 2239: (snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c: 2239: (snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c: 2239: (snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c: 2239: (snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c: 2239: (snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c: 2239: (snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c: 2239: (snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c: 2239: (snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c: 2239: (snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
CRITICAL: client.stt: Request failed with http status 403
WARNING: client.stt: Status 403 is probably caused by an invalid Google API key.
^ CTraceback (most recent call last):
File "jasper.py", line 151, in <module>
App.run ()
File "jasper.py", line 121, in run
Conversation.handleForever ()
File "/home/pi/jasper-client/client/conversation.py", line 31, in handleForever
Threshold, transcribed = self.mic.passiveListen (self.persona)
File "/home/pi/jasper-client/client/mic.py", line 141, in passiveListen
Data = stream.read (CHUNK)
File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 608, in read
Return pa.read_stream (self._stream, num_frames, exception_on_overflow)
KeyboardInterrupt
After several weeks of searching information in various posts and forums I have come to the conclusion that the script sst.py that was using jasper is outdated since it uses the old google API for voice recognition that is deprecated. Is there any way to get a key from this API ??? I have also been informed that there is a default key for testing purposes. Anyone know what this key is ???
On the other hand, seeing that no one sheds light on this topic...I started to research about the google cloud API and found a fairly clear post on the use of it, is this:
I have followed in detail all the steps of the post and the API works perfectly separately.
Clearly it is a script that has nothing to do with the one that uses jasper by default .... so my concern increases, since my knowledge of python are scarce and I do not see how I can integrate the current script with jasper.
I think having a mid-level programming domain in python would not be hard to integrate, any ideas ?? Please any suggestions will be well received as we are in a stalemate and it is really frustrating.
I'm going to post the 3 main scripts to see if we made it work together !! Of course if we get it we will create a github detailing step by step as we did and thus help the jasper community.
Here are the scripts:
If someone were kind enough to dedicate a little of your time we will always be grateful.
Cordial greetings,