Comments (10)
Hmm, does the more general "stop" work?
from spotify-skill.
I tried it a few times now again neither stop nor stop the music works.
I tried "pause the music" now and this works first time.
from spotify-skill.
I can reproduce to some extent...I can see that the StopMusic intents aren't registering properly, but for me the generic "stop" works.
Will continue to investigate / fix
from spotify-skill.
Not urgent at all. I can live with pause. Just throwing it out there to let you know. To be honest its already exceeding my expectations. My google home speaker I cannot get to do playlists at all from spotify. It was super frustrating for a paid for product. Mycroft spotify-skill out of box first time play background and it plays it without issues. Super impressed Thanks.
from spotify-skill.
Not sure if its related. But when I issue the stop command I also see a 403 to the spotify api on my terminal:
17:38:02.297 - SpotifySkill - INFO - Pausing Spotify...
17:38:03.005 - mycroft-spotify_forslund.spotify:pause:146 - ERROR - http status: 403, code:-1 - https://api.spotify.com/v1/me/player/pause?device_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:
from spotify-skill.
I think I may have found a possible cause for this and have submitted a PR to mycroft-core.
from spotify-skill.
Hi,
I have this problem as well, with any (stop|pause|etc) keyword. I determined that my problem is a mismatched audio playback state machine. If "pause spotify" doesn't work, that means that I started spotify from a desktop client (or mobile) and the audio state comes back empty.
By speaking play spotify (while already playing) and then speaking pause spotify, it works.
I guess a periodic status query from the skill to spotify would be an easy (but inefficient) fix if there's no way to subscribe to get a push; I haven't looked at the API at all.
from spotify-skill.
This has so far been intentionally been left out. We've decided that for now the player should only be able to affect playback if the skill started it (or if playback is taken over using "play spotify"). Mainly because another skill could be playing something on the device (news or something) while you play Spotify in another room using your phone. and a pause command would then pause both the news and Spotify.
This can perhaps be improved. The currently activated playback skill could be tracked by Mycroft and the pause could be sent directly to the playing skill if there is no playing skill it could send it globally perhaps...
The public api does not (as far as I know) support pushes.
from spotify-skill.
Two suggestions that might be better just "not working":
- a self.speak.dialog("currently you are not in control of spotify") and/or
- a backend web setting (i.e. checkbox) to allow for always being in control?
from spotify-skill.
Indeed good suggestions. and possibly a handler for "stop spotify" which explicitly allows stopping (since you clearly want to stop spotify)
from spotify-skill.
Related Issues (20)
- Missing lower() at regex functions HOT 2
- Notice of diabled API HOT 4
- -cli-client HOT 1
- Followed new credential instructions but still no matches HOT 1
- Spotify devices do not match due to case-sensitivity HOT 2
- Auth.py missing; wrong import for SpotifyOAuth HOT 39
- Docker instructions HOT 5
- clear solution explanation for authentication HOT 2
- volume level control HOT 1
- Can't obtain song meta information HOT 6
- Followed all directions and still "missing SPOTIPY_CLIEND_ID" HOT 11
- Play a random album from an artist HOT 4
- auth.py file missing HOT 7
- No device detected though installation went well HOT 8
- Command to search for new spotify devices HOT 6
- Unable to authorize with the spotify service HOT 4
- Can't find XDG_CONFIG HOT 2
- package change in spotipy HOT 1
- Playback Control doesnt't find the Spotify Skill HOT 2
- Any plan to port this skill to OVOS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotify-skill.