mirror of
https://github.com/thorsten-gehrig/alexa-remote-control.git
synced 2026-09-13 13:28:21 +02:00
Merge pull request #104 from clach04/patch-2
Hard fail in plain script when announce requested
This commit is contained in:
@@ -335,6 +335,10 @@ case "$COMMAND" in
|
||||
SEQUENCEVAL=',\"text\":\"'${SEQUENCEVAL}'\"'
|
||||
;;
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user