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 Deprecated Methods Modifier and Type Method Description static intChannels(File wav)Determine the number of channels in a given WAV file.static Doubleduration(File wav)Deprecated.UseDuration(File)instead.static DoubleDuration(File wav)Determine the duration in seconds of the given WAV file.
-
-
-
Method Detail
-
duration
@Deprecated public static Double duration(File wav) throws UnsupportedAudioFileException, IOException
Deprecated.UseDuration(File)instead.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:
UnsupportedAudioFileExceptionIOException
-
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:
UnsupportedAudioFileExceptionIOException
-
Channels
public static int Channels(File wav) throws UnsupportedAudioFileException, IOException
Determine the number of channels in a given WAV file.- Parameters:
wav-- Returns:
- The number of channel in the given recording.
- Throws:
UnsupportedAudioFileExceptionIOException
-
-