How to go to a specific point on the slider


I have a music player app which has a slider to move the song to a desired location (Forward/Rewind). If I see the Appium inspector for the IOS app, I can get the value of the Slider label (Example 50 %). Is it possible to pass both the value and label to a method so that the click happens on the slider at 50 % or any other desired location?

I have the same challenge for volume slider. I want it to slide it to a desired percentage.

PS: I am using python for scripting