ComputerCraft Forums

ComputerCraft => Programs => Topic started by: GroupXyz on Feb 04, 2024, 09:46 PM

Title: Audio Player for Computercraft
Post by: GroupXyz on Feb 04, 2024, 09:46 PM
Hello, here is my audioplayer script!

You will require a computer and a speaker placed next to it, then run this command:
pastebin get https://pastebin.com/q9M7z9nz audioplayer
Now run audioplayer and it will generate a folder called "sounds/" where you place your audiofiles.
After you added audiofiles (see below), audioplayer will list them and give you the option to play them.

Important:
To add new audiofiles, you have to convert them into DFPWM format which these websites do for example (please note, these websites are not mine and i am not responsible for changes with them):

https://music.madefor.cc/
https://remote.craftos-pc.cc/music/

Now copy the output link and do:
wget (link) (filename)
You can just move it into the sounds/ folder and it will be detected by the script when you start it.

Update-history:
2.0: Added repeat option
Title: Audio Player for Computercraft
Post by: QuickMuffin8782 on Feb 11, 2024, 04:39 AM
Quote from: GroupXyz on Feb 04, 2024, 09:46 PMImportant:
To add new audiofiles, you have to convert them into DFPWM format which this website does for example (please note, this website is not mine and i am not responsible for changes with it):

https://remote.craftos-pc.cc/music/

Pretty nice, however there is one website dedicated for converting. (It's open source though I've downloaded it via HTTTrack for offline use) It's located here (https://music.madefor.cc/) if you are wondering.
Title: Audio Player for Computercraft
Post by: GroupXyz on Feb 11, 2024, 11:33 AM
Quote from: QuickMuffin8782 on Feb 11, 2024, 04:39 AMPretty nice, however there is one website dedicated for converting. (It's open source though I've downloaded it via HTTTrack for offline use) It's located here (https://music.madefor.cc/) if you are wondering.

Thank you, i will include it