Speech Create
post
Queue a new asynchronous speech generation task for background processing and later retrieval.
Authorizations
Body
Returns a unique ID for the asynchronous speech task, used to retrieve the generated result once processing is complete.
modelstring · enumRequiredPossible values:
inputstring · min: 2 · max: 4096Required
voiceany ofOptional
One of default voices: leo, nora or a file_id with purpose voice.
string · enumOptionalDefault:
leo
Possible values: stringOptional
streambooleanOptionalDefault:
false
temperaturenumber · max: 1OptionalDefault:
0.8
exaggerationnumber · max: 1OptionalDefault:
0.5
cfg_weightnumber · max: 1OptionalDefault:
0.5
Responses
200
Default Response
application/json
400
Default Response
application/json
404
Default Response
application/json
post
POST /async/speech/create HTTP/1.1
Host: api.distribute.ai
authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 120
{
"model": "Chatterbox",
"input": "text",
"voice": "leo",
"stream": false,
"temperature": 0.8,
"exaggeration": 0.5,
"cfg_weight": 0.5
}
{
"id": "text"
}
Last updated