Hard fail in plain script when announce requested

This commit is contained in:
clach04 2020-10-06 18:07:39 -07:00 committed by GitHub
parent 9dea7ac62c
commit f8c7c2be15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'