accept: application/json201 - CreatedLocation: /api/v2/tts/{id}GET /api/v2/tts/{id}accept: text/event-stream``accept: */*``?format=event-stream201 - CreatedLocation: /api/v2/tts/{id}- 最近创建的作业的 URLContent-Location: /api/v2/tts/{id}?format=event-stream- SSE 流的 URL/api/v2/tts/{id}?format=event-streamcurl --location --request POST 'http://dev-cn.your-api-server.com/api/v2/tts' \
--header 'AUTHORIZATION: YOUR_SECRET_KEY_HERE' \
--header 'X-USER-ID: YOUR_USER_ID_HERE' \
--header 'content-type: application/json' \
--data-raw '{
"text": "Hello from a realistic voice.",
"voice": "s3://voice-cloning-zero-shot/d9ff78ba-d016-47f6-b0ef-dd630f59414e/female-cs/manifest.json",
"output_format": "mp3",
"voice_engine": "PlayHT2.0"
}'{
"id": "f0gZrOKBKL7veJ6o1M",
"created": "2023-03-04T01:12:03.981Z",
"input": {
"text": "Hello! Said the realistic voice.",
"voice": "s3://voice-cloning-zero-shot/d9ff78ba-d016-47f6-b0ef-dd630f59414e/female-cs/manifest.json",
"quality": "draft",
"output_format": "mp3",
"speed": 1,
"sample_rate": 24000,
"seed": null,
"temperature": null,
"voice_engine": "PlayHT2.0",
"emotion": "female_happy",
"voice_guidance": 3,
"style_guidance": 20
},
"output": {
"duration": 1.664,
"size": 35085,
"url": "https://peregrine-results.s3.amazonaws.com/pigeon/f0gZrOKBKL7veJ6o1M_0.mp3"
},
"_links": [
"{\n href: 'https://play.ht/api/v2/tts/f0gZrOKBKL7veJ6o1M',\n method: 'GET',\n contentType: 'application/json',\n rel: 'self',\n description: \"Fetches this job's data. Poll it for the latest status.\",\n}\n"
]
}