mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Rename google tts to google_translate (#9300)
This commit is contained in:
parent
b80839f319
commit
0c305a7a54
@ -19,7 +19,7 @@ To get started, add the following lines to your `configuration.yaml` (example fo
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry for Google TTS service
|
# Example configuration.yaml entry for Google TTS service
|
||||||
tts:
|
tts:
|
||||||
- platform: google
|
- platform: google_translate
|
||||||
```
|
```
|
||||||
|
|
||||||
<p class='note'>
|
<p class='note'>
|
||||||
@ -56,7 +56,7 @@ 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 TTS service
|
||||||
tts:
|
tts:
|
||||||
- platform: google
|
- platform: google_translate
|
||||||
cache: true
|
cache: true
|
||||||
cache_dir: /tmp/tts
|
cache_dir: /tmp/tts
|
||||||
time_memory: 300
|
time_memory: 300
|
||||||
@ -96,8 +96,8 @@ The `say` service support `language` and on some platforms also `options` for se
|
|||||||
Say to all `media_player` device entities:
|
Say to all `media_player` device entities:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Replace google_say with <platform>_say when you use a different platform.
|
# Replace google_translate_say with <platform>_say when you use a different platform.
|
||||||
service: tts.google_say
|
service: tts.google_translate_say
|
||||||
entity_id: "all"
|
entity_id: "all"
|
||||||
data:
|
data:
|
||||||
message: 'May the Force be with you.'
|
message: 'May the Force be with you.'
|
||||||
@ -106,7 +106,7 @@ data:
|
|||||||
Say to the `media_player.floor` device entity:
|
Say to the `media_player.floor` device entity:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
service: tts.google_say
|
service: tts.google_translate_say
|
||||||
entity_id: media_player.floor
|
entity_id: media_player.floor
|
||||||
data:
|
data:
|
||||||
message: 'May the Force be with you.'
|
message: 'May the Force be with you.'
|
||||||
@ -115,7 +115,7 @@ data:
|
|||||||
Say to the `media_player.floor` device entity in French:
|
Say to the `media_player.floor` device entity in French:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
service: tts.google_say
|
service: tts.google_translate_say
|
||||||
entity_id: media_player.floor
|
entity_id: media_player.floor
|
||||||
data:
|
data:
|
||||||
message: 'Que la force soit avec toi.'
|
message: 'Que la force soit avec toi.'
|
||||||
@ -125,7 +125,7 @@ data:
|
|||||||
With a template:
|
With a template:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
service: tts.google_say
|
service: tts.google_translate_say
|
||||||
data_template:
|
data_template:
|
||||||
message: "Temperature is {% raw %}{{states('sensor.temperature')}}{% endraw %}."
|
message: "Temperature is {% raw %}{{states('sensor.temperature')}}{% endraw %}."
|
||||||
cache: false
|
cache: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user