androidthings / sample-googleassistant

Google Assistant API sample for Android Things
Apache License 2.0
467 stars 147 forks source link

If Google Assistant Service can let the phone control the Smart home? #71

Closed Rayhahah closed 6 years ago

Rayhahah commented 6 years ago

I want to know that if If Google Assistant Service can let the phone like Redmi 4A to control the Third party smart home which support Google Assistant

Rayhahah commented 6 years ago

I can not receive deviceAction ,but I can receive the Intent

Fleker commented 6 years ago

I'm unfamiliar with this phone. Does it run Android? Does it not already have the Google Assistant?

Rayhahah commented 6 years ago

It run Android,and it have not the Google Assistant. Can the phone which not already have the Google Assistant control the Third party smart home ?

Fleker commented 6 years ago

You could use the Google Assistant service. It would allow you to control smart home devices just like on any other phone.

Rayhahah commented 6 years ago

How can I establish contact the Google Assistant Service and smart home devices. For example, as I know Pixel have a setting to add smart home devices to Google Assistant

Rayhahah commented 6 years ago

But I really don't know, how to do on the other phone which not already have the Google Assistant

Rayhahah commented 6 years ago

Please tell me more detail,I really need your help.

Fleker commented 6 years ago

You would need to use a device with the Google Assistant settings to do the initial account link. After that, any device that uses your account (Assistant SDK device, Google Home, etc.) will be able to control your devices.

Rayhahah commented 6 years ago

I don't understand it too much. I want to build the app which have the Google Assistant Service, and people can use my app to control their smart home devices (Their phone have not Google Assistant) So, can it be possible? Now I integrate Google Assistant Service in my app,which step should I follow ?

Fleker commented 6 years ago

First they'll need a phone that does have the Google Assistant to do the linking.

To integrate it in your app, you can look at this sample for how to send audio streams and playback the audio responses.

Rayhahah commented 6 years ago

Where can I find the Google Assistant Setting? I can not find it in my phone (Galaxy S8+ with Android 7.0 ) How to do the linking with Google Assistant on my phone?

Fleker commented 6 years ago
  1. Go to the Google Assistant
  2. Click on the blue icon in the top-right corner. You should be in Explore.
  3. Go to the overflow menu and select Settings
  4. Go to Home Control. You'll see connected devices.
  5. Click the + icon to see a list of home control providers
  6. Select a provider to link the partner account to your Google account
Rayhahah commented 6 years ago

Can I change "Ok Google" to "Hello Birds" that awaken Google Assistant Service connection.

Fleker commented 6 years ago

The Google Assistant service API is just a set of gRPC calls. It does not include the hotword. By default, in this sample, you have to push to activate the microphone. You can use your own hotword system that, when it activates, will start sending audio data through the service.