forslund / spotify-skill

Mycroft Skill to control spotify using the Spotify Connect API
Apache License 2.0
72 stars 38 forks source link

volume level control #167

Open Lockeddoor opened 3 years ago

Lockeddoor commented 3 years ago

maybe if you add a feature to control the volume would be great also ı have coded my own Spotify apı and control for my project so ı got an example for you if you add it that would be so good

def volume_level(): print("volume") vol = "" try: vol = vol.join(filter(str.isdigit, query)) sp = spotipy.Spotify(auth=refresh()) sp.volume(int(vol)) except: print("something went wrong")

this is the code for python. it takes input and gets the percentage into it and changes to it you had already got a refresh token just add it. Also ı used AI so ı got a aı command that to you can use "tag": "volume_level", "patterns": [" Spotify volume", "change the Spotify volume to", "make the Spotify volume", " Spotify %"],

ı hope these can help if you add it that would be good have a great day :)

forslund commented 3 years ago

Sorry for the late response, this is an excellent Idea. will try to get it in before the end of the vacation