From f8c7c2be15f3b3946fa8402b850923b79f69e5b9 Mon Sep 17 00:00:00 2001 From: clach04 Date: Tue, 6 Oct 2020 18:07:39 -0700 Subject: [PATCH] Hard fail in plain script when announce requested --- alexa_remote_control_plain.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/alexa_remote_control_plain.sh b/alexa_remote_control_plain.sh index 790c316..9c1aeca 100755 --- a/alexa_remote_control_plain.sh +++ b/alexa_remote_control_plain.sh @@ -322,6 +322,10 @@ case "$COMMAND" in fi ;; speak:*) + if [ $USE_ANNOUNCEMENT_FOR_SPEAK -gt 0 ] ; then + echo "ERROR: USE_ANNOUNCEMENT_FOR_SPEAK not supported in plain shell version. Requires jq" + exit 1 + fi TTS=$(echo ${COMMAND##*:} | sed -r 's/["\\]/ /g') TTS=',\"textToSpeak\":\"'${TTS}'\"' SEQUENCECMD='Alexa.Speak'