Solved Spotify won’t work with Google Assistant
-
Hello everyone,
thanks so much for the amazing Google Assistant Module!
It works fine except parts of the Spotify integration.I did the steps in the Developer Spotify Dashboard, ran the tokens and got in my Browser: „/.tokenSpotify.json would be created. Check it“. I assume that means it worked successfully.
I entered my email and password in the config file and downloaded Raspotify. It said: „Raspotify for Google Assistent is now installed“.
Lastly I have added ExtSpotify.js to the recipes in the config file.When I now say: „Ok Google, Alan Walker Faded on Spotify“ I just get the answer: “this came back from a search” but I see nothing and hear nothing
I have a Spotify premium account and the NowPlayingOnSpotify Module I have installed before the Google Assistant works.
Maybe my problem is the following:
At first I downloaded “librespot” but this didn’t work so I then (I know it said don’t be stupid in the instructions, sorry) downloaded Raspotify for the GA, it didn’t take 30 minutes to download but maybe that’s because I still have Librespot installed. Would it be better to delete Librespot and install Raspotify again if yes, how can I do that? I have tried it with “sudo apt-get remove -y Librespot” but that wasn’t successful.Does anyone have an idea what else I could try? I wasn’t sure which Code I should send so if you need something I’ll obviously answer with it.
I’m working with a Raspberry Pi 4, Speaker and Mic are working as well as the whole Google Assistant Module when I ask for YouTube or the Weather.Thanks so much and best greetings from Germany
Pauline -
Hi,
Can i check your config ?
past it there and don’t forget to replace by XXX personal value (login/password) -
Thanks for your reply!
Here is my code, my last try was to add the information of the tokenSpotif.Json to the config as well but that did not change anything.Extented: {
useEXT: true,
deviceName: “SmartMirror2”,
stopCommand: “stop”,spotify: {useSpotify: true,
visual: {
updateInterval: 1000,
idleInterval: 10000,
useBottomBar: false,
CLIENT_ID: “xxxxx”,
CLIENT_SECRET: “xxxxx”,
access_token:“xxxxxx”,
token_type:“xxxx”,
expires_in:xxx,
refresh_token:“xxx”,
scope:“xxxx”,
expires_at: xxx},
player: {
type: “Raspotify”,
email: “xxxxx”,
password: “xxxx”,
minVolume: 10,
maxVolume: 90,
usePause: true,},
},
recipes: [“ExtSpotify.js”]
},
},
}, -
can I have all code of the module sorry (not only Extented)
-
Hi,
don’t worry, my bad, here is the missing part. I wrote it in my config above the part of code I already sent.
Here it is:{
module: “MMM-GoogleAssistant”,
position: “bottom_left”,
configDeepMerge: true,config: {
debug: false,
assistantConfig: {
lang: “en-US”
},responseConfig: {
useFullscreen: false,
useResponseOutput: true,
responseOutputCSS: “response_output.css”,
screenOutputTimer: 5000,
activateDelay: 250,
useAudioOutput: true,
useChime: true,
confirmationChime: true,
useInformations: true
},chimes: {
beep: “beep.mp3”,
error: “error.mp3”,
continue: “continue.mp3”,
confirmation: “confirmation.mp3”,
open: “Google_beep_open.mp3”,
close: “Google_beep_close.mp3”,
warning: “warning.ogg”
},imgStatus: {
hook: “hook.gif”,
standby: “standby.gif”,
reply: “reply.gif”,
error: “error.gif”,
think: “think.gif”,
continue: “continue.gif”,
listen: “listen.gif”,
confirmation: “confirmation.gif”,
information: “information.gif”,
warning: “warning.gif”,
userError: “userError.gif”
},zoom: { transcription: "80%",
responseOutput: “60%”
},micConfig: {
recorder: “arecord”,
device: “default”
}, -
I assume that there is possible something wrong with my Raspotify. It worked a few hours ago but now when I play a song on my phone and want to connect it to the speakers of my Raspberry Pi it connects and plays on my phone but without any sound from any speaker and as soon as I press a volume control button on my phone the song stops connecting to the pi and it stops playing. I have checked the card/device number so Raspotify should be connected to the correct numbers for the speaker. Maybe I can install it again but maybe it is also something wrong with my config.
-
Hi, I reinstalled raspotify and now it connects with my speaker again.
Sadly google assistant still doesn’t know what to do when I use my voice to control Spotify. -
bugsounet