-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Volume control #275
Comments
I don't think librespot is the place for this. You might have a look at spotipy (https://github.com/plamere/spotipy) to create a python scrip to control the volume.. |
Just to add for reference spotcontrol. |
@thekr1s thx for the link, but i can't find volume control for spotipy |
@thekr1s got it working :) python volume.py 80 -> sets volume to 80% here my working python code_ import pprint
import sys
import spotipy
import spotipy.util as util
scope = 'user-modify-playback-state'
username = 'YOURUSER'
token = util.prompt_for_user_token(username,scope,client_id='mine!',client_secret='mine!',redirect_uri='http://localhost:8888/callback/')
volume = int(sys.argv[1])
if token:
sp = spotipy.Spotify(auth=token)
sp.trace = False
results = sp.volume(volume)
print results
else:
print "Can't get token for", username |
@tatoosh, Great that you got it working. |
Is there a solution to control music Volumen by command line ?
The text was updated successfully, but these errors were encountered: