Fixed get_sound_url func and some refactoring