-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON answer : fixed key instead of hotword? #564
Comments
Ok
I will not blame you for being lazy, I am too :) Nevertheless I implemented a call to the config and it works: the app will be compatible in next release, so now this issue is just to improve jarvis-core/api code, I let you close the issue if you choose not to do it :-) |
Shit you are right, I'm already doing the call anyway... |
:-)
Do you plan to do it soon or in few weeks ? Just to know if I release the Android app tonight with a patch to use the trigger word, or I wait a bit.
|
Let me just check quickly if this will not break the integration with android wear / tasker that is parsing this JSON already... |
@Jean-Bernard-Hallez si tu passes par la on envisage avec @Oliv4945 de changer le retour de Jarvis API de: [{"Jarvis":"Bonjour"}] par [{"answer":"Bonjour"}] J'imagine que ca va impacter ta procédure pour avoir le retour en synthèse vocale sur une montre android wear. Mais ca pourrait aussi la simplifier dans le sens ou la clé sera toujours " |
On va attendre l'avis de Jean-Bernard mais il y a `Fields: jarvis()` donc a
priori il y a le même problème que ce que j'ai rencontré, qui sera résolu
en changeant pour "answer".
Pour l'appli je vais essayer d'intégrer les champs "trigger" ou "answer"
comme ça la bascule se fera en douceur
|
Wait for jarvis-core issue [#564](alexylem/jarvis#564) to be closed
Ok, c'est fait: dans la v0.1.4, il y a une sélection du hotword ou "answer" pour avec une bascule transparente lors de ta mise à jour. |
Ok je te tiens au courant quand j'ai fait la modif suite à la confirmation de @Jean-Bernard-Hallez |
Je ne suis pas devant mon ordinateur ok je modifierai en fonction de ce que tu auras fait..
Envoyé depuis mon appareil Samsung
…-------- Message d'origine --------
De : Alexandre Mély <notifications@github.com>
Date : 27/04/2017 08:18 (GMT+01:00)
À : alexylem/jarvis <jarvis@noreply.github.com>
Cc : Hallez <jbhallez@aol.com>, Mention <mention@noreply.github.com>
Objet : Re: [alexylem/jarvis] JSON anwer : fixed key instead of hotword ?
(#564)
Ok je te tiens au courant quand j'ai fait la modif suite à la confirmation de @Jean-Bernard-Hallez
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/alexylem/jarvis","title":"alexylem/jarvis","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/alexylem/jarvis"}},"updates":{"snippets":[{"icon":"PERSON","message":"@alexylem in #564: Ok je te tiens au courant quand j'ai fait la modif suite à la confirmation de @Jean-Bernard-Hallez "}],"action":{"name":"View Issue","url":"#564 (comment)"}}}
|
@alexylem It works well in Jarvis-ui and Android app, thanks ! 👍 |
@Jean-Bernard-Hallez merci!! |
@alexylem, I just understood an issue with the app: I thought that the generated JSON always have the same key (
Jarvis
) for the answer but after digging into the code I see that the key is the hotword.I think it is not a good practice to have a variable key in a JSON file: only the content should change, not the key. So I propose to set the key to
Jarvis
oranswer
instead.Obviously if you do not agree I will update the app to query the hotword and use it as the key :-).
The text was updated successfully, but these errors were encountered: