Page 1 of 1

Audio preview extraction

Posted: Thu May 25, 2006 9:42 am
by aerciofilho
Hi all,

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?

Thanks in advance.

AƩrcio

Posted: Thu May 25, 2006 10:00 am
by feyd
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.

Posted: Thu May 25, 2006 10:03 am
by onion2k
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..