Hi I found this code snippet and it works, but I would like to send a text command to assistant eg: send("How is the weather today?")
If there is some example please post the link.
Thank you
-----------------------------------------------------
Dim in As Intent
in.Initialize("android.intent.action.VOICE_COMMAND", "")
Try
StartActivity(in)
Catch
Log(LastException)
End Try
-----------------------------------------------------
I found this on the web but I don't know how to insert it...can someone help me??thanks
If there is some example please post the link.
Thank you
-----------------------------------------------------
Dim in As Intent
in.Initialize("android.intent.action.VOICE_COMMAND", "")
Try
StartActivity(in)
Catch
Log(LastException)
End Try
-----------------------------------------------------
I found this on the web but I don't know how to insert it...can someone help me??thanks
How to send a text query to Google Assistant from Android app
I'm trying to start Google Assistant and send a text question (not voice) from my app when I press a button. For example: I click a button, and the Google Assistant answer to my question "How is the
stackoverflow.com
How to send a text query to Google Assistant:
AssistConfig config = AssistConfig.newBuilder()
.setTextQuery("Your text query goes here!")
//.setAudioInConfig(audioInConfig)
.setAudioOutConfig(audioOutConfig)
.setDeviceConfig(deviceConfig)
.setDialogStateIn(dialogStateIn)
.setScreenOutConfig(screenOutConfig)
.build();
AssistRequest request = AssistRequest.newBuilder().setConfig(config).build();
Last edited: