I intercept all “Okay Google …” instructions. If the command is just not dealt with by my code, then I want to ship the command to Google Assistant. Listed below are the steps tailored from this web page:
-
App Begin
-
Package deal: com.google.android.googlequicksearchbox
-
Exercise Class: com.google.android.apps.gsa.static.plugins.opa.hq.OpaHqActivity
-
-
Delay 1 second
-
Work together
-
Motion: Click on
-
Package deal: com.google.android.googlequicksearchbox
-
UI Ingredient ID: opa_hq_content_footer_icon_keyboard
-
-
Delay 1 second
-
Work together
-
Motion: Set textual content
-
Package deal: com.google.android.googlequicksearchbox
-
UI Ingredient Class: android.widget.EditText
-
UI ELement ID: com.google.android.googlequicksearchbox:id/input_text
-
Content material: **command**
-
-
Work together
-
Motion: Click on
-
Package deal: com.google.android.googlequicksearchbox
-
UI Ingredient ID: com.google.android.googlequicksearchbox:id/send_button
-
Google Assistant executes **command** as if I had spoken it besides it doesn’t communicate out loud.
How do I get Google Assistant to talk out loud? I’ve seen others use text-to-speech to talk to Google Assistant. That’s type of bizarre to talk a command and have my cellphone communicate it again to me simply so Google Assistant can hear it.