alexylem / jarvis

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

Jarvis ne fonctionne plus en audio #957

Open jackkkk93350 opened 4 years ago

jackkkk93350 commented 4 years ago

08AAF346-2478-45F6-A084-23987B20F770

bonjour, Jarvis fonctionnait bien jusque là que se soit avec le micro ou en mode clavier. Depuis 3 jours le mode clavier fonctionne toujours bien mais avec le micro les réponses renvoyée par site ne sont plus prise en compte.

jackkkk93350 commented 4 years ago

6DBB67C4-DC27-4276-823D-F7992F223D17 EFFF8BD3-3CFE-4926-A211-FAB65031F3F3

wormch commented 4 years ago

Il faut corriger une ligne dans la détection du STT, a la place de:

perl -lne 'print $1 if m{"name":"([^"]*)"}'

faut mettre:

jq -r '._text'

Example pour wit.ai:

_wit_transcribe () { json=curl -XPOST 'https://api.wit.ai/speech?v=20170307' -s -L -H "Authorization: Bearer $wit_server_access_token" -H "Content-Type: audio/wav" --data-binary "@$audiofile" $verbose && jv_debug "DEBUG: $json"

echo $json | perl -lne 'print $1 if m{"name":"([^"]*)"}' > $forder

echo $json | jq -r '._text' > $forder

}

testsky680 commented 4 years ago

Merci beaucoup ça fonctionne ;)

jackkkk93350 commented 4 years ago

merci de ta réponse je teste et vous tiens au courant

jackkkk93350 commented 4 years ago

Merci tout fonctionne a nouveau