segler-alex / RadioDroid

radio browser app that uses www.radio-browser.info on android
GNU General Public License v3.0
750 stars 155 forks source link

Feature Request: Google Assistant integration #428

Open morckx opened 5 years ago

morckx commented 5 years ago

It would be nice to enable google assistant integration and voice control for RadioDroid so that voice commands like "OK Google, play FM4 with RadioDroid" would work.

Some necessary parts already seem to be implemented for android auto integration in a17a3989b25a34d32b3e9bb14f88bff15076f764. (Wouldn't it be good to use ExoPlayer's MediaSession extension for both, android auto and google assistant integration?)

werman commented 5 years ago

Yeah, probably same code will be used. For reference technical documentation: https://developers.google.com/voice-actions/system/

morckx commented 5 years ago

Would it help to use ExoPlayer's MediaSession extension? Then, however, external players wouldn't be supported.

werman commented 5 years ago

Oh, I missed that you mentioned it. I took a look and I believe that it wouldn't help. If I understand correctly it works the best with specific use case - when you have playlists. Internet radio is a different thing.

The only problematic part with voice commands and all these integrations is searching for the station given the query. There is no fuzzy search in Radiobrowser and there is no local search in RadioDroid (there are many different lists of stations and no central place of storage).

morckx commented 5 years ago

The only problematic part with voice commands and all these integrations is searching for the station given the query. There is no fuzzy search in Radiobrowser and there is no local search in RadioDroid (there are many different lists of stations and no central place of storage).

I'd suggest to only search within the favourites. I think it would even make sense to look there first if it was easy to search the whole list.

werman commented 5 years ago

I'd suggest to only search within the favourites. I think it would even make sense to look there first if it was easy to search the whole list.

Yes, thought the same.