Android App Integrated with Ok Google

Android App Integrated with OK Google

Through the Voice Actions API, your app can register for system actions, one of which is 'search' (so you could do 'search for Some Question or command on APP').

In the past, some developers were able to submit a custom voice action request. Upon approval, users could do a specific action with your app via voice. This is no longer an option.

Google Assistant integration with my custom app?

The best option is to use Actions on Google to directly make calls to your Firebase server and update the database that way. The hooks into Android apps are not deep at the moment. Android Actions were announced, but are not available right now.

The benefit of doing this is that your Action will work on any Assistant surface, beyond an Android phone, and will not require the user to install your app.

Since you can run Actions on Google on Firebase Functions, it is easy to incorporate into your Firebase database.

Google Assistant SDK to integrate it in an app

Your example doesn't illustrate embedding the Assistant in your own app - it sounds like it illustrates using the Assistant to start your app.

The former would be supported with this SDK, the latter... not really.

You can embed the newly announced SDK into your apps by building a gRPC library for Android. See https://developers.google.com/assistant/sdk/prototype/getting-started-other-platforms/integrate for the overview information for the Assistant SDK and http://www.grpc.io/docs/quickstart/android.html for getting started with gRPC for Android.

Can Google Assistant SDK be integrated with my own app?

Google Assistant:

According to the Google Assistant SDK guide page:

The Google Assistant gRPC API gives you full control over the integration with the Assistant by providing a streaming endpoint. Stream a user audio query to this endpoint to receive a Google Assistant audio response.

That guide page will help you integrate and use google assistant in your app - your users say something and receive an audio response from Google Assistant.



Api.ai:

And if you want actions, you will need to use api.ai - which allows you to build apps for the Google Assistant.

Adding voice control with Google Assistant

If you want to integrate voice commands only within the context of your application, it may be a good idea to use Dialogflow. It will use Google Cloud's speech to text while giving you the ability to handle your intents. There's a sample which uses Android.

Using the Google Assistant would also be possible with the Google Assistant SDK. There is a sample which uses Android Things, but is easily portable to any Android device. It would let you send voice commands to the Assistant and get back responses. However, it is slightly more general. If a user asks about something in your app, they will probably only want an answer within the context of your app, not fallback to the Assistant.



Related Topics



Leave a reply



Submit