public class AudioRecorder extends Object
AudioRecorder: Recording to an audio file (advanced version)
Purpose: This program opens two lines: one for recording and one for playback. In an infinite loop, it reads data from the recording line and writes them to the playback line. You can use this to measure the delays inside Java Sound: Speak into the microphone and wait untill you hear yourself in the speakers. This can be used to experience the effect of changing the buffer sizes: use the '-e' and '-i' options. You will notice that the delays change, too.
Usage: java
Parameters
Bugs, limitations: There is no way to stop the program besides brute force (ctrl-C). There is no way to set the audio quality.
Source code AudioRecorder.java, AudioCommon.java, gnu.getopt.Getopt
Modifier and Type | Class and Description |
---|---|
static class |
AudioRecorder.AbstractRecorder |
static class |
AudioRecorder.BufferingRecorder |
static class |
AudioRecorder.DirectRecorder |
static interface |
AudioRecorder.Recorder |
Constructor and Description |
---|
AudioRecorder() |
public static void main(String[] args)
args
- argsCopyright © 2000–2016 DFKI GmbH. All rights reserved.