Skip to content

Commit 2947359

Browse files
committed
Merge branch 'concedo_experimental' into croco_nex_0
2 parents 7d269ab + f8a9634 commit 2947359

File tree

8 files changed

+190
-74
lines changed

8 files changed

+190
-74
lines changed

kcpp_docs.embd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@
14531453
"application/json": {
14541454
"example": {
14551455
"input": "hello world, how are you today?",
1456-
"voice": "fire",
1456+
"voice": "kobo",
14571457
},
14581458
"schema": {
14591459
"properties": {
@@ -1463,7 +1463,7 @@
14631463
},
14641464
"voice": {
14651465
"type": "string",
1466-
"description": "The voice to use when generating the audio. You can enter anything you like, a qunique speaker will be generated."
1466+
"description": "The voice to use when generating the audio. You can enter anything you like, a unique speaker will be generated. There are a few preset voices you can use: kobo,cheery,sleepy,tutor,shouty,bored,record"
14671467
}
14681468
},
14691469
"type": "object"

klite.embd

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Current version indicated by LITEVER below.
1212
-->
1313

1414
<script>
15-
const LITEVER = 202;
15+
const LITEVER = 203;
1616
const urlParams = new URLSearchParams(window.location.search);
1717
var localflag = true;
1818
const STORAGE_PREFIX = (localflag?"e_":"")+"kaihordewebui_";
@@ -11391,6 +11391,8 @@ initializeInstructUIFunctionality();
1139111391
pick_default_horde_models();
1139211392
indexeddb_save("savedusermod","");
1139311393
indexeddb_save("savedcustomcss", "");
11394+
let styleElement = document.getElementById('custom_css');
11395+
styleElement.innerHTML = "";
1139411396
},null);
1139511397

1139611398
}
@@ -11939,6 +11941,7 @@ initializeInstructUIFunctionality();
1193911941
}else{
1194011942
document.getElementById("nokcpptts").classList.remove("hidden");
1194111943
}
11944+
adjust_kcpptts_controls();
1194211945
}
1194311946
}
1194411947

@@ -11982,6 +11985,15 @@ initializeInstructUIFunctionality();
1198211985
rvcPitch.disabled = streamingMode;
1198311986
}
1198411987

11988+
function adjust_kcpptts_controls() {
11989+
if (document.getElementById("kcpp_tts_voice").value == "custom") {
11990+
document.getElementById("kcpp_tts_voice_custom").classList.remove("hidden");
11991+
} else {
11992+
document.getElementById("kcpp_tts_voice_custom").classList.add("hidden");
11993+
}
11994+
11995+
}
11996+
1198511997
// Update set_xtts_url to use the new fetch_rvc_voices function
1198611998
function set_xtts_url() {
1198711999
let is_xtts = (document.getElementById("ttsselect").value==XTTS_ID);
@@ -12074,7 +12086,7 @@ initializeInstructUIFunctionality();
1207412086
payload =
1207512087
{
1207612088
"input": text,
12077-
"voice": document.getElementById("kcpp_tts_voice").value
12089+
"voice": (document.getElementById("kcpp_tts_voice").value == "custom")?document.getElementById("kcpp_tts_voice_custom").value:document.getElementById("kcpp_tts_voice").value
1207812090
};
1207912091
ttsheaders = get_kobold_header();
1208012092
}
@@ -14497,7 +14509,7 @@ initializeInstructUIFunctionality();
1449714509
gentxt = trim_extra_stop_seqs(gentxt,false);
1449814510

1449914511
//fix alpaca leakage
14500-
if(localsettings.fix_alpaca_leak && get_instruct_starttag(true).toLowerCase().includes("### instruction"))
14512+
if(localsettings.fix_alpaca_leak && (localsettings.opmode == 2 || localsettings.opmode == 3 || localsettings.opmode == 4) && get_instruct_starttag(true).toLowerCase().includes("### instruction"))
1450114513
{
1450214514
let matches = gentxt.match(/\n### (.+?):/g);
1450314515
for(let m in matches)
@@ -20250,7 +20262,18 @@ initializeInstructUIFunctionality();
2025020262
<div class="color_red hidden" id="nokcpptts">KoboldCpp Not Connected</div>
2025120263
<div class="settinglabel">
2025220264
<table width="100%">
20253-
<tr style="font-size:12px;padding:2px;margin:0px 0 0;"><td>TTS Voice </td><td><input class="settinglabel miniinput" type="text" value="kobo" placeholder="(Anything)" id="kcpp_tts_voice" style="margin-left:3px; height:18px; width: 80px; padding: 2px;"></td></tr>
20265+
<tr style="font-size:12px;padding:2px;margin:0px 0 0;"><td>TTS Voice </td><td>
20266+
<select onchange="adjust_kcpptts_controls();" class="form-control" id="kcpp_tts_voice" style="font-size:12px;height:20px;padding:0;margin:0px 0 0;">
20267+
<option value="kobo" selected>kobo</option>
20268+
<option value="cheery">cheery</option>
20269+
<option value="sleepy">sleepy</option>
20270+
<option value="tutor">tutor</option>
20271+
<option value="shouty">shouty</option>
20272+
<option value="bored">bored</option>
20273+
<option value="record">record</option>
20274+
<option value="custom">custom</option>
20275+
</select></td>
20276+
<td><input class="settinglabel miniinput" type="text" value="" placeholder="(Name)" id="kcpp_tts_voice_custom" style="margin-left:3px; height:18px; width:44px; padding: 2px;"></td></tr>
2025420277
</table>
2025520278
</div>
2025620279
</div>

0 commit comments

Comments
 (0)