Play sound in replit
the playsound package doesnt work. Is there any way to play a sound on python replit? I want to play an online sound (ie) not downloaded
Voters
the playsound package doesnt work. Is there any way to play a sound on python replit? I want to play an online sound (ie) not downloaded
You can using the replit package, but I recommend making it a website for a better user experience.
@xfinnbar example?
@QuantumCodes
Audio on replit is buggy, so like I said you should probably make a website instead.
@xfinnbar but i dont know js or css. Only html
@QuantumCodes Learn them?????? They're among the most useful coding skills to have.
@xfinnbar ok, nvm... i did. But it seems i cannot play a file through url... (i didnt download. Trying to play online)
the file must be on your local replit project. @QuantumCodes
@Coder100 no way by url?
nope
you can just install the mp3 file from the URL @QuantumCodes
@Coder100 can we do it while user is running code? Can u give an example? And can we delete it using code?
@Coder100 i was using a dictionary api... that also gives pronounciation of the word. I wanted to play that
you can use the requests module to download it through the dictionary API if there is one. Otherwise, no luck, maybe you could make it generate an mp3 instead of using dictionary. @QuantumCodes
tru @xfinnbar without CSS or JS, HTML is pretty basic and boring. No style.
@Coder100 so i did:
Now? Is this even correct? How do i play this?