public class Recording extends Speech
Modifier and Type | Field and Description |
---|---|
static double |
ampRedThreshold |
static double |
ampYellowThreshold |
static AudioFormat |
audioFormat |
boolean |
isAmpClipped |
boolean |
isAmpWarning |
boolean |
isTempClipped |
AudioRecorder.BufferingRecorder |
recorder |
Constructor and Description |
---|
Recording(File filePath,
String basename)
Creates a new instance of Recording
|
Modifier and Type | Method and Description |
---|---|
void |
archiveLatestRecording()
Rename the file (basename).wav by appending a suffix.
|
void |
checkForAmpClipping() |
void |
checkForTempClipping() |
double |
getPeakAmplitude() |
boolean |
stopRecording()
Stop an ongoing recording before the time is up.
|
void |
timedRecord(TargetDataLine line,
AudioProcessor inlineFilter,
int millis)
Record for a given number of milliseconds and save as a wav file
|
getBasename, getDuration, getFile, getFileCount, getFilePath, play, play, setBasename, setFilePath, stopPlaying, updateFileCount
public static final AudioFormat audioFormat
public AudioRecorder.BufferingRecorder recorder
public boolean isAmpClipped
public boolean isTempClipped
public boolean isAmpWarning
public static final double ampYellowThreshold
public static final double ampRedThreshold
public void timedRecord(TargetDataLine line, AudioProcessor inlineFilter, int millis)
line
- lineinlineFilter
- inlineFiltermillis
- millispublic boolean stopRecording()
public void archiveLatestRecording()
public void checkForAmpClipping()
public void checkForTempClipping()
public double getPeakAmplitude()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.