diff --git a/apps/readest-app/src/services/tts/TTSController.ts b/apps/readest-app/src/services/tts/TTSController.ts index eeec956d..30674c9f 100644 --- a/apps/readest-app/src/services/tts/TTSController.ts +++ b/apps/readest-app/src/services/tts/TTSController.ts @@ -155,7 +155,10 @@ export class TTSController extends EventTarget { async setVoice(voiceId: string) { this.state = 'setvoice-paused'; this.ttsClient.stop(); - if (this.ttsEdgeVoices.find((voice) => voice.id === voiceId && !voice.disabled)) { + const useEdgeTTS = !!this.ttsEdgeVoices.find( + (voice) => (voiceId === '' || voice.id === voiceId) && !voice.disabled, + ); + if (useEdgeTTS) { this.ttsClient = this.ttsEdgeClient; } else { this.ttsClient = this.ttsWebClient;