Signed-off-by: Laurent Garnier <lg.hc@free.fr>pull/2737/head
parent
8c16cb6e93
commit
3e94dd6e30
|
@ -160,12 +160,8 @@ public class DialogProcessor implements KSListener, STTListener {
|
||||||
private void closeStreamKS() {
|
private void closeStreamKS() {
|
||||||
AudioStream stream = streamKS;
|
AudioStream stream = streamKS;
|
||||||
if (stream != null) {
|
if (stream != null) {
|
||||||
// Due to the current implementation of JavaSoundAudioSource, the stream is not closed as it would
|
// Due to an issue in JavaSoundAudioSource ( https://github.com/openhab/openhab-core/issues/2702 )
|
||||||
// lead to problem
|
// we do not try closing the stream
|
||||||
// try {
|
|
||||||
// stream.close();
|
|
||||||
// } catch (IOException e1) {
|
|
||||||
// }
|
|
||||||
streamKS = null;
|
streamKS = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -182,12 +178,8 @@ public class DialogProcessor implements KSListener, STTListener {
|
||||||
private void closeStreamSTT() {
|
private void closeStreamSTT() {
|
||||||
AudioStream stream = streamSTT;
|
AudioStream stream = streamSTT;
|
||||||
if (stream != null) {
|
if (stream != null) {
|
||||||
// Due to the current implementation of JavaSoundAudioSource, the stream is not closed as it would
|
// Due to an issue in JavaSoundAudioSource ( https://github.com/openhab/openhab-core/issues/2702 )
|
||||||
// lead to problem
|
// we do not try closing the stream
|
||||||
// try {
|
|
||||||
// stream.close();
|
|
||||||
// } catch (IOException e1) {
|
|
||||||
// }
|
|
||||||
streamSTT = null;
|
streamSTT = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@ public class VoiceConsoleCommandExtension extends AbstractConsoleCommandExtensio
|
||||||
return List.of(buildCommandUsage(SUBCMD_SAY + " <text>", "speaks a text"),
|
return List.of(buildCommandUsage(SUBCMD_SAY + " <text>", "speaks a text"),
|
||||||
buildCommandUsage(SUBCMD_INTERPRET + " <command>", "interprets a human language command"),
|
buildCommandUsage(SUBCMD_INTERPRET + " <command>", "interprets a human language command"),
|
||||||
buildCommandUsage(SUBCMD_VOICES, "lists available voices of the TTS services"),
|
buildCommandUsage(SUBCMD_VOICES, "lists available voices of the TTS services"),
|
||||||
buildCommandUsage(SUBCMD_START_DIALOG + " [<source> <interpreter> <sink> <keyword>]",
|
buildCommandUsage(SUBCMD_START_DIALOG + " [<source> [<interpreter> [<sink> [<keyword>]]]]",
|
||||||
"start a new dialog processing using the default services or the services identified with provided arguments"),
|
"start a new dialog processing using the default services or the services identified with provided arguments"),
|
||||||
buildCommandUsage(SUBCMD_STOP_DIALOG + " [<source>]",
|
buildCommandUsage(SUBCMD_STOP_DIALOG + " [<source>]",
|
||||||
"stop the dialog processing for the default audio source or the audio source identified with provided argument"));
|
"stop the dialog processing for the default audio source or the audio source identified with provided argument"));
|
||||||
|
|
Loading…
Reference in New Issue