#Text to speech card
1 messages · Page 1 of 1 (latest)
You can use the entities card with a text helper and a script that plays the text on a chosen media player.
type: entities
entities:
- entity: input_text.announce_text
- entity: script.announce_message
name: Announce on HA Voice PE
state_color: false
grid_options:
columns: full
You need to create the input text helper and the script.
Got it, thank you
Depending on how you're wanting to use the text-to-speech, you could send a notification as an action. Here, a button card is used to send a message to a specific device. ```yaml
type: button
show_name: true
show_icon: true
name: Dinner is ready
icon: mdi:food-fork-drink
tap_action:
action: perform-action
perform_action: notify.alexa_media
data:
target: media_player.living_room_right
message: "Dinner is ready."