alexylem / jarvis

Jarvis.sh is a simple configurable multi-lang assistant.
http://openjarvis.com
MIT License
810 stars 197 forks source link

Google/Bing-Issue #851

Closed cannette87 closed 6 years ago

cannette87 commented 6 years ago

Description

Bonjour et tout d'abord félicitations pour ce projet très intéressant ! Je ne parviens pas à faire fonctionner l'api de google ou de bing, voici la sortie de jarvis en mode troubleshooting,

Hello & congratulations for this amazing project ! I've some issues with the google or bing api, I think jarvis need some other dependancies but I don't know which one ! Here is the output of jarvis in troubleshooting mode,

Logs


DEBUG: start_speaking hook "Bonjour"
micral: Bonjour
DEBUG: stop_speaking hook
User defined commands:
*AIDE*          *BONJOUR*|*SALUT*   *COMMENT*APPELLE*
*MERCI*         *AU REVOIR*|*BYE*   ANNULE*|TERMINE*
ENCORE*         *TEST*          *VERSION*
*REPETE (*) ET (*)  *CA VA*         >*OUI*
>*NON*|*PAS*        *QUOI*          *SENS*VIE
micral: Waiting to hear 'micral'
pi: (listening...)
DEBUG: models=micral
INFO:snowboy:Ticks: [-1, -1, -1, -1]
INFO:snowboy:Keyword 1 detected at time: 2018-06-07 09:18:58
DEBUG: modelid=0
micral
DEBUG: entering_cmd hook
DEBUG: start_speaking hook "Oui ?"
micral: Oui ?
DEBUG: stop_speaking hook
pi: (listening...)
DEBUG: start_listening hook
utils/timeout.sh 10 python  recorders/snowboy/main.py 15 /dev/shm/jarvis-record.wav 
connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed
Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2048
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2719
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 "recorders/snowboy/main.py", line 60, in <module>
    trigger_ticks=trigger_ticks )
  File "/home/pi/jarvis/recorders/snowboy/wavget.py", line 78, in __init__
    stream_callback=audio_callback)
  File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 750, in open
    stream = Stream(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 441, in __init__
    self._stream = pa.open(**arguments)
IOError: [Errno -9997] Invalid sample rate
ERROR: rec command failed
HELP: retry in troubleshooting mode for more details

Merci d'avance pour votre aide !
Thanks for your help !