mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 21:31:53 +01:00
[voice] Fix default interpreter selection (#3458)
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
This commit is contained in:
parent
8a0fdfc173
commit
11e29c45f7
@ -157,6 +157,13 @@ public class DialogContext {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Builder withHLI(@Nullable HumanLanguageInterpreter service) {
|
||||||
|
if (service != null) {
|
||||||
|
this.hlis = List.of(service);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public Builder withHLIs(Collection<HumanLanguageInterpreter> services) {
|
public Builder withHLIs(Collection<HumanLanguageInterpreter> services) {
|
||||||
return withHLIs(new ArrayList<>(services));
|
return withHLIs(new ArrayList<>(services));
|
||||||
}
|
}
|
||||||
|
@ -519,7 +519,7 @@ public class VoiceManagerImpl implements VoiceManager, ConfigOptionProvider, Dia
|
|||||||
.withKS(this.getKS()) //
|
.withKS(this.getKS()) //
|
||||||
.withSTT(this.getSTT()) //
|
.withSTT(this.getSTT()) //
|
||||||
.withTTS(this.getTTS()) //
|
.withTTS(this.getTTS()) //
|
||||||
.withHLIs(this.getHLIs()) //
|
.withHLI(this.getHLI()) //
|
||||||
.withVoice(this.getDefaultVoice()) //
|
.withVoice(this.getDefaultVoice()) //
|
||||||
.withMelody(listeningMelody) //
|
.withMelody(listeningMelody) //
|
||||||
.withListeningItem(listeningItem);
|
.withListeningItem(listeningItem);
|
||||||
|
Loading…
Reference in New Issue
Block a user