fossasia / susi_android

SUSI.AI Android App https://play.google.com/apps/testing/ai.susi
Apache License 2.0
2.42k stars 1.11k forks source link

control the smart speaker via android app #2282

Open alok760 opened 5 years ago

alok760 commented 5 years ago

Describe the feature you'd like

Use Smart Speakers soundserver to control the smart speaker

See: https://github.com/fossasia/susi_installer/tree/development/raspi/soundserver The soundserver offers a webpage to control the smart speaker Now there are two options to control the smart speaker via the android app.

atm1504 commented 5 years ago

@alok760 can you please say how we have the access to the server. Is it only possible when my device is connected to the same wifi with which my mobile is connected?

alok760 commented 5 years ago

The android app will have to search the smart speaker on the same network, for that we can either use the Raspberry PI's mDNS name or scan the network for the server Next thing is authentication, if the web view is used it'll handle the authentication, otherwise authentication should also take place if a password is set.

The authentication works like this -

The control webpage looks like this

atm1504 commented 5 years ago

The android app will have to search the smart speaker on the same network, for that we can either use the Raspberry PI's mDNS name or scan the network for the server

@alok760 please elaborate this part

atm1504 commented 5 years ago

To be solved after #2284. Because that issue contains the establishment of Manage Devices option in the setting page like that present in google home.

mariobehling commented 5 years ago

Please use the web view. @alok760 Please integrate it into the my devices section on the web client.

atm1504 commented 5 years ago

Yes, @mariobehling. I have already integrated a webview with a dummy URL in the pr #2299. I will replace with the actual link after I get a working image of susi installer