alexylem / jarvis

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

Jarvis works with Bing in "Troubleshooting" but not in "Normally" #975

Open florentinv opened 4 years ago

florentinv commented 4 years ago

Bonjour je souhaite utiliser Jarvis avec Snowboy le MagicWord, et Bing pour les commandes. Je suis sur Raspbian, j'utilise la branche beta. Tout fonctionne bien lorsque je lance le mode "Troubleshooting".

Mais lorsque je lance normalement, la détection du MagicWord fonctionne bien, mais il y a une erreur à la reconnaissance de la commande. Il s'agit juste du son "erreur", il n'y a aucun message qui s'affiche.

J'ai essayé avec un autre moteur STT et ça fonctionne. J'en conclus que c'est donc avec Bing qu'il y a un problème. Mais étant donné que le debug fonctionne, je suis perdu je ne vois pas quoi faire.

Est-ce que quelqu'un aurait une solution svp ?

Merci d'avance.

------------ Config ------------
jv_branch            beta 
jv_version            
jv_arch              armv7l 
jv_os_name           raspbian 
jv_os_version        10 
language             fr_FR 
play_hw              false 
rec_hw               false 
speaker              Default 
microphone           Default 
recorder             sox 
trigger_stt          snowboy 
command_stt          bing 
tts_engine           google 
--------------------------------

DEBUG: program_startup hook
DEBUG: start_speaking hook "Bonjour monsieur"
bilbot: Bonjour monsieur
--2020-04-24 16:23:13--  http://translate.google.com/translate_tts?tl=fr&client=tw-ob&ie=UTF-8&q=Bonjour%20monsieur
Résolution de translate.google.com (translate.google.com)… 2a00:1450:4007:811::200e, 216.58.198.206
Connexion à translate.google.com (translate.google.com)|2a00:1450:4007:811::200e|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 5472 (5,3K) [audio/mpeg]
Sauvegarde en : « /dev/shm/bonjour_monsieur.mp3 »

/dev/shm/bonjour_mo 100%[===================>]   5,34K  --.-KB/s    ds 0,003s  

2020-04-24 16:23:13 (1,58 MB/s) — « /dev/shm/bonjour_monsieur.mp3 » sauvegardé [5472/5472]

DEBUG: stop_speaking hook
Use "?" to display possible commands (in keyboard mode)
bilbot: Waiting to hear 'bilbot'
monsieur: (listening...)
DEBUG: models=bilbot
INFO:snowboy:Ticks: [-1, -1, -1, -1]
INFO:snowboy:Keyword 1 detected at time: 2020-04-24 16:23:21
DEBUG: modelid=0
bilbot
DEBUG: entering_cmd hook
DEBUG: start_speaking hook "Que puis-je pour vous ?"
bilbot: Que puis-je pour vous ?
DEBUG: using cache /dev/shm/que_puis-je_pour_vous_.mp3
DEBUG: stop_speaking hook
monsieur: (listening...)
DEBUG: start_listening hook
utils/timeout.sh 10 rec -V1 -q -r 16000 -c 1 -b 16 -e signed-integer --endian little /dev/shm/jarvis-record.wav gain 0 silence 1 0.1 8.1% 1 0.5 8.1% pad 0.5 0.5 trim 0 5
DEBUG: speech duration was 13 (10 = 1 sec)
DEBUG: stop_listening hook
DEBUG: curl post={"RecognitionStatus":"Success","Offset":4500000,"Duration":8800000,"NBest":[{"Confidence":0.8416805863380432,"Lexical":"bonjour","ITN":"bonjour","MaskedITN":"bonjour","Display":"Bonjour."}]}
DEBUG: status=Success
DEBUG /dev/shm/jarvis-order="Bonjour."
"Bonjour."
$> say "Bonjour $username"
DEBUG: start_speaking hook "Bonjour monsieur"
bilbot: Bonjour monsieur
DEBUG: using cache /dev/shm/bonjour_monsieur.mp3
DEBUG: stop_speaking hook
monsieur: (listening...)
DEBUG: start_listening hook
utils/timeout.sh 10 rec -V1 -q -r 16000 -c 1 -b 16 -e signed-integer --endian little /dev/shm/jarvis-record.wav gain 0 silence 1 0.1 8.1% 1 0.5 8.1% pad 0.5 0.5 trim 0 5
DEBUG: speech duration was 10 (10 = 1 sec)
DEBUG: stop_listening hook
DEBUG: curl post={"RecognitionStatus":"Success","Offset":4300000,"Duration":10400000,"NBest":[{"Confidence":0.8974320888519287,"Lexical":"au revoir","ITN":"au revoir","MaskedITN":"au revoir","Display":"Au revoir."}]}
DEBUG: status=Success
DEBUG /dev/shm/jarvis-order="Au revoir."
"Au revoir."
$> say "Au revoir $username"; jv_exit
DEBUG: start_speaking hook "Au revoir monsieur"
bilbot: Au revoir monsieur
--2020-04-24 16:23:49--  http://translate.google.com/translate_tts?tl=fr&client=tw-ob&ie=UTF-8&q=Au%20revoir%20monsieur
Résolution de translate.google.com (translate.google.com)… 2a00:1450:4007:811::200e, 216.58.198.206
Connexion à translate.google.com (translate.google.com)|2a00:1450:4007:811::200e|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 5568 (5,4K) [audio/mpeg]
Sauvegarde en : « /dev/shm/au_revoir_monsieur.mp3 »

/dev/shm/au_revoir_ 100%[===================>]   5,44K  --.-KB/s    ds 0,004s  

2020-04-24 16:23:50 (1,50 MB/s) — « /dev/shm/au_revoir_monsieur.mp3 » sauvegardé [5568/5568]

DEBUG: stop_speaking hook

DEBUG: program_exit hook
ebanDev commented 4 years ago

Bonjour, navré de vous apprendre que le projet est mort... Vous risquez d'avoir du mal à avoir une réponse... Sachez cependant qu'il existe de bonnes alternatives telles que le projet Kalliope... https://kalliope-project.github.io

florentinv commented 4 years ago

Ah quel dommage...

D'accord merci pour cette suggestion, je vais regarder cela.

ebanDev commented 4 years ago

D'accord 😁