Python - Is There Any Way to Play Sounds in Repl with Python?

Question: I have concern that if there is any way to play sounds in Replit with Python. I have tried playsound module, pydub, but they have errors.

Repl link:

from playsound import playsound

you can try pygame as its a VM so that means to run sound on your machine it needs a special API. IIRC the last time I checked pygame and replit’s in house audio package work


AFAIK, you can also try adding sound=True to your .replit file.

1 Like

haha if only that was supposed to be the fix but it never actually worked very well or consisntely