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 AudioFormatAudioFormat.AACstatic final AudioFormatAudioFormat.MP3static final AudioFormatAudioFormat.OGGstatic final AudioFormatAudioFormat.PCM_SIGNEDstatic final AudioFormatAudioFormat.WAVMethods 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.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 TypeMethodDescription@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 LongAudioSinkUtilsImpl.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 anAudioStreamcontaining 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 anAudioStreamcontaining the TTS results.