Package htw.ai.dln

Class Apt


  • public class Apt
    extends java.lang.Object
    Since:
    : 21.02.21
    Version:
    : 1.0
    Author:
    : Enrico Gamil Toros Project name : apt-decoder
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • INTERMEDIATE_SAMPLE_RATE

        public static final float INTERMEDIATE_SAMPLE_RATE
        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 system
        java.io.IOException - if an I/O exception occurs
        java.lang.IllegalArgumentException - if file does not exist or JVM couldn't read file
        UnsupportedAudioSampleRateException - if file has an unsupported audio sample rate
        UnsupportedAudioChannelSizeException - if file has more then 2 channels
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object