Package ipsk.audio.dsp
Class AudioClipDSPInfo
- java.lang.Object
-
- ipsk.audio.dsp.AudioClipDSPInfo
-
public class AudioClipDSPInfo extends java.lang.Object
- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.sound.sampled.AudioFormat
audioFormat
protected long
frameLength
static double
LN
protected double[]
maxAmplitudes
protected double[]
minAmplitudes
-
Constructor Summary
Constructors Constructor Description AudioClipDSPInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.sound.sampled.AudioFormat
getAudioFormat()
java.lang.Double[]
getEstimatedLogarithmSignalToBackgroundNoiseRatio()
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.long
getFrameLength()
double
getFrameLengthInSeconds()
double[]
getMaxAmplitudes()
double[]
getMaxLogarithmLevels()
double[]
getMaxNormalizedAmplitudes()
Returns maximal amplitudes in the range -1.0 ... 1.0 for each channeldouble[]
getMaxPeakLevels()
double[]
getMaxPower()
double[]
getMinAmplitudes()
Return minimal amplitudes in the range -0.5 ... 0.5 for each channeldouble[]
getMinLogarithmLevels()
double[]
getMinNormalizedAmplitudes()
Returns minimal amplitudes in the range -1.0 ... 1.0 for each channeldouble[]
getMinPeakLevels()
java.lang.Double[]
getMinSegmentalMeanPower()
double
getNormalizedMaxPeakLevelOfAllChannels()
double[]
getNormalizedMaxPeakLevels()
void
setAudioFormat(javax.sound.sampled.AudioFormat audioFormat)
void
setFrameLength(long frameLength)
void
setMaxAmplitudes(double[] maxAmplitudes)
void
setMaxPower(double[] maxPower)
void
setMinAmplitudes(double[] minAmplitudes)
void
setMinSegmentalMeanPower(java.lang.Double[] minSegmentalMeanPower)
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
-