Package htw.ai.dln
Class Apt
- java.lang.Object
-
- htw.ai.dln.Apt
-
public class Apt extends java.lang.Object
- Since:
- : 21.02.21
- Version:
- : 1.0
- Author:
- : Enrico Gamil Toros Project name : apt-decoder
-
-
Field Summary
Fields Modifier and Type Field Description byte[]
AUDIO_BYTES
javax.sound.sampled.AudioFormat
AUDIO_FORMAT
static float
INTERMEDIATE_SAMPLE_RATE
static int
LINE_LENGTH
-
Constructor Summary
Constructors Constructor Description Apt(java.io.File audioFile)
Create APT Object Audio File should have a sample rate of 20800
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
INTERMEDIATE_SAMPLE_RATE
public static final float INTERMEDIATE_SAMPLE_RATE
- See Also:
- Constant Field Values
-
LINE_LENGTH
public static final int LINE_LENGTH
- See Also:
- Constant Field Values
-
AUDIO_FORMAT
public final javax.sound.sampled.AudioFormat AUDIO_FORMAT
-
AUDIO_BYTES
public final byte[] AUDIO_BYTES
-
-
Constructor Detail
-
Apt
public Apt(@NotNull java.io.File audioFile) throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException, UnsupportedAudioSampleRateException, UnsupportedAudioChannelSizeException
Create APT Object Audio File should have a sample rate of 20800- Parameters:
audioFile
- Audio Input File- Throws:
javax.sound.sampled.UnsupportedAudioFileException
- if the File does not point to valid audio file data recognized by the systemjava.io.IOException
- if an I/O exception occursjava.lang.IllegalArgumentException
- if file does not exist or JVM couldn't read fileUnsupportedAudioSampleRateException
- if file has an unsupported audio sample rateUnsupportedAudioChannelSizeException
- if file has more then 2 channels
-
-