└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # Making-TTS-Better 2 | Give your Alexa (or Google Home) more personality with generated sentences. 3 | 4 | speak_bedroom_temperature: 5 | ```yaml 6 | 7 | alias: Speak Bedroom Temperature 8 | sequence: 9 | - service: notify.alexa_media 10 | data_template: 11 | target: 12 | "{{ states.sensor.last_alexa.state }}" 13 | data: 14 | type: tts 15 | message: "Current Temperature, 16 | {{states('sensor.bedroom_temperature')}}, 17 | Thermostat set to, 18 | {{state_attr('climate.bedroom_cooling', 'temperature')}}, 19 | and the Thermostat is, 20 | {{ states.input_boolean.heating_auto.state }}" 21 | ``` 22 | 23 | speak_heating_auto_off: 24 | 25 | ```yaml 26 | 27 | alias: Heating Auto Off 28 | sequence: 29 | - service: notify.alexa_media 30 | data_template: 31 | target: 32 | - "{{ states.sensor.last_alexa.state }}" 33 | data: 34 | type: tts 35 | message: '{{ 36 | [ 37 | "Bedroom temperature set to manual", 38 | "Bedroom temperature to manual control", 39 | "I will no longer control the bedroom temperature", 40 | "Temperature of the bedroom set to Manual", 41 | "Control of the bedroom climate is yours", 42 | "I have stopped controlling the bedroom temperature" 43 | ]|random}}' 44 | ``` 45 | 46 | speak_window_lights: 47 | ```yaml 48 | 49 | alias: Speak Window Lights 50 | sequence: 51 | - service: notify.alexa_media 52 | data_template: 53 | target: 54 | - "{{ states.sensor.last_alexa.state }}" 55 | data: 56 | type: tts 57 | message: '{{ 58 | [ 59 | "Turning on window lights... ", 60 | "Window lights on... ", "Window lights coming on... ", 61 | "Lighting up the window... ", 62 | "Your Window lights are on... ", 63 | ]|random +[ 64 | 65 | "Hmmm, ", 66 | "Arr, ", 67 | "Wow, ", 68 | "Cool, ", 69 | "sweet, ", 70 | ]|random +[ 71 | 72 | "Blue.", 73 | "Thats Pretty.", 74 | "How Nice.", 75 | "Oh I do love Blue.", "I so love Blue.", 76 | ]|random}}' 77 | ``` 78 | 79 | How to make the "Last Alexa" 80 | Make a new 'sensor' .yaml file with this code: 81 | ```yaml 82 | - platform: template 83 | sensors: 84 | last_alexa: 85 | value_template: > 86 | {{ states.media_player | selectattr('attributes.last_called','eq',true) | map(attribute='entity_id') | first }} 87 | ``` 88 | 89 | --- 90 | ### 🤝 Found this useful, want to say 'Thanks' and support my efforts. CHEERS🍺 91 | | Buy me a Coffee | PATREON | 92 | |-----------------|---------| 93 | | [![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-donate-yellow.svg?style=flat-square&logo=buy-me-a-coffee)](https://www.buymeacoffee.com/3ative) | [![Patreon](https://img.shields.io/badge/Patreon-support-red.svg?style=flat-square&logo=patreon)](https://www.patreon.com/3ative) | 94 | --- 95 | --------------------------------------------------------------------------------