Fixed Regenerate with RVC
This commit is contained in:
1 parent
9ba7f2e454
commit
f1464ec29d
1 file changed
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user