The sound in my code is not working

Show hidden files and open the .replit file. Insert audio = true somewhere in the file.
Then, type kill 1 in the shell to reload the repl. Check the checkbox with headphones.
https://docs.replit.com/tutorials/replit/playing-audio-replit#playing-audio-on-replit

4 Likes