mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 09:56:52 +00:00
Add service_name (#9330)
This commit is contained in:
parent
fb7f4be2bd
commit
0d831f5d3e
@ -49,18 +49,24 @@ base_url:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: value of ``http.base_url``
|
default: value of ``http.base_url``
|
||||||
|
service_name:
|
||||||
|
description: Define the service name.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: The service name default set to <platform>_say. For example, for google_translate tts, its service name default is `google_translate_say`.
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
The extended example from above would look like the following sample:
|
The extended example from above would look like the following sample:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry for Google TTS service
|
# Example configuration.yaml entry for Google Translate TTS service
|
||||||
tts:
|
tts:
|
||||||
- platform: google_translate
|
- platform: google_translate
|
||||||
cache: true
|
cache: true
|
||||||
cache_dir: /tmp/tts
|
cache_dir: /tmp/tts
|
||||||
time_memory: 300
|
time_memory: 300
|
||||||
base_url: http://192.168.0.10:8123
|
base_url: http://192.168.0.10:8123
|
||||||
|
service_name: google_say
|
||||||
```
|
```
|
||||||
|
|
||||||
<p class='note'>
|
<p class='note'>
|
||||||
@ -91,7 +97,7 @@ The Google cast devices (Google Home, Chromecast, etc.) present the following pr
|
|||||||
|
|
||||||
## {% linkable_title Service say %}
|
## {% linkable_title Service say %}
|
||||||
|
|
||||||
The `say` service support `language` and on some platforms also `options` for set, i.e., *voice, motion, speed, etc*. The text for speech is set with `message`.
|
The `say` service support `language` and on some platforms also `options` for set, i.e., *voice, motion, speed, etc*. The text for speech is set with `message`. Since release 0.92, service name can be defined in configuration `service_name` option.
|
||||||
|
|
||||||
Say to all `media_player` device entities:
|
Say to all `media_player` device entities:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user