Skip to main content
POST
/
v2
/
tts
/
voices
/
custom
/
preload
Preload a cloned TTS voice into the system
curl --request POST \
  --url https://api.tryhamsa.com/v2/tts/voices/custom/preload \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "voiceId": "c803658e-ccec-47e7-ad0f-1caf9ba4babb"
}'
{
  "success": true,
  "message": "Custom voice have been preloaded successfully",
  "data": []
}

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token <api-key>'

Body

application/json
voiceId
string
required

The unique identifier of the custom cloned voice to preload into the system

Example:

"c803658e-ccec-47e7-ad0f-1caf9ba4babb"

Response

Voice successfully preloaded

success
boolean
Example:

true

message
string
Example:

"Custom voice have been preloaded successfully"

data
any[]
Example:
[]