#Text to speech card

1 messages · Page 1 of 1 (latest)

maiden swift
#

Is there a text to speech card that I can type a message and have it play over a smart speaker?

steady marlin
#

You can use the entities card with a text helper and a script that plays the text on a chosen media player.

steady marlin
#
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.

maiden swift
#

Got it, thank you

urban walrus
#

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."