diff --git a/bundles/org.openhab.core.voice/src/main/java/org/openhab/core/voice/internal/DialogProcessor.java b/bundles/org.openhab.core.voice/src/main/java/org/openhab/core/voice/internal/DialogProcessor.java index 8b0a7b5198..1d04db7a77 100644 --- a/bundles/org.openhab.core.voice/src/main/java/org/openhab/core/voice/internal/DialogProcessor.java +++ b/bundles/org.openhab.core.voice/src/main/java/org/openhab/core/voice/internal/DialogProcessor.java @@ -160,12 +160,8 @@ public class DialogProcessor implements KSListener, STTListener { private void closeStreamKS() { AudioStream stream = streamKS; if (stream != null) { - // Due to the current implementation of JavaSoundAudioSource, the stream is not closed as it would - // lead to problem - // try { - // stream.close(); - // } catch (IOException e1) { - // } + // Due to an issue in JavaSoundAudioSource ( https://github.com/openhab/openhab-core/issues/2702 ) + // we do not try closing the stream streamKS = null; } } @@ -182,12 +178,8 @@ public class DialogProcessor implements KSListener, STTListener { private void closeStreamSTT() { AudioStream stream = streamSTT; if (stream != null) { - // Due to the current implementation of JavaSoundAudioSource, the stream is not closed as it would - // lead to problem - // try { - // stream.close(); - // } catch (IOException e1) { - // } + // Due to an issue in JavaSoundAudioSource ( https://github.com/openhab/openhab-core/issues/2702 ) + // we do not try closing the stream streamSTT = null; } } diff --git a/bundles/org.openhab.core.voice/src/main/java/org/openhab/core/voice/internal/VoiceConsoleCommandExtension.java b/bundles/org.openhab.core.voice/src/main/java/org/openhab/core/voice/internal/VoiceConsoleCommandExtension.java index ad52a4923a..f5741f98a3 100644 --- a/bundles/org.openhab.core.voice/src/main/java/org/openhab/core/voice/internal/VoiceConsoleCommandExtension.java +++ b/bundles/org.openhab.core.voice/src/main/java/org/openhab/core/voice/internal/VoiceConsoleCommandExtension.java @@ -77,7 +77,7 @@ public class VoiceConsoleCommandExtension extends AbstractConsoleCommandExtensio return List.of(buildCommandUsage(SUBCMD_SAY + " ", "speaks a text"), buildCommandUsage(SUBCMD_INTERPRET + " ", "interprets a human language command"), buildCommandUsage(SUBCMD_VOICES, "lists available voices of the TTS services"), - buildCommandUsage(SUBCMD_START_DIALOG + " [ ]", + buildCommandUsage(SUBCMD_START_DIALOG + " [ [ [ []]]]", "start a new dialog processing using the default services or the services identified with provided arguments"), buildCommandUsage(SUBCMD_STOP_DIALOG + " []", "stop the dialog processing for the default audio source or the audio source identified with provided argument"));