Skip to content

Commit 5b61d10

Browse files
authored
Revert "Revert "Describe using language in a TTS service.""
1 parent bbfecba commit 5b61d10

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/_components/tts.markdown

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ service: tts.google_say
5555
data:
5656
message: 'May the Force be with you.'
5757
```
58+
Say to the `media_player.floor` device entitie:
5859

5960
```yaml
6061
service: tts.google_say
@@ -63,6 +64,16 @@ data:
6364
message: 'May the Force be with you.'
6465
```
6566

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+
6677
With a template:
6778

6879
```yaml
@@ -72,6 +83,7 @@ data_template:
7283
cache: false
7384
```
7485

86+
7587
## {% linkable_title Cache %}
7688

7789
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

Comments
 (0)