Send text to Gemini and receive vocal output?

84 views
Skip to first unread message

SkizZO

unread,
Jan 7, 2025, 1:38:46 PM1/7/25
to Automate for Android
Hello, i've homeassistant and have a private Text to Speech / Speech to text assistant.
I wish to distinguish commands who goes to gemnin and command who are directed to Assistant (homeassistant).
I've created a flow, but miss how to pass the text to gemini, and receive a response.

That's the flow: Automate.jpg

Summarizing: Define a magic word (abracadabra for the moment..)
Il abracadabra, the HomeAssistant "assistant " popup and ask what i want,

But if i tell anything that is not "abracadabra", it should pass the text to gemini.
At the moment, gemini successful popups, but no text is inserted, and also i've noteced if i manually type text, it does not reply with voice but with text.

Here is the specific block:

automate2.jpg


So in summary, is possible to VOCALLY switch an assistant? how would you do this?

Henrik "The Developer" Lindqvist

unread,
Jan 7, 2025, 4:54:56 PM1/7/25
to Automate for Android
The Extras should likely be {"query": speechOutput[0] }, since it's will surely not support an array as outputted by the Speech recognition block.
But this will likely not work anyway, so try using the Interact block with action Set text to set the text in teh search/query input text field.
Reply all
Reply to author
Forward
0 new messages