Skip to content
← Back to Community
**i want to play sound in this repl but its not working plz help !!**
Profile icon
HimanshuShekha4

image

every time i insert the file in the command and press enter it displays a red cryptic error ....

Voters
Profile icon
IvoAndringa
Profile icon
HimanshuShekha4
Comments
hotnewtop
Profile icon
RYANTADIPARTHI

I don't think any music module works in repl.it except repl.it audio. like this:

from replit import audio audio.play_file('sound.mp3')

and you haveto upload that file into your repl. Here's a tutorial to tell you more.

https://docs.repl.it/repls/audio

Profile icon
HimanshuShekha4

@RYANTADIPARTHI indeed its not working on repl.it ... thanks for helping tho
this is working in the IDE ...👍👍

Profile icon
RYANTADIPARTHI

@HimanshuShekha4 np, check mark?

Profile icon
Wumi4

Because the package gi haven't installed yet. Try:

pip3 install gi
Profile icon
HimanshuShekha4

@Wumi4
YOU TESTED IT ?
image
**I UPGRADED THE PIP **