mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-14 02:49:41 +00:00
added a nicer built in voice
This commit is contained in:
parent
62e33d0bf7
commit
636beac6d2
7 changed files with 166 additions and 36 deletions
|
@ -616,6 +616,8 @@
|
|||
"vision": false,
|
||||
"transcribe":false,
|
||||
"multiplayer": false,
|
||||
"websearch":false,
|
||||
"tts":false,
|
||||
},
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/KcppVersion"
|
||||
|
@ -1443,6 +1445,52 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/api/extra/tts": {
|
||||
"post": {
|
||||
"description": "Creates text-to-speech audio from input text.",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"example": {
|
||||
"input": "hello world, how are you today?",
|
||||
"voice": "fire",
|
||||
},
|
||||
"schema": {
|
||||
"properties": {
|
||||
"input": {
|
||||
"type": "string",
|
||||
"description": "The text to generate audio for. Try to keep it short."
|
||||
},
|
||||
"voice": {
|
||||
"type": "string",
|
||||
"description": "The voice to use when generating the audio. You can enter anything you like, a qunique speaker will be generated."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"audio/wav": {
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "binary"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful request"
|
||||
}
|
||||
},
|
||||
"summary": "Creates text-to-speech audio from input text.",
|
||||
"tags": [
|
||||
"api/extra"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/props": {
|
||||
"get": {
|
||||
"summary": "Returns the Jinja template stored in the GGUF model, if found.",
|
||||
|
@ -1840,6 +1888,16 @@
|
|||
"responses": {"default": {"description": ""}}
|
||||
}
|
||||
},
|
||||
"/v1/audio/speech": {
|
||||
"post": {
|
||||
"summary": "Generates Text-To-Speech audio from input text. Please refer to OpenAI documentation",
|
||||
"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)",
|
||||
"tags": [
|
||||
"v1"
|
||||
],
|
||||
"responses": {"default": {"description": ""}}
|
||||
}
|
||||
},
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue