From f1464ec29ddb885644b215b1d1434905a7707096 Mon Sep 17 00:00:00 2001 From: erew123 <35898566+erew123@users.noreply.github.com> Date: Sun, 22 Sep 2024 13:30:17 +0100 Subject: [PATCH] Fixed Regenerate with RVC --- system/tts_generator/tts_generator.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/tts_generator/tts_generator.html b/system/tts_generator/tts_generator.html index 8f3dcd1..6cecaa2 100644 --- a/system/tts_generator/tts_generator.html +++ b/system/tts_generator/tts_generator.html @@ -1199,9 +1199,11 @@ const fileNameParts = fileName.split('_'); const customFileName = fileNameParts[0]; const chunkIndex = parseInt(fileNameParts[1], 10); + const RVCVoice = document.getElementById("RVC_voice_gen").value; + const RVCPitch = document.getElementById("RVC_voice_pitch").value; // Call the TTS generation with the same details, current volume, and existing file name - const result = await generateAndCache(ttsDetails.text, ttsDetails.language, ttsDetails.characterVoice, currentVolume, customFileName, chunkIndex, id); + const result = await generateAndCache(ttsDetails.text, ttsDetails.language, ttsDetails.characterVoice, RVCVoice, RVCPitch, currentVolume, customFileName, chunkIndex, id); // Call the TTS generation with the same details and current volume //const result = await generateAndCache(ttsDetails.text, ttsDetails.language, ttsDetails.characterVoice, currentVolume, id);