adds sound class to play sound files according to different environments