Class AudioClipDSPInfo


  • public class AudioClipDSPInfo
    extends java.lang.Object
    Author:
    K.Jaensch, klausj@phonetik.uni-muenchen.de
    • Field Detail

      • LN

        public static double LN
      • audioFormat

        protected javax.sound.sampled.AudioFormat audioFormat
      • minAmplitudes

        protected double[] minAmplitudes
      • maxAmplitudes

        protected double[] maxAmplitudes
      • frameLength

        protected long frameLength
    • Constructor Detail

      • AudioClipDSPInfo

        public AudioClipDSPInfo()
    • Method Detail

      • getFrameLength

        public long getFrameLength()
      • setFrameLength

        public void setFrameLength​(long frameLength)
      • getFrameLengthInSeconds

        public double getFrameLengthInSeconds()
      • getAudioFormat

        public javax.sound.sampled.AudioFormat getAudioFormat()
      • setAudioFormat

        public void setAudioFormat​(javax.sound.sampled.AudioFormat audioFormat)
      • getNormalizedMaxPeakLevelOfAllChannels

        public double getNormalizedMaxPeakLevelOfAllChannels()
      • getNormalizedMaxPeakLevels

        public double[] getNormalizedMaxPeakLevels()
      • getMaxPeakLevels

        public double[] getMaxPeakLevels()
      • getMinPeakLevels

        public double[] getMinPeakLevels()
      • getMinNormalizedAmplitudes

        public double[] getMinNormalizedAmplitudes()
        Returns minimal amplitudes in the range -1.0 ... 1.0 for each channel
        Returns:
        normalized minimal amplitudes
      • getMaxNormalizedAmplitudes

        public double[] getMaxNormalizedAmplitudes()
        Returns maximal amplitudes in the range -1.0 ... 1.0 for each channel
        Returns:
        normalized maximal amplitudes
      • getMinAmplitudes

        public double[] getMinAmplitudes()
        Return minimal amplitudes in the range -0.5 ... 0.5 for each channel
        Returns:
        minimal amplitudes
      • setMinAmplitudes

        public void setMinAmplitudes​(double[] minAmplitudes)
        Parameters:
        minAmplitudes - the minAmplitudes to set
      • getMaxAmplitudes

        public double[] getMaxAmplitudes()
        Returns:
        the maxAmplitudes
      • setMaxAmplitudes

        public void setMaxAmplitudes​(double[] maxAmplitudes)
        Parameters:
        maxAmplitudes - the maxAmplitudes to set
      • getMaxLogarithmLevels

        public double[] getMaxLogarithmLevels()
      • getMinLogarithmLevels

        public double[] getMinLogarithmLevels()
      • getEstimatedLogarithmSignalToBackgroundNoiseRatio

        public java.lang.Double[] getEstimatedLogarithmSignalToBackgroundNoiseRatio()
      • getEstimatedSignalToBackgroundNoiseRatio

        public java.lang.Double[] getEstimatedSignalToBackgroundNoiseRatio()
        Returns an estimated value for the ratio between the maximum power and the minimum mean power in small window (typical 10ms) measured in the audio clip. We use this value to distinguish different recording environments of channels.
        Returns:
        estimated SNR value
      • getMinSegmentalMeanPower

        public java.lang.Double[] getMinSegmentalMeanPower()
      • setMinSegmentalMeanPower

        public void setMinSegmentalMeanPower​(java.lang.Double[] minSegmentalMeanPower)
      • getMaxPower

        public double[] getMaxPower()
      • setMaxPower

        public void setMaxPower​(double[] maxPower)
      • toString

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