PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm working on a system that shall provide the capability of uploading audio files, such as mp3 and midis. After performing the upload, the system must extract an audio preview (a few secs of the audio file). Does anyone have any idea how to do this? I mean, is it possible?
yes, it's possible. There are many tools out there that can convert from mp3/midi to basic PCM sound format which is the easiest to extract sound data from.
Not really feasible in pure PHP, but if you're able to run commandline tools then it should be possible using something like SoX called from exec(). Bit of a guess though..