Spotipy: read current volume?

Created on 9 Feb 2018  路  5Comments  路  Source: plamere/spotipy

With the help of the docu i can set my spotify volume right now in percentage.
results = sp.volume(volume)
but i did not get an result - is there also a get method for reading the current volume?
Thx Tatoosh

question

Most helpful comment

THX @gawaineo, good solution and the device key delivers good information!

All 5 comments

I don't think this is currently possible. There is no mention of anything related in official docs either.

THX @ritiek for linking. I think i can solve it by the devices command: https://developer.spotify.com/web-api/get-a-users-available-devices/

Ah yes. You're right.

@tatoosh you can also get the current playback info: http://spotipy.readthedocs.io/en/latest/#spotipy.client.Spotify.current_playback

Here's the doc reference: https://developer.spotify.com/web-api/get-information-about-the-users-current-playback/

You can look at the "device" key in the dict that's returned.

THX @gawaineo, good solution and the device key delivers good information!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AnySomebody1 picture AnySomebody1  路  3Comments

DylanMeeus picture DylanMeeus  路  4Comments

Inspectiver picture Inspectiver  路  4Comments

Jeoffreybauvin picture Jeoffreybauvin  路  4Comments

danielgwilson picture danielgwilson  路  4Comments