More elegant function selection for the download of the sound file in analyze.py