AudioConfig Class
Definition
Represents audio input or output configuration. Audio input can be from a microphone, file, or input stream. Audio output can be to a speaker, audio file output in WAV format, or output stream. Note: close() must be called in order to release underlying resources held by the object. Updated in version 1.7.0
public class AudioConfig
- Inheritance
-
java.lang.ObjectAutoCloseableAudioConfig
Methods
close() |
Explicitly frees any external resource attached to the object |
fromDefaultMicrophoneInput() |
Creates an AudioConfig object representing the default microphone on the system. |
fromDefaultMicrophoneInput(AudioProcessingOptions audioProcessingOptions) |
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. |
fromMicrophoneInput(String deviceName, AudioProcessingOptions audioProcessingOptions) |
Creates an AudioConfig object representing a specific microphone on the system. |
fromSpeakerOutput(String deviceName) |
Creates an AudioConfig object representing a specific speaker on the system. |
fromStreamInput(AudioInputStream audioStream) |
Creates an AudioConfig object representing the specified stream. |
fromStreamInput(AudioInputStream audioStream, AudioProcessingOptions audioProcessingOptions) |
Creates an AudioConfig object representing the specified stream. |
fromStreamInput(PullAudioInputStreamCallback callback) |
Creates an AudioConfig object representing the specified stream. |
fromStreamInput(PullAudioInputStreamCallback callback, AudioProcessingOptions audioProcessingOptions) |
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. |
fromWavFileInput(String fileName, AudioProcessingOptions audioProcessingOptions) |
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 |
getAudioProcessingOptions() |
Returns an AudioProcessingOptions object which contains the parameters used for audio processing. |
setProperty(PropertyId id, String value) |
Sets the property by propertyId. |
setProperty(String name, String value) |
Sets a named property as value. |