diff --git a/public/scripts/extensions/expressions/index.js b/public/scripts/extensions/expressions/index.js index 5838cbaaf..12313885a 100644 --- a/public/scripts/extensions/expressions/index.js +++ b/public/scripts/extensions/expressions/index.js @@ -1014,21 +1014,6 @@ async function setExpression(character, expression, force) { audio.volume = 1.0; audio.animate({volume: 1.0}, 2000); }) - - // Set the point in playback that fadeout begins. This is for a 2 second fade out. - var fadeAudio = setInterval(function () { - - // Only fade if past the fade out point or not at zero already - if (audio.volume != 0.0) { - audio.volume -= 0.1; - } - // When volume at zero stop all the intervalling - if (audio.volume === 0.0) { - clearInterval(fadeAudio); - - } - }, 200); - } }); console.error(" CODE INJECTION END") diff --git a/public/scripts/extensions/rvc/index.js b/public/scripts/extensions/rvc/index.js index 2cc195db7..25325c710 100644 --- a/public/scripts/extensions/rvc/index.js +++ b/public/scripts/extensions/rvc/index.js @@ -174,9 +174,9 @@ async function onDeleteClick() { saveSettingsDebounced(); } -async function onClickUpload() { +async function onChangeUploadFiles() { const url = new URL(getApiUrl()); - const inputFiles = $("#rvc_model_upload_file").get(0).files; + const inputFiles = $("#rvc_model_upload_files").get(0).files; let formData = new FormData(); for (const file of inputFiles) @@ -195,7 +195,7 @@ async function onClickUpload() { throw new Error(`HTTP ${apiResult.status}: ${await apiResult.text()}`); } - alert('The file has been uploaded successfully.'); + alert('The files have been uploaded successfully.'); } $(document).ready(function () { @@ -208,6 +208,7 @@ $(document).ready(function () {
+

Characters Voice Mapping

- - - - -
- - - - +
+ + + +
+
+ + + + + +
+
+
+ + Upload one archive per model. With .pth and .index (optional) inside.
+ Supported format: .zip .rar .7zip .7z +
+
+
+

Model Settings

+
+
+ + + + Tips: dio and pm faster, harvest slower but good.
+ Torchcrepe and rmvpe are good but uses GPU. +
+
+
+ + + + Controls accent strength, too high may produce artifact. + +
+
+ + + + Higher can reduce breathiness but may increase run time. + +
+
+ + + + Recommended +12 key for male to female conversion and -12 key for female to male conversion. + +
+
+ + + + Closer to 0 is closer to TTS and 1 is closer to trained voice. + Can help mask noise and sound more natural when set relatively low. + +
+
+ + + + Avoid non voice sounds. Lower is more being ignored. +
- Select Pitch Extraction
- - - - - - - - - - - - - - - -
-
@@ -284,8 +334,11 @@ $(document).ready(function () { $("#rvc_apply").on("click", onApplyClick); $("#rvc_delete").on("click", onDeleteClick); - $("#rvc_model_upload_file").show(); - $("#rvc_model_upload_button").on("click", onClickUpload); + $("#rvc_model_upload_files").hide(); + $("#rvc_model_upload_select_button").on("click", function() {$("#rvc_model_upload_files").click()}); + + $("#rvc_model_upload_files").on("change", onChangeUploadFiles); + //$("#rvc_model_upload_button").on("click", onClickUpload); $("#rvc_model_refresh_button").on("click", refreshVoiceList); }