[amazonechocontrol] fix text commands stopping TTS (#9346)

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
J-N-K 2020-12-12 19:21:47 +01:00 committed by GitHub
parent 9ee81eae38
commit 70adea298a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1810,6 +1810,9 @@ public class Connection {
if (operationPayload.has("textToSpeak")) {
executionNodeObject.text = operationPayload.get("textToSpeak").getAsString();
return true;
} else if (operationPayload.has("text")) {
executionNodeObject.text = operationPayload.get("text").getAsString();
return true;
} else if (operationPayload.has("content")) {
JsonArray content = operationPayload.getAsJsonArray("content");
if (content != null && content.size() > 0) {