Uses of Class
org.openhab.core.audio.AudioFormat
Packages that use AudioFormat
Package
Description
-
Uses of AudioFormat in org.openhab.core.audio
Fields in org.openhab.core.audio declared as AudioFormatModifier and TypeFieldDescriptionstatic final AudioFormatAudioFormat.AACGeneric AAC format without any further constraintsstatic final AudioFormatAudioFormat.FLACGeneric FLAC format without any further constraintsstatic final AudioFormatAudioFormat.MP3Generic MP3 format without any further constraintsstatic final AudioFormatAudioFormat.OGGGeneric OGG format without any further constraintsstatic final AudioFormatAudioFormat.PCM_ALAWGeneric PCM A-law format (no container) without any further constraintsstatic final AudioFormatAudioFormat.PCM_SIGNEDGeneric PCM signed format (no container) without any further constraintsstatic final AudioFormatAudioFormat.PCM_ULAWGeneric PCM μ-law format (no container) without any further constraintsstatic final AudioFormatAudioFormat.PCM_UNSIGNEDGeneric PCM unsigned format (no container) without any further constraintsstatic final AudioFormatAudioFormat.WAVGeneric WAV format without any further constraintsMethods in org.openhab.core.audio that return AudioFormatModifier and TypeMethodDescriptionstatic @Nullable AudioFormatAudioFormat.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 AudioFormatAudioStream.getFormat()Gets the supported audio formatByteArrayAudioStream.getFormat()FileAudioStream.getFormat()PipedAudioStream.getFormat()URLAudioStream.getFormat()static @Nullable AudioFormatAudioFormat.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 AudioFormatUnsupportedAudioFormatException.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 formatbooleanAudioFormat.isCompatible(@Nullable AudioFormat audioFormat) Determines if the passed AudioFormat is compatible with this AudioFormat.static PipedAudioStream.GroupPipedAudioStream.newGroup(AudioFormat format) Creates a new piped stream group used to open new streams and write data to them.static PipedAudioStream.GroupPipedAudioStream.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 AudioFormatAudioFormat.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 AudioFormatAudioFormat.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) protectedGroup(AudioFormat format, int pipeSize) protectedPipedAudioStream(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.transcode
Fields in org.openhab.core.audio.transcode with type parameters of type AudioFormatModifier and TypeFieldDescriptionstatic final Set<AudioFormat> AudioTranscoder.SUPPORTED_SOURCE_FORMATSstatic final Set<AudioFormat> AudioTranscoder.SUPPORTED_TARGET_FORMATSMethods in org.openhab.core.audio.transcode that return types with arguments of type AudioFormatModifier and TypeMethodDescriptionstatic Set<AudioFormat> AudioTranscoder.getSupportedSourceFormats()Gets the set of general audio formats supported for decoding (reading as source stream).static Set<AudioFormat> AudioTranscoder.getSupportedTargetFormats()Gets the set of general audio formats supported for encoding (writing as target stream).Methods in org.openhab.core.audio.transcode with parameters of type AudioFormatModifier and TypeMethodDescriptionstatic booleanAudioTranscoder.canTranscode(@Nullable AudioFormat sourceFormat, @Nullable AudioFormat targetFormat) Checks whether this transcoder can transcode from the source format to the target format.static booleanAudioTranscoder.isSourceSupported(@Nullable AudioFormat format) Checks if the given audio format can be decoded from a source stream.static booleanAudioTranscoder.isSupported(@Nullable AudioFormat format) Checks if the given audio format is supported by this transcoder (either for decoding or encoding).static booleanAudioTranscoder.isTargetSupported(@Nullable AudioFormat format) Checks if the given audio format can be encoded to a target stream.static AudioStreamAudioTranscoder.transcode(AudioStream source, AudioFormat targetFormat) Transcodes the given audio stream to the requested target format.static AudioStreamAudioTranscoder.transcode(AudioStream source, AudioFormat targetFormat, boolean requireSizeable) Transcodes the given audio stream to the requested target format.static AudioStreamAudioTranscoder.transcode(AudioStream source, AudioFormat targetFormat, Set<Class<? extends AudioStream>> supportedStreams) Transcodes the given audio stream to the requested target format, taking into account supported stream types.Method parameters in org.openhab.core.audio.transcode with type arguments of type AudioFormatModifier and TypeMethodDescriptionstatic AudioStreamAudioTranscoder.transcodeToSupported(AudioStream source, Set<AudioFormat> candidateFormats) Transcodes the audio stream to a format supported by candidateFormats (e.g. from an AudioSink).static AudioStreamAudioTranscoder.transcodeToSupported(AudioStream source, Set<AudioFormat> candidateFormats, boolean requireSizeable) Transcodes the audio stream to a format supported by candidateFormats (e.g. from an AudioSink).static AudioStreamAudioTranscoder.transcodeToSupported(AudioStream source, Set<AudioFormat> candidateFormats, Set<Class<? extends AudioStream>> supportedStreams) Transcodes the audio stream to a format and stream type supported by candidateFormats and supportedStreams (e.g. -
Uses of AudioFormat in org.openhab.core.audio.utils
Methods in org.openhab.core.audio.utils that return AudioFormatModifier and TypeMethodDescriptionstatic AudioFormatAudioWaveUtils.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 TypeMethodDescriptiondefault @Nullable LongAudioSinkUtils.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 LongAudioSinkUtils.transferAndAnalyzeLength(InputStream in, OutputStream out, AudioFormat audioFormat, boolean flush) Transfers data from an input stream to an output stream and computes on the fly its duration@Nullable LongAudioSinkUtilsImpl.transferAndAnalyzeLength(InputStream in, OutputStream out, AudioFormat audioFormat, boolean flush) Constructors in org.openhab.core.audio.utils with parameters of type AudioFormat -
Uses of AudioFormat in org.openhab.core.voice.dialog.trigger.ks
Methods in org.openhab.core.voice.dialog.trigger.ks that return types with arguments of type AudioFormatModifier and TypeMethodDescriptionKSService.getSupportedFormats()Get the audio formats supported by this KSService -
Uses of AudioFormat in org.openhab.core.voice.stt
Methods in org.openhab.core.voice.stt that return types with arguments of type AudioFormatModifier and TypeMethodDescriptionSTTService.getSupportedFormats()Get the audio formats supported by this STTService. -
Uses of AudioFormat in org.openhab.core.voice.tts
Methods in org.openhab.core.voice.tts that return types with arguments of type AudioFormatModifier and TypeMethodDescriptionTTSService.getSupportedFormats()Obtain the audio formats supported by this TTSServiceMethods in org.openhab.core.voice.tts with parameters of type AudioFormatModifier and TypeMethodDescriptionTTSCache.get(CachedTTSService tts, String text, Voice voice, AudioFormat requestedFormat) Returns anAudioStreamcontaining the TTS results.AbstractCachedTTSService.getCacheKey(String text, Voice voice, AudioFormat requestedFormat) CachedTTSService.getCacheKey(String text, Voice voice, AudioFormat requestedFormat) Construct a uniquely identifying string for the request.AbstractCachedTTSService.synthesize(String text, Voice voice, AudioFormat requestedFormat) TTSService.synthesize(String text, Voice voice, AudioFormat requestedFormat) Returns anAudioStreamcontaining the TTS results.CachedTTSService.synthesizeForCache(String text, Voice voice, AudioFormat requestedFormat) Returns anAudioStreamcontaining the TTS results.