thorsten-gehrig / alexa-remote-control

control Amazon Alexa from command Line (set volume, select station from tunein or pandora)
416 stars 102 forks source link

Speak SSML #137

Closed kfishermail closed 3 years ago

kfishermail commented 3 years ago

Can the -e:speak Command use SSML

alexa_remote_control.sh -e speak:"Hallo ich bin Hans und ich bin Alexa" works, but: alexa_remote_control.sh -e speak:"Hallo ich bin Hans und ich bin Alexa" does not

It appears -e speak: will 'speak' SSML, I cant get it to work, can anyone give me an example?

christianTF commented 3 years ago

I can't see the difference of your examples.

kfishermail commented 3 years ago

It looks like my email client or something is stripping out the XML tags of SSML

Try this, I have replaced '<' with '!'

!speak> Mary had a little lamb !break time="3s"/>Whose fleece was white as snow. !/speak>

To clarify, I want the -e speak command to interpret SSML, See the followink link https://docs.aws.amazon.com/polly/latest/dg/supportedtags.html