You could give the slider an instance variable that stores the last value.
Eg. On start of level: Slider value is 0, set lastValue to 0 (or whatever)
Later,
If slider value != lastValue: play sound effect, set lastValue to slider value
This ensures that the slider just remembers what it was set to and plays the sound if the user changes it to anything else. 👍