Audio Preview
The Voice API enables the generation of voice previews based on text.
The Voice API will require sending:
The Draft ID - this will be the draft id with containing the chosen voice
Transcript - the text the voice will read, up to 500 characters
create a voice preview based on a source draft
Authorizations
Header parameters
workspace-idstringOptional
team-idstringOptional
Body
transcriptstringRequired
source_draft_idstringRequired
Responses
201
Successful Response
application/json
422
Validation Error
application/json
post
POST /api/v1/voice-preview HTTP/1.1
Host: api.makereals.com
api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 46
{
"transcript": "text",
"source_draft_id": "text"
}
{
"id": "text",
"transcript": "text",
"voice_id": "text",
"req_id": "text",
"status": "in_progress"
}
Authorizations
Path parameters
task_idstringRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
GET /api/v1/voice-preview/{task_id} HTTP/1.1
Host: api.makereals.com
api-key: YOUR_API_KEY
Accept: */*
{
"id": "text",
"req_id": "text",
"status": "in_progress",
"url": "text"
}
Last updated