Tag: 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

Tagged with: , ,
Top