[voice] Fix wrong check for defaultSTT (#2714)

Fix #2696

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
pull/2718/head
lolodomo 2022-01-29 23:43:49 +01:00 committed by GitHub
parent 16bc9321f1
commit a4c39d5ba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ public class VoiceManagerImpl implements VoiceManager, ConfigOptionProvider {
@Override
public @Nullable STTService getSTT() {
STTService stt = null;
if (defaultTTS != null) {
if (defaultSTT != null) {
stt = sttServices.get(defaultSTT);
if (stt == null) {
logger.warn("Default STT service '{}' not available!", defaultSTT);