From 7ce03d71ffec7da90693888fccfda75255a20106 Mon Sep 17 00:00:00 2001 From: ouoertheo Date: Fri, 21 Apr 2023 12:40:06 -0500 Subject: [PATCH] ensure history is unique to voice --- public/scripts/extensions/elevenlabstts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/extensions/elevenlabstts/index.js b/public/scripts/extensions/elevenlabstts/index.js index 9c122d307..627533f79 100644 --- a/public/scripts/extensions/elevenlabstts/index.js +++ b/public/scripts/extensions/elevenlabstts/index.js @@ -138,7 +138,7 @@ async function findTtsGenerationInHistory(message, voiceId) { for (const history of ttsHistory) { const text = history.text; const itemId = history.history_item_id; - if (message === text) { + if (message === text && history.voice_id == voiceId) { console.info(`Existing TTS history item ${itemId} found: ${text} `) return itemId; }