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: https://replit.com/@S146-JiacongChe/Playsound-Module#main.py

from playsound import playsound
playsound("ding_sound_effect.mp3")

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

2 Likes

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