I want to use custom Voice Actions in my application in order to launch not standard applications, but my own. How to implement it? So I say: "Ok, Google" -> "Direct Match" and my application would run.

I found this article. What are Google Now Voice Actions? but I do not know what to register in my Manifest .

Can I step through what I need for this?

    1 answer 1

    I'm afraid you can not specify your application to respond to an arbitrary command pattern. You can only add filters of this table to your intentions. At the same time, the user can start your application by saying "Ok, Google" -> "Run Direct Match" even if you have not configured anything. But if you want to respond to the query "Ok, Google" -> "search for catches videos on Direct Match" (I do not know the same format for the Russian language), then you probably need to add to the filters

     <intent-filter> <action android:name="com.google.android.gms.actions.SEARCH_ACTION"/> <category android:name="android.intent.category.DEFAULT"/> <category android:name="android.intent.category.VOICE"/> </intent-filter>