From 6cf897219e86d6c90e4d6bfb7db14cf4f2dfafec Mon Sep 17 00:00:00 2001 From: johnbenac Date: Fri, 5 Apr 2024 18:41:36 -0400 Subject: [PATCH] Added toastr messages to tts index file --- public/scripts/extensions/tts/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/scripts/extensions/tts/index.js b/public/scripts/extensions/tts/index.js index b86e42ede..b093e9053 100644 --- a/public/scripts/extensions/tts/index.js +++ b/public/scripts/extensions/tts/index.js @@ -465,6 +465,7 @@ async function processAudioJobQueue() { playAudioData(currentAudioJob); talkingAnimation(true); } catch (error) { + toastr.error(error.toString()); console.error(error); audioQueueProcessorReady = true; } @@ -579,6 +580,7 @@ async function processTtsQueue() { } tts(text, voiceId, char); } catch (error) { + toastr.error(error.toString()); console.error(error); currentTtsJob = null; } @@ -648,6 +650,7 @@ function onRefreshClick() { initVoiceMap(); updateVoiceMap(); }).catch(error => { + toastr.error(error.toString()); console.error(error); setTtsStatus(error, false); });