Describe using language in a TTS service. (#1644)

* Following pull request #5047 describe using language in a service.

* Update tts.markdown

Added descriptors for yaml examples .
This commit is contained in:
andrey-git 2016-12-23 13:10:08 +02:00 committed by Fredrik Lindqvist
parent 7b172c98f8
commit 514a68a315

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.