Request
Upload a CSV file with multipart/form-data:
CSV file with columns: text, speaker_id (optional)
Automatically start TTS generation after upload
text,speaker_id
"Hello, this is the first sentence.",speaker-1
"This is another sentence to synthesize.",speaker-2
"Third example text here.",
If speaker_id is empty, a random speaker will be assigned.
Response
Unique dataset identifier
Number of rows in the dataset
Job ID if generate_audio was true
curl -X POST "https://api.destined.ai/v1/datasets/upload" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@dataset.csv" \
-F "name=My Dataset" \
-F "generate_audio=true"
{
"dataset_id": "ds_abc123",
"name": "My Dataset",
"row_count": 150,
"job_id": "job_xyz789",
"created_at": "2024-01-15T10:30:00Z"
}