Conversion Endpoints
Text To Speech
Synthesize speech from text with voice and gender customization, plus optional webhook callback.
POST
/
TextToSpeech
Copy
curl --request POST \
--url https://api.musicgpt.com/api/public/v1/TextToSpeech \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"text": "<string>",
"voice_id": "<string>",
"gender": "<string>",
"webhook_url": "<string>"
}'
Copy
{
"success": true,
"task_id": "72eed5b0-8652-4bb4-9a95-eb0ad4850f12",
"conversion_id": "648a6823-b2a4-47b3-801e-f452c567ae6f",
"eta": 19
}
Authorizations
Body
application/json
Response
200
application/json
Successfully initiated TTS conversion
The response is of type object
.
Copy
curl --request POST \
--url https://api.musicgpt.com/api/public/v1/TextToSpeech \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"text": "<string>",
"voice_id": "<string>",
"gender": "<string>",
"webhook_url": "<string>"
}'
Copy
{
"success": true,
"task_id": "72eed5b0-8652-4bb4-9a95-eb0ad4850f12",
"conversion_id": "648a6823-b2a4-47b3-801e-f452c567ae6f",
"eta": 19
}
Assistant
Responses are generated using AI and may contain mistakes.