From 19a0ef58d183d6b8b483750aa2b67a4c39304150 Mon Sep 17 00:00:00 2001 From: andrey-git Date: Fri, 23 Dec 2016 13:10:08 +0200 Subject: [PATCH] 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 . --- source/_components/tts.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/_components/tts.markdown b/source/_components/tts.markdown index 8fb93e67aa1..8e9fac152f7 100644 --- a/source/_components/tts.markdown +++ b/source/_components/tts.markdown @@ -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.