You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kcpp_docs.embd
+58Lines changed: 58 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -616,6 +616,8 @@
616
616
"vision": false,
617
617
"transcribe":false,
618
618
"multiplayer": false,
619
+
"websearch":false,
620
+
"tts":false,
619
621
},
620
622
"schema": {
621
623
"$ref": "#/components/schemas/KcppVersion"
@@ -1443,6 +1445,52 @@
1443
1445
]
1444
1446
}
1445
1447
},
1448
+
"/api/extra/tts": {
1449
+
"post": {
1450
+
"description": "Creates text-to-speech audio from input text.",
1451
+
"requestBody": {
1452
+
"content": {
1453
+
"application/json": {
1454
+
"example": {
1455
+
"input": "hello world, how are you today?",
1456
+
"voice": "fire",
1457
+
},
1458
+
"schema": {
1459
+
"properties": {
1460
+
"input": {
1461
+
"type": "string",
1462
+
"description": "The text to generate audio for. Try to keep it short."
1463
+
},
1464
+
"voice": {
1465
+
"type": "string",
1466
+
"description": "The voice to use when generating the audio. You can enter anything you like, a qunique speaker will be generated."
1467
+
}
1468
+
},
1469
+
"type": "object"
1470
+
}
1471
+
}
1472
+
},
1473
+
"required": true
1474
+
},
1475
+
"responses": {
1476
+
"200": {
1477
+
"content": {
1478
+
"audio/wav": {
1479
+
"schema": {
1480
+
"type": "string",
1481
+
"format": "binary"
1482
+
}
1483
+
}
1484
+
},
1485
+
"description": "Successful request"
1486
+
}
1487
+
},
1488
+
"summary": "Creates text-to-speech audio from input text.",
1489
+
"tags": [
1490
+
"api/extra"
1491
+
]
1492
+
}
1493
+
},
1446
1494
"/props": {
1447
1495
"get": {
1448
1496
"summary": "Returns the Jinja template stored in the GGUF model, if found.",
@@ -1840,6 +1888,16 @@
1840
1888
"responses": {"default": {"description": ""}}
1841
1889
}
1842
1890
},
1891
+
"/v1/audio/speech": {
1892
+
"post": {
1893
+
"summary": "Generates Text-To-Speech audio from input text. Please refer to OpenAI documentation",
1894
+
"description": "Generates Text-To-Speech audio from input text.\n\n This is an OpenAI compatibility endpoint.\n\n Please refer to OpenAI documentation at [https://platform.openai.com/docs/api-reference/audio/createSpeech](https://platform.openai.com/docs/api-reference/audio/createSpeech)",
let preaudiobuffers = [], preaudioblobs = []; //will store 2 preblobs at a time
2980
+
var koboldcpp_has_tts = false;
2969
2981
var no_escape_html = false;
2970
2982
var timetaken_timestamp = performance.now();
2971
2983
var bg_silence = null;
@@ -3588,7 +3600,7 @@ Current version indicated by LITEVER below.
3588
3600
document.getElementById("lastreq1").innerHTML =
3589
3601
document.getElementById("lastreq2").innerHTML =
3590
3602
document.getElementById("lastreq3").innerHTML =
3591
-
`KoboldAI Lite v${LITEVER} Web - Frontend for External API Services`;
3603
+
`KoboldAI Lite v${LITEVER} Web - Frontend for <a href="#" class="color_grayurl" onclick="msgbox('KoboldAI Lite allows you to connect to various third-party AI services. We do not control or assume responsibility for the models or content generated by these services. The user is responsible for ensuring that their usage of this software is legal in their country, and complies with the terms of service of the service they are connected to. Use at your own discretion.','Disclaimer')">External API Services</a>`;
3592
3604
3593
3605
trigger_abort_controller(); //first trigger sets it up
msgboxYesNo("This KoboldCpp instance has no models loaded. You can still use the WebUI to edit or view existing stories.<br><br>Would you like to connect to an external API service?","No Models Loaded",
0 commit comments