kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.51k stars 206 forks source link

Amazon Polly SSML #197

Closed craigmcgowan closed 4 years ago

craigmcgowan commented 4 years ago

TTS does not work with Amazon Polly when using SSML. The text which is entered, needs to have the tags wrapped around it

kalkih commented 4 years ago

Yes, SSML is not supported and will probably not be. My suggestion would be to setup another amazon_polly component without ssml enabled and use that one for frontend stuff.

tts:
  - platform: amazon_polly
    text_type: ssml
    aws_access_key_id: AWS_ACCESS_KEY_ID
    aws_secret_access_key: AWS_SECRET_ACCESS_KEY
  - platform: amazon_polly_text
    aws_access_key_id: AWS_ACCESS_KEY_ID
    aws_secret_access_key: AWS_SECRET_ACCESS_KEY