[voice] Fix default interpreter selection (#3458)

Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
This commit is contained in:
GiviMAD 2023-03-16 01:05:10 -07:00 committed by GitHub
parent 8a0fdfc173
commit 11e29c45f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -157,6 +157,13 @@ public class DialogContext {
return this;
}
public Builder withHLI(@Nullable HumanLanguageInterpreter service) {
if (service != null) {
this.hlis = List.of(service);
}
return this;
}
public Builder withHLIs(Collection<HumanLanguageInterpreter> services) {
return withHLIs(new ArrayList<>(services));
}

View File

@ -519,7 +519,7 @@ public class VoiceManagerImpl implements VoiceManager, ConfigOptionProvider, Dia
.withKS(this.getKS()) //
.withSTT(this.getSTT()) //
.withTTS(this.getTTS()) //
.withHLIs(this.getHLIs()) //
.withHLI(this.getHLI()) //
.withVoice(this.getDefaultVoice()) //
.withMelody(listeningMelody) //
.withListeningItem(listeningItem);