AudioFileLength

(System Library)

Description: Returns the length of a RIFF format Wave file in seconds.
Returns: Numeric
Usage: Script only.
Related to:  
Function Groups: Speech and Sound
Format: System.AudioFileLength(Filename)
Parameters:  
Filename
Required. Any expression for the full name of a .wav file for which you want to find the audio play length.
Comments:

This module is a member of the System Library, and must therefore be prefaced by \System. as shown in the "Format" section.

If your application predates version 11.2, use the backslash notation rather than dot: \System\

Returns invalid if the file does not exist, or if the length cannot be determined.

Example:

  PlayingTime = System.AudioFileLength("AlarmMessage.wav");