$size = wave.datasize ("<Wavefile>","[Compr]")
Online IVR Tutorial

Parameters Return Value Remark Example
  1. $size = wave.datasize("welcome.wav", "GSM")
   2.  $size = wave.datasize("welcome.wav")
  • Returns the size of the wave file in current format.
    The data size can be retrieved quickly if the data type is already known/PCM16.
   3.  $size = wave.datasize("welcome.wav","PCM16_8KHz")
  • Returns size of the wave file if welcome.wav is converted to PCM16 _8Khz format.