home-assistant.io/source/_integrations/notify.tts.markdown
2023-03-13 08:46:09 +01:00

1.7 KiB

title description ha_category ha_release ha_iot_class ha_quality_scale ha_domain
Notify using TTS Instructions on how to set up a Notify integration using TTS service and media_player within Home Assistant.
Notifications
0.117 Local Push internal notify

The notify TTS platform lets you use the TTS integration Service Say and a media_player to alert you of important events. This integration provides a simple interface to use in your automations and alerts.

In order to use this integration, you must already have a TTS platform installed and configured, and a media_player working with the TTS platform.

To enable this platform in your installation, consider the following example using google_translate and an example media_player.living_room.

In your configuration.yaml file type:

tts:
  - platform: google_translate
    service_name: google_translate_say

notify:
  - platform: tts
    name: in_the_living_room
    tts_service: tts.google_translate_say
    media_player: media_player.living_room

Please note that the tts_service parameter, must match the service_name defined in the TTS integration.

{% configuration %} name: description: The name of the notify service. required: true type: string tts_service: description: "The service_name of a TTS platform." required: true type: string media_player: description: "The entity_id of a media_player." required: true type: string language: description: "The language to be passed to the TTS Service Say" required: false type: string {% endconfiguration %}