Uses of Class
org.openhab.core.audio.AudioFormat
-
Uses of AudioFormat in org.openhab.core.audio
Modifier 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
Modifier 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 formatModifier and TypeMethodDescriptionAudioSink.getSupportedFormats()
Gets a set containing all supported audio formatsAudioSource.getSupportedFormats()
Obtain the audio formats supported by this AudioSourceModifier 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.Modifier 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 defaultModifierConstructorDescriptionByteArrayAudioStream
(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
Modifier and TypeMethodDescriptionstatic AudioFormat
AudioWaveUtils.parseWavFormat
(InputStream inputStream) Modifier 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) -
Uses of AudioFormat in org.openhab.core.voice
Modifier 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 TTSServiceModifier 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.