mirror of
https://github.com/thorsten-gehrig/alexa-remote-control.git
synced 2024-11-22 08:49:02 +01:00
Hard fail in plain script when announce requested
This commit is contained in:
parent
9dea7ac62c
commit
f8c7c2be15
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user