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 Fabian Affolter
parent 652e2238f4
commit 19a0ef58d1
No known key found for this signature in database
GPG Key ID: E23CD2DD36A4397F

View File

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