You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Google Generative AI integration adds a conversation agent powered by [Google Generative AI](https://ai.google.dev/)in Home Assistant. It can optionally be allowed to control Home Assistant.
30
+
The Google Generative AI integration adds a conversation agent and text-to-speech engine powered by [Google Generative AI](https://ai.google.dev/)to Home Assistant. It can optionally be allowed to control Home Assistant.
29
31
30
32
Controlling Home Assistant is done by providing the AI access to the Assist API of Home Assistant. You can control what devices and entities it can access from the {% my voice_assistants title="exposed entities page" %}. The AI is able to provide you information about your devices and control them.
The `tts.speak` action is the modern way to use TTS. Add the `speak` action, select the Google Generative AI TTS entity, select the media player entity or group to send the TTS audio to, and enter the message to speak.
196
+
197
+
Text-to-speech (TTS) generation is controllable, meaning you can use natural language to structure interactions and guide the style, accent, pace, and tone of the audio. You can change the way the text is spoken directly in the message by, e.g. entering "Say cheerfully: Have a wonderful day!" instead of just "Have a wonderful day!".
198
+
199
+
For more options about `speak`, see the Speak section on the main [TTS](/integrations/tts/#service-speak) building block page.
200
+
201
+
In YAML, your action will look like this:
202
+
203
+
{% raw %}
204
+
205
+
```yaml
206
+
action: tts.speak
207
+
target:
208
+
entity_id: tts.google_generative_ai_tts
209
+
data:
210
+
media_player_entity_id: media_player.tv
211
+
message: Say cheerfully: Have a wonderful day!
212
+
options:
213
+
voice: <voice-id>
214
+
model: <model-id>
215
+
```
216
+
217
+
{% endraw %}
218
+
191
219
## Video tutorial
192
220
193
221
This video tutorial explains how Google Generative AI can be set up, how you can send an AI-generated message to your smart speaker when you arrive home, and how you can analyze an image taken from your doorbell camera as soon as someone rings the doorbell.
0 commit comments