Ask coding questions

← Back to all posts
Audio in java
GeneralBaker

I wanted to make music play in java, but I am not sure where to start. I would be fine with a link to a document explaining how to do it or anything else that would help me understand.

Please note I am using pure java, not java swing or anything else.

Thanks!

Voters
Dominicl645
GeneralBaker
Comments
hotnewtop
Bookie0

check this out, you can make your own library for repl.it audio! :)

GeneralBaker

Perfect! Just what I needed. Thank you! @Bookie0

GeneralBaker

Whoops nvm this looks like it is only for javascript and python. I am trying to do this with java... @Bookie0

Bookie0

@GeneralBaker yea, check out how to make ur own library! :)

GeneralBaker

Ok didn't see that part but how do you do this:

To make this as light as possible on your repl's resources, audio files are played via a request system. To make a request, simply write to a named pype, /tmp/audio."

@Bookie0

RYANTADIPARTHI
GeneralBaker

I saw this but couldn't make it work :/ If you could explain more what this means that would be great! @RYANTADIPARTHI

RYANTADIPARTHI

@GeneralBaker you just have to mold the code i gave into your own, try reading closer. If it still doesn't help, just ping me.

Dominicl645

click the 3 dots next to files, and then click upload file, and then you can upload your .mp3 file or u can just put in the URL and it will take it that way.
https://docs.repl.it/tutorials/12-audio