You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/tts.markdown
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@ service: tts.google_say
55
55
data:
56
56
message: 'May the Force be with you.'
57
57
```
58
+
Say to the `media_player.floor` device entitie:
58
59
59
60
```yaml
60
61
service: tts.google_say
@@ -63,6 +64,16 @@ data:
63
64
message: 'May the Force be with you.'
64
65
```
65
66
67
+
Say to the `media_player.floor` device entitie in french:
68
+
69
+
```yaml
70
+
service: tts.google_say
71
+
entity_id: media_player.floor
72
+
data:
73
+
message: 'Que la force soit avec toi.'
74
+
language: 'fr'
75
+
```
76
+
66
77
With a template:
67
78
68
79
```yaml
@@ -72,6 +83,7 @@ data_template:
72
83
cache: false
73
84
```
74
85
86
+
75
87
## {% linkable_title Cache %}
76
88
77
89
The component have two caches. Both caches can be controlled with the `cache` option in the platform configuration or the service call `say`. A long time cache will be located on the file system. The in-memory cache for fast responses to media players will be auto-cleaned after a short period.
0 commit comments