Uses of Class
org.openhab.core.audio.AudioFormat
Packages that use AudioFormat
-
Uses of AudioFormat in org.openhab.core.audio
Fields in org.openhab.core.audio declared as AudioFormatModifier and TypeFieldDescriptionstatic final AudioFormat
AudioFormat.AAC
static final AudioFormat
AudioFormat.MP3
static final AudioFormat
AudioFormat.OGG
static final AudioFormat
AudioFormat.PCM_SIGNED
static final AudioFormat
AudioFormat.WAV
Methods in org.openhab.core.audio that return AudioFormatModifier and TypeMethodDescriptionstatic @Nullable AudioFormat
AudioFormat.getBestMatch
(Set<AudioFormat> inputs, Set<AudioFormat> outputs) Determines the best match between a list of audio formats supported by a source and a sink.abstract AudioFormat
AudioStream.getFormat()
Gets the supported audio formatByteArrayAudioStream.getFormat()
FileAudioStream.getFormat()
PipedAudioStream.getFormat()
URLAudioStream.getFormat()
static @Nullable AudioFormat
AudioFormat.getPreferredFormat
(Set<AudioFormat> audioFormats) Gets the first concrete AudioFormat in the passed set or a preferred one based on 16bit, 16KHz, big endian default@Nullable AudioFormat
UnsupportedAudioFormatException.getUnsupportedFormat()
Gets the unsupported formatMethods in org.openhab.core.audio that return types with arguments of type AudioFormatModifier and TypeMethodDescriptionAudioSink.getSupportedFormats()
Gets a set containing all supported audio formatsAudioSource.getSupportedFormats()
Obtain the audio formats supported by this AudioSourceMethods in org.openhab.core.audio with parameters of type AudioFormatModifier and TypeMethodDescriptionAudioSource.getInputStream
(AudioFormat format) Gets an AudioStream for reading audio data in supported audio formatboolean
AudioFormat.isCompatible
(@Nullable AudioFormat audioFormat) Determines if the passed AudioFormat is compatible with this AudioFormat.static PipedAudioStream.Group
PipedAudioStream.newGroup
(AudioFormat format) Creates a new piped stream group used to open new streams and write data to them.static PipedAudioStream.Group
PipedAudioStream.newGroup
(AudioFormat format, int pipeSize) Creates a new piped stream group used to open new streams and write data to them.Method parameters in org.openhab.core.audio with type arguments of type AudioFormatModifier and TypeMethodDescriptionstatic @Nullable AudioFormat
AudioFormat.getBestMatch
(Set<AudioFormat> inputs, Set<AudioFormat> outputs) Determines the best match between a list of audio formats supported by a source and a sink.static @Nullable AudioFormat
AudioFormat.getPreferredFormat
(Set<AudioFormat> audioFormats) Gets the first concrete AudioFormat in the passed set or a preferred one based on 16bit, 16KHz, big endian defaultConstructors in org.openhab.core.audio with parameters of type AudioFormatModifierConstructorDescriptionByteArrayAudioStream
(byte[] bytes, AudioFormat format) FileAudioStream
(File file, AudioFormat format) FileAudioStream
(File file, AudioFormat format, boolean isTemporaryFile) protected
Group
(AudioFormat format, int pipeSize) protected
PipedAudioStream
(AudioFormat format, int pipeSize, PipedOutputStream outputStream) UnsupportedAudioFormatException
(String message, @Nullable AudioFormat unsupportedFormat) Constructs a new exception with the specified detail message and unsupported format.UnsupportedAudioFormatException
(String message, @Nullable AudioFormat unsupportedFormat, @Nullable Throwable cause) Constructs a new exception with the specified detail message, unsupported format, and cause. -
Uses of AudioFormat in org.openhab.core.audio.utils
Methods in org.openhab.core.audio.utils that return AudioFormatModifier and TypeMethodDescriptionstatic AudioFormat
AudioWaveUtils.parseWavFormat
(InputStream inputStream) Methods in org.openhab.core.audio.utils that return types with arguments of type AudioFormatMethods in org.openhab.core.audio.utils with parameters of type AudioFormatModifier and TypeMethodDescription@Nullable Long
AudioSinkUtils.transferAndAnalyzeLength
(InputStream in, OutputStream out, AudioFormat audioFormat) Transfers data from an input stream to an output stream and computes on the fly its duration@Nullable Long
AudioSinkUtilsImpl.transferAndAnalyzeLength
(InputStream in, OutputStream out, AudioFormat audioFormat) Constructors in org.openhab.core.audio.utils with parameters of type AudioFormat -
Uses of AudioFormat in org.openhab.core.voice
Methods in org.openhab.core.voice that return types with arguments of type AudioFormatModifier and TypeMethodDescriptionKSService.getSupportedFormats()
Obtain the audio formats supported by this KSServiceSTTService.getSupportedFormats()
Obtain the audio formats supported by this STTServiceTTSService.getSupportedFormats()
Obtain the audio formats supported by this TTSServiceMethods in org.openhab.core.voice with parameters of type AudioFormatModifier and TypeMethodDescriptionTTSCache.get
(org.openhab.core.voice.internal.cache.CachedTTSService tts, String text, Voice voice, AudioFormat requestedFormat) Returns anAudioStream
containing the TTS results.AbstractCachedTTSService.getCacheKey
(String text, Voice voice, AudioFormat requestedFormat) AbstractCachedTTSService.synthesize
(String text, Voice voice, AudioFormat requestedFormat) TTSService.synthesize
(String text, Voice voice, AudioFormat requestedFormat) Returns anAudioStream
containing the TTS results.