Make a TTS request
This endpoint creates a new text-to-speech (TTS) task. It takes a JSON payload and adds the task to the processing queue.
To turn text into the speech of your desired voice, you'll need the appropriate weight which as mentioned prior you can get by our voice-library endpoint.
Note that this endpoint is the ONLY endpoint which is rate limited to prevent abuse. Though the rate limit is subject of change in future updates where an authentication parameter will be added.
Example request
Post: https://api.revoice.live/createTTS
tts_weight
String
Yes
Internal identifier of the model
job_type
String
Yes
Modeltype, usually tts, more available soon
message_text
String
Yes
The text you desire to turn into speech
POST https://api.revoice.live/createTTS
Content-Type: application/json
{
"tts_weight": "weight_cybz3j5kwmsmejb0qfx0dwrr9",
"job_type": "tts",
"message_text": "Luke im your father, and im cool and i own $REVOICE"
}
Example Response
Response structure:
errorId
Integer
For a successful request the errorId will be always 0, if there has been an error it will be above 0
taskId
String
The internal_id of your request, store this to use it later for getting the processed tts result.
message
String
Incase of an error this will display an error description, in any other case it will display queue status
Example Response
{
"errorId": 0, //success = 0, != 0 equals error
"message": "adding task to node queue", //description of status
"taskId": "46876676774653688410" //taskId of your request, store this
}
Last updated