Page 1 of 1

name$.duration returns runtime of entire dialog

Posted: Fri Sep 30, 2005 10:51 am
by pinkatron
From what I can tell, it looks like when we do a <record>, the variable name$.duration returns not the runtime of the recording, but of the entire dialog; that includes any prompts we have played, etc.

if name$.duration is only available in the <record> tag, I would think it should contain just the time of the recorded audio.

I'd like to use this to throw out any recordings that are below a threshold length (on the server side). If it doesn't give an accurate time of the recording itself, it is not useful to me.

IVR Programmer's Reference Manual- VXML 2.0 specifications

Posted: Fri Sep 30, 2005 3:32 pm
by support
Hello,

The name$.duration contains the length of the recording in milliseconds and name$.size contains the length of the recording in bytes. This conforms with the VoiceXML 2.0 specification and is stated as such in our IVR Programmer's Reference Manual.

Regards,
Plum Support