mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Clarify google translate how to use preferred speak service (#31741)
* Clarify google translate how to use preferred speak service * tiny tweaks --------- Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
eb9e8ce322
commit
1843a010bb
@ -40,7 +40,24 @@ You can also use supported BCP 47 tags like the below or the 2-2 digit format fo
|
||||
| es-es | es | es |
|
||||
| es-us | es | com |
|
||||
|
||||
## Service say
|
||||
|
||||
## Service speak
|
||||
|
||||
The `tts.speak` service is the modern way to use Google translate TTS action. Add the `speak` action, select the entity for your Google translate TTS (it's named for the language you created it with), select the media player entity or group to send the TTS audio to, and enter the message to speak.
|
||||
|
||||
For more options about `speak`, see the Speak section on the main [TTS](/integrations/tts/#service-speak) building block page.
|
||||
|
||||
In YAML, your action will look like this:
|
||||
```yaml
|
||||
service: tts.speak
|
||||
target:
|
||||
entity_id: tts.google_en_com
|
||||
data:
|
||||
media_player_entity_id: media_player.giant_tv
|
||||
message: Hello, can you hear me now?
|
||||
```
|
||||
|
||||
## Service say (legacy)
|
||||
|
||||
<div class='note'>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user