When I tried to run your Repl, there seems to be an error stating that it can’t find one of the files. Do you mind fixing the error so that we can proceed further with your issue?
Ok I fixed the error and I found the reason why the audio stops after some time.
The time.sleep() on your last line is stopping the audio after some time (probably because the Repl is technically not running anymore). So increasing the value seems to continue playing the sound.