Fixed Regenerate with RVC

This commit is contained in:
erew123 authored and GitHub committed 2024-09-22 13:30:17 +01:00
1 parent 9ba7f2e454
commit f1464ec29d
1 file changed
+3 -1
+3 -1
View File
@@ -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);