mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 05:46:52 +00:00
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:
parent
652e2238f4
commit
19a0ef58d1
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user