Uses of Class
org.openhab.core.audio.AudioStream
Packages that use AudioStream
-
Uses of AudioStream in org.openhab.core.audio
Subclasses of AudioStream in org.openhab.core.audioModifier and TypeClassDescriptionclass
This is an implementation of anAudioStream
with known length and a clone method, which is based on a simple byte array.class
This is an AudioStream from an audio fileclass
Deprecated.class
This is an implementation of anAudioStream
used to transmit raw audio data to a sink.class
This is an AudioStream from a URL.Fields in org.openhab.core.audio with type parameters of type AudioStreamModifier and TypeFieldDescriptionprotected final Map
<AudioStream, CompletableFuture<@Nullable Void>> AudioSinkAsync.runnableByAudioStream
Methods in org.openhab.core.audio that return AudioStreamModifier and TypeMethodDescriptionStreamServed.audioStream()
Returns the value of theaudioStream
record component.AudioSource.getInputStream
(AudioFormat format) Gets an AudioStream for reading audio data in supported audio formatMethods in org.openhab.core.audio that return types with arguments of type AudioStreamModifier and TypeMethodDescriptionSet
<Class<? extends AudioStream>> AudioSink.getSupportedStreams()
Gets a set containing all supported audio stream formats@Nullable Class
<? extends @Nullable AudioStream> UnsupportedAudioStreamException.getUnsupportedAudioStreamClass()
Gets the unsupported audio stream class.Methods in org.openhab.core.audio with parameters of type AudioStreamModifier and TypeMethodDescriptionvoid
AudioManager.play
(@Nullable AudioStream audioStream) Plays the passed audio stream using the default audio sink.void
AudioManager.play
(@Nullable AudioStream audioStream, @Nullable String sinkId) Plays the passed audio stream on the given sink.void
AudioManager.play
(@Nullable AudioStream audioStream, @Nullable String sinkId, @Nullable PercentType volume) Plays the passed audio stream on the given sink.protected void
AudioSinkAsync.playbackFinished
(AudioStream audioStream) Will complete the future previously returned, allowing the core to run delayed task.void
AudioSink.process
(@Nullable AudioStream audioStream) Deprecated.void
AudioSinkAsync.process
(@Nullable AudioStream audioStream) void
AudioSinkSync.process
(@Nullable AudioStream audioStream) default CompletableFuture
<@Nullable Void> AudioSink.processAndComplete
(@Nullable AudioStream audioStream) Processes the passedAudioStream
, and returns a CompletableFuture that should complete when the sound is fully played.CompletableFuture
<@Nullable Void> AudioSinkAsync.processAndComplete
(@Nullable AudioStream audioStream) CompletableFuture
<@Nullable Void> AudioSinkSync.processAndComplete
(@Nullable AudioStream audioStream) protected abstract void
AudioSinkAsync.processAsynchronously
(@Nullable AudioStream audioStream) Processes the passedAudioStream
asynchronously.protected abstract void
AudioSinkSync.processSynchronously
(@Nullable AudioStream audioStream) Processes the passedAudioStream
and returns only when the playback is ended.AudioHTTPServer.serve
(AudioStream stream) Deprecated.AudioHTTPServer.serve
(AudioStream stream, int seconds) Deprecated.AudioHTTPServer.serve
(AudioStream stream, int seconds, boolean multiTimeStream) Creates a relative url for a givenAudioStream
where it can be requested one or multiple times within the given time frame.Constructors in org.openhab.core.audio with parameters of type AudioStreamModifierConstructorDescriptionStreamServed
(String url, AudioStream audioStream, AtomicInteger currentlyServedStream, AtomicLong timeout, boolean multiTimeStream, CompletableFuture<@Nullable Void> playEnd) Creates an instance of aStreamServed
record class.Constructor parameters in org.openhab.core.audio with type arguments of type AudioStreamModifierConstructorDescriptionUnsupportedAudioStreamException
(String message, @Nullable Class<? extends @Nullable AudioStream> unsupportedAudioStreamClass) Constructs a new exception with the specified detail message and unsupported format.UnsupportedAudioStreamException
(String message, @Nullable Class<? extends @Nullable AudioStream> unsupportedAudioStreamClass, @Nullable Throwable cause) Constructs a new exception with the specified detail message, unsupported format, and cause. -
Uses of AudioStream in org.openhab.core.audio.utils
Methods in org.openhab.core.audio.utils that return AudioStreamModifier and TypeMethodDescriptionToneSynthesizer.getStream
(List<ToneSynthesizer.Tone> tones) Synthesize a list ofToneSynthesizer.Tone
into a wav audio stream -
Uses of AudioStream in org.openhab.core.voice
Methods in org.openhab.core.voice that return AudioStreamModifier and TypeMethodDescriptionTTSCache.get
(org.openhab.core.voice.internal.cache.CachedTTSService tts, String text, Voice voice, AudioFormat requestedFormat) Returns anAudioStream
containing the TTS results.AbstractCachedTTSService.synthesize
(String text, Voice voice, AudioFormat requestedFormat) TTSService.synthesize
(String text, Voice voice, AudioFormat requestedFormat) Returns anAudioStream
containing the TTS results.Methods in org.openhab.core.voice with parameters of type AudioStreamModifier and TypeMethodDescriptionSTTService.recognize
(STTListener sttListener, AudioStream audioStream, Locale locale, Set<String> grammars) This method starts the process of speech recognition.default KSServiceHandle
KSEdgeService.spot
(KSListener ksListener, AudioStream audioStream, Locale locale, String keyword) KSService.spot
(KSListener ksListener, AudioStream audioStream, Locale locale, String keyword) This method starts the process of keyword spotting The audio data of the passedAudioStream
is passed to the keyword spotting engine.VoiceManager.transcribe
(AudioStream audioStream, @Nullable String sttId, @Nullable Locale locale) Run speech-to-text over the provided audio stream.
ClonableAudioStream
and/orSizeableAudioStream
to detect audio stream capabilities