mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Update tts.markdown
This commit is contained in:
parent
f9ebbd271b
commit
5efe180893
@ -50,13 +50,14 @@ tts:
|
|||||||
Say to all `media_player` device entities:
|
Say to all `media_player` device entities:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
service: tts.platform_say
|
# Replace google_say with <platform>_say when you use a different platform.
|
||||||
|
service: tts.google_say
|
||||||
data:
|
data:
|
||||||
message: 'May the Force be with you.'
|
message: 'May the Force be with you.'
|
||||||
```
|
```
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
service: tts.platform_say
|
service: tts.google_say
|
||||||
entity_id: media_player.floor
|
entity_id: media_player.floor
|
||||||
data:
|
data:
|
||||||
message: 'May the Force be with you.'
|
message: 'May the Force be with you.'
|
||||||
@ -65,7 +66,7 @@ data:
|
|||||||
With a template:
|
With a template:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
service: tts.platform_say
|
service: tts.google_say
|
||||||
data_template:
|
data_template:
|
||||||
message: 'Temperature is {% raw %}{{ sensor.temperature }}{% endraw %}.'
|
message: 'Temperature is {% raw %}{{ sensor.temperature }}{% endraw %}.'
|
||||||
cache: false
|
cache: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user