mirror of
https://github.com/thorsten-gehrig/alexa-remote-control.git
synced 2024-11-22 08:49:02 +01:00
Merge pull request #43 from adn77/master
reduced the number of replaced characters for TTS and automation
This commit is contained in:
commit
05a7bb8fcf
@ -38,6 +38,7 @@
|
|||||||
# 2019-01-22: v0.11 added repeat command, added environment variable parsing
|
# 2019-01-22: v0.11 added repeat command, added environment variable parsing
|
||||||
# 2019-02-03: v0.11a fixed string escape for automation and speak commands
|
# 2019-02-03: v0.11a fixed string escape for automation and speak commands
|
||||||
# 2019-02-10: v0.12 added "-d ALL" to the plain version, lastalexa now checks for SUCCESS activityStatus
|
# 2019-02-10: v0.12 added "-d ALL" to the plain version, lastalexa now checks for SUCCESS activityStatus
|
||||||
|
# 2019-02-14: v0.12a reduced the number of replaced characters for TTS and automation
|
||||||
#
|
#
|
||||||
###
|
###
|
||||||
#
|
#
|
||||||
@ -333,12 +334,12 @@ case "$COMMAND" in
|
|||||||
;;
|
;;
|
||||||
speak:*)
|
speak:*)
|
||||||
SEQUENCECMD='Alexa.Speak'
|
SEQUENCECMD='Alexa.Speak'
|
||||||
TTS=$(echo ${COMMAND##*:} | sed -r 's/[^-a-zA-Z0-9_,?! ]//g')
|
TTS=$(echo ${COMMAND##*:} | sed -r 's/["\\]/ /g')
|
||||||
TTS=",\\\"textToSpeak\\\":\\\"${TTS}\\\""
|
TTS=",\\\"textToSpeak\\\":\\\"${TTS}\\\""
|
||||||
;;
|
;;
|
||||||
automation:*)
|
automation:*)
|
||||||
SEQUENCECMD='automation'
|
SEQUENCECMD='automation'
|
||||||
UTTERANCE=$(echo ${COMMAND##*:} | sed -r 's/[^-a-zA-Z0-9_,?! ]//g')
|
UTTERANCE=$(echo ${COMMAND##*:} | sed -r 's/["\\]/ /g')
|
||||||
;;
|
;;
|
||||||
weather)
|
weather)
|
||||||
SEQUENCECMD='Alexa.Weather.Play'
|
SEQUENCECMD='Alexa.Weather.Play'
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Amazon Alexa Remote Control (PLAIN shell)
|
# Amazon Alexa Remote Control (PLAIN shell)
|
||||||
# alex(at)loetzimmer.de
|
# alex(at)loetzimmer.de
|
||||||
#
|
#
|
||||||
# 2019-02-10: v0.12 (for updates see http://blog.loetzimmer.de/2017/10/amazon-alexa-hort-auf-die-shell-echo.html)
|
# 2019-02-14: v0.12a (for updates see http://blog.loetzimmer.de/2017/10/amazon-alexa-hort-auf-die-shell-echo.html)
|
||||||
#
|
#
|
||||||
###
|
###
|
||||||
#
|
#
|
||||||
@ -283,7 +283,7 @@ case "$COMMAND" in
|
|||||||
;;
|
;;
|
||||||
speak:*)
|
speak:*)
|
||||||
SEQUENCECMD='Alexa.Speak'
|
SEQUENCECMD='Alexa.Speak'
|
||||||
TTS=$(echo ${COMMAND##*:} | sed -r 's/[^-a-zA-Z0-9_,?! ]//g')
|
TTS=$(echo ${COMMAND##*:} | sed -r 's/["\\]/ /g')
|
||||||
TTS=",\\\"textToSpeak\\\":\\\"${TTS}\\\""
|
TTS=",\\\"textToSpeak\\\":\\\"${TTS}\\\""
|
||||||
;;
|
;;
|
||||||
weather)
|
weather)
|
||||||
|
Loading…
Reference in New Issue
Block a user