AudioConfig Class
Definition
Represents audio input configuration used for specifying what type of input to use (microphone, file, stream). Updated in version 1.7.0
public class AudioConfig
- Inheritance
-
java.lang.ObjectCloseableAudioConfig
Methods
close() |
Explicitly frees any external resource attached to the object |
fromDefaultMicrophoneInput() |
Creates an AudioConfig object representing the default microphone on the system. |
fromDefaultSpeakerOutput() |
Creates an AudioConfig object representing the default speaker on the system. Added in version 1.7.0 |
fromMicrophoneInput(String deviceName) |
Creates an AudioConfig object representing a specific microphone on the system. |
fromStreamInput(AudioInputStream audioStream) |
Creates an AudioConfig object representing the specified stream. |
fromStreamInput(PullAudioInputStreamCallback callback) |
Creates an AudioConfig object representing the specified stream. |
fromStreamOutput(AudioOutputStream audioStream) |
Creates an AudioConfig object representing the specified stream. Added in version 1.7.0 |
fromWavFileInput(String fileName) |
Creates an AudioConfig object representing the specified file. |
fromWavFileOutput(String fileName) |
Creates an AudioConfig object representing the specified file. Added in version 1.7.0 |
setProperty(PropertyId id, String value) |
Sets the property by propertyId. |
setProperty(String name, String value) |
Sets a named property as value. |