Revert "Revert "Describe using language in a TTS service."" (#1756)

This commit is contained in:
Fredrik Lindqvist 2017-01-14 19:40:17 +01:00 committed by GitHub
parent ef2e982b37
commit 8e57044896

View File

@ -55,6 +55,7 @@ service: tts.google_say
data:
message: 'May the Force be with you.'
```
Say to the `media_player.floor` device entitie:
```yaml
service: tts.google_say
@ -63,6 +64,16 @@ data:
message: 'May the Force be with you.'
```
Say to the `media_player.floor` device entitie in french:
```yaml
service: tts.google_say
entity_id: media_player.floor
data:
message: 'Que la force soit avec toi.'
language: 'fr'
```
With a template:
```yaml
@ -72,6 +83,7 @@ data_template:
cache: false
```
## {% linkable_title Cache %}
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.