Alors je ne sais pas si c'est ça que tu voulais mais, après +/- 24h j'ai lancé une speak et le premier n'est pas passé. (aucun son n'est parvenu à mes oreilles :p )
Code : Tout sélectionner
...
...
[9/19/2019, 19:17:10] Alexa-API: Lancement /Speak avec paramètres -> device: XXXXXXXXXXX & text: Ceci est un test de message pour la commande Speak
[9/19/2019, 19:17:10] Alexa-Remote: No authentication check needed (time elapsed 126299)
[9/19/2019, 19:17:10] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/behaviors/preview","method":"POST","timeout":10000,"headers":{}}and data={"behaviorId":"PREVIEW","sequenceJson":"{\"@type\":\"com.amazon.alexa.behaviors.model.Sequence\",\"startNode\":{\"@type\":\"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\",\"operationPayload\":{\"deviceType\":\"XXXXXXXXXXX\",\"deviceSerialNumber\":\"XXXXXXXXXXX\",\"locale\":\"fr-FR\",\"customerId\":\"XXXXXXXXXXXX\",\"textToSpeak\":\"Ceci est un test de message pour la commande Speak\"},\"type\":\"Alexa.Speak\"}}","status":"ENABLED"}
[9/19/2019, 19:17:10] >>> DEBUG res.statusCode: 401
[9/19/2019, 19:17:10] >>> DEBUG res.statusMessage: Unauthorized
[9/19/2019, 19:17:11] >>> DEBUG res.httpVersion: 1.1
[9/19/2019, 19:17:11] >>> DEBUG res.headers: {"server":"Server","date":"Thu, 19 Sep 2019 17:17:10 GMT","content-length":"0","connection":"close","cache-control":"no-transform, no-store","x-amz-rid":"XXXXXXXXXXXXX","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent"}
[9/19/2019, 19:17:11] >>> DEBUG body:
[9/19/2019, 19:17:11] Alexa-Remote: Response(3): Unauthorized
[9/19/2019, 19:17:11] Alexa-API: ******************************************************************
[9/19/2019, 19:17:11] Alexa-API: *****************************ERROR********************************
[9/19/2019, 19:17:11] Alexa-API: ******************************************************************
[9/19/2019, 19:17:11] Unauthorized détecté dans la détection d'erreur et donc relance de l'initialisation
[9/19/2019, 19:17:11] Alexa-API: ******************** Lancement Serveur ***********************
[9/19/2019, 19:17:11] Alexa-Remote: cookie was provided
[9/19/2019, 19:17:11] Alexa-Remote: Sending Request with {"host":"alexa.amazon.fr","path":"/api/bootstrap?version=0","method":"GET","timeout":10000,"headers":{}}
[9/19/2019, 19:17:11] >>> DEBUG res.statusCode: 200
[9/19/2019, 19:17:11] >>> DEBUG res.statusMessage: OK
...
...
...
J'ai relancé un speak après qui est bien passé et j'ai ça dans les logs.
...
Code : Tout sélectionner
[9/19/2019, 19:17:15] Alexa-API: New cookie saved to:/var/www/html/plugins/alexaapi/resources/data/alexa-cookie.json
[9/19/2019, 19:17:15] Alexa-API: *******************************************
[9/19/2019, 19:17:15] Alexa-API: *Server is already listening on port 3456 *
[9/19/2019, 19:17:15] Alexa-API: *******************************************
[9/19/2019, 19:17:42] Alexa-API: Lancement /Speak avec paramètres -> device: XXXXXXXXXXXX & text: Ceci est un test de message pour la commande Speak
[9/19/2019, 19:17:42] Alexa-Remote: No authentication check needed (time elapsed 31296)
...
...
(ici J'ai remplacé les id par des xxxx)
EDIT: Ou alors je n'ai pas attendu assez longtemps pour voir si le premier speak passait :/