Uses of Class
org.openhab.core.audio.AudioStream
-
Uses of AudioStream in org.openhab.core.audio
Modifier 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 AudioStream from a URL.Modifier and TypeFieldDescriptionprotected final Map<AudioStream,
CompletableFuture<@Nullable Void>> AudioSinkAsync.runnableByAudioStream
Modifier and TypeMethodDescriptionStreamServed.audioStream()
Returns the value of theaudioStream
record component.AudioSource.getInputStream
(AudioFormat format) Gets an AudioStream for reading audio data in supported audio formatModifier 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.Modifier 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.ModifierConstructorDescriptionStreamServed
(String url, AudioStream audioStream, AtomicInteger currentlyServedStream, AtomicLong timeout, boolean multiTimeStream, CompletableFuture<@Nullable Void> playEnd) Creates an instance of aStreamServed
record class.ModifierConstructorDescriptionUnsupportedAudioStreamException
(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
Modifier 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
Modifier 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.Modifier 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.
ClonableAudioStream
and/orSizeableAudioStream
to detect audio stream capabilities