Package nzilbb.media.wav
Class WAV
- java.lang.Object
-
- nzilbb.media.wav.WAV
-
public class WAV extends Object
Utility functions for WAV files.- Author:
- Robert Fromont robert@fromont.net.nz
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Double
duration(File wav)
Determine the duration in seconds of the given WAV file.
-
-
-
Method Detail
-
duration
public static Double duration(File wav) throws UnsupportedAudioFileException, IOException
Determine the duration in seconds of the given WAV file.- Parameters:
wav
-- Returns:
- The duration in seconds of the given file, or null if the duration couldn't be determined.
- Throws:
UnsupportedAudioFileException
IOException
-
-