Sometimes all you need to make your repl come to life is a little bit of audio, whether it's sound effects or music.
It's been requested many times that we add audio support to repl.it, so here it is.
We now have support for playing audio files!
Sadly, we couldn't get
.mp3 files working for now, but they are in the works.
Valid file types are
Their bit resolution must be one of
64; all of the common bit depths. The files can have as many audio channels as you would like, but they are combined into one channel regardles.
Please note that the files MUST BE AT 44,100 hertz or 44.1khz, as they are read at 44,100 hertz. Note that they will still play if they are not at 44.1khz, but they will be read at 44.1khz. If, for example, you have a file at 22.05khz it will be played 2x as fast as its native speed.
Currently, there are python and ts/js libs available, but if you want to create your own lib, the process is documented here.
Note that currently only exploreres can use audio.
How do I make a library? Go here.
They probably where so concentrated on getting it work that when they finished, they looked at the code and was like
dammit we forgot mp3
When they support everything but the only one that I like is missing. ........... (oh no mp3)