cURL
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>", "sample_audio_url": "<string>", "webhook_url": "<string>" }'
{ "success": true, "task_id": "72eed5b0-8652-4bb4-9a95-eb0ad4850f12", "conversion_id": "648a6823-b2a4-47b3-801e-f452c567ae6f", "eta": 19 }
Synthesize speech from text with voice and gender customization, plus optional webhook callback.
Successfully initiated TTS conversion
The response is of type object.
object