All Entries Tagged With: "audio file"
PHP code to find Duration of an Audio File
Here is the PHP function to calculated duration of “wav” or “GSM” files First we open file using fopen. After we calculate the size of that file (inbytes) using filesize(). Then we unpack the audio File . unpack(‘vtype/vchannels/Vsamplerate/Vbytespersec/valignment/vbits’,$rawheader); This will return following array Array ( [type] => 1 [channels] => 2 [samplerate] => 44100 [bytespersec] [...]
R Arun Raj | Mar 18, 2009 | Comments 3



