python-3.xraspbiangoogle-homegoogle-music

How to edit and run python scripts after installing an API in Raspbian?


I have been trying to follow the instructions on Click here in order to get my Raspberry Pi and Google Assistant to play music. I am a complete newby to all this so when each mouse click instruction isn't explicitly stated, I am lost.

So far in the instructions I am up to the Quickstart section. This is where I am lost. I have no idea where the scripts are they are talking about. Once I know where they are, do I just add my details into the functions and all of a sudden the Raspberry Pi will be able to play songs from my Google Music account?

Can someone please give me some advise on what I need to do so I am looking at the same information they are talking about in the Quickstart section?


Solution

  • I have no idea where the scripts are they are talking about.

    These scripts don't exist yet. The API is an application program interface. It allows developers to interact with other programs. This API documentation assumes you know Python, and is introducing you to their API.

    That being said, if you're not interested in learning python, I don't suggest you pursue this. Because on its' own, this library only gives you the power / option to control Google Play Music. It won't, like you said, suddenly allow the RPi to play songs. You'll need to write a script that awaits a command from the RPi, then plays the song.