The
Audio.length function only supports audio recorded as AAC encoded audio in an mp4 container (.m4a). This is the format used for audio recorded by CSPro so it will work correctly for audio recorded using the
Audio.record or
Audio.recordInteractive. The length function will return
default for audio files recorded by other tools that use a different format such as mp3 or wav.