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

Parameters Return Value Remark Example
  1. $size = wave.datasize("welcome.wav", "GSM")
    msgbox($size)
   2.  $size = wave.datasize("welcome.wav")
        msgbox($size)
  • 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")
        msgbox($size)
  • Returns size of the wave file if welcome.wav is converted to PCM16 _8Khz format.