Stabilize TTS voice reload and reconnect logging
This commit is contained in:
@@ -1199,7 +1199,8 @@ class TTSFactoryModule extends BaseModule {
|
||||
} else if (handler && typeof handler.configure === 'function') {
|
||||
handler.configure(voiceOptions);
|
||||
}
|
||||
if (voiceOptions.language && !voiceOptions.voice && handler && typeof handler.selectVoiceForLocale === 'function') {
|
||||
const handlerHasVoice = Boolean(this.getEffectiveVoiceId(handler));
|
||||
if (voiceOptions.language && !voiceOptions.voice && !handlerHasVoice && handler && typeof handler.selectVoiceForLocale === 'function') {
|
||||
handler.selectVoiceForLocale(voiceOptions.language);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user