curl --request POST \
--url https://api.omnimux.ai/v1/tasks/autodl \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "indextts-2",
"prompt_text": "你好,这是一段使用声音克隆生成的测试语音。",
"prompt_simple": "https://example.com/voice.wav",
"emo_control_method": "与音色参考音频相同"
}'
{
"id": "task_sl8rnyewmb1O2ygKljRFnSIFnnmUSdeu",
"task_id": "task_sl8rnyewmb1O2ygKljRFnSIFnnmUSdeu",
"model": "indextts-2",
"status": "queued",
"created_at": 1789704195
}
curl --request POST \
--url https://api.omnimux.ai/v1/tasks/autodl \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "indextts-2",
"prompt_text": "你好,这是一段使用声音克隆生成的测试语音。",
"prompt_simple": "https://example.com/voice.wav",
"emo_control_method": "与音色参考音频相同"
}'
{
"id": "task_sl8rnyewmb1O2ygKljRFnSIFnnmUSdeu",
"task_id": "task_sl8rnyewmb1O2ygKljRFnSIFnnmUSdeu",
"model": "indextts-2",
"status": "queued",
"created_at": 1789704195
}
Index TTS
Index TTS 声音克隆
AutoDL Index-TTS 声音克隆 · model indextts-2
curl --request POST \
--url https://api.omnimux.ai/v1/tasks/autodl \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "indextts-2",
"prompt_text": "你好,这是一段使用声音克隆生成的测试语音。",
"prompt_simple": "https://example.com/voice.wav",
"emo_control_method": "与音色参考音频相同"
}'
{
"id": "task_sl8rnyewmb1O2ygKljRFnSIFnnmUSdeu",
"task_id": "task_sl8rnyewmb1O2ygKljRFnSIFnnmUSdeu",
"model": "indextts-2",
"status": "queued",
"created_at": 1789704195
}
POST
/
v1
/
tasks
/
autodl
curl --request POST \
--url https://api.omnimux.ai/v1/tasks/autodl \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "indextts-2",
"prompt_text": "你好,这是一段使用声音克隆生成的测试语音。",
"prompt_simple": "https://example.com/voice.wav",
"emo_control_method": "与音色参考音频相同"
}'
{
"id": "task_sl8rnyewmb1O2ygKljRFnSIFnnmUSdeu",
"task_id": "task_sl8rnyewmb1O2ygKljRFnSIFnnmUSdeu",
"model": "indextts-2",
"status": "queued",
"created_at": 1789704195
}
- 创建:
POST /v1/tasks/autodl,model为indextts-2 - 轮询:
GET /v1/tasks/{task_id}(产物通过GET /v1/tasks/{task_id}/artifacts获取) - 任务专属通道,支持参考音频声音克隆与精细化情绪控制
- 推荐:如需 3 秒极速出音,可优先使用官方主力模型
seed-audio-1.0的声音克隆模式
身份
| 字段 | 值 |
|---|---|
| 系列 | 音频系列 |
| 品牌 | Index TTS / AutoDL |
| model | indextts-2 |
接口
| 方法 | 路径 |
|---|---|
POST | /v1/tasks/autodl |
GET | /v1/tasks/{task_id} |
GET | /v1/tasks/{task_id}/artifacts |
https://api.omnimux.ai
鉴权
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
Authorization | header | string | 是 | Bearer sk-...(API Key) |
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 固定为 indextts-2 |
prompt_text | string | 是 | 要朗读合成的台词文本 |
prompt_simple | string | 是 | 音色参考音频链接(支持公网 URL) |
emo_control_method | string | 是 | 情绪控制方式,推荐 "与音色参考音频相同" |
emo_happy | number | 否 | 开心情绪强度 [0, 1],如 0.5 |
emo_sad | number | 否 | 悲伤情绪强度 [0, 1] |
emo_angry | number | 否 | 愤怒情绪强度 [0, 1] |
响应
200(创建)
| 字段 | 类型 | 说明 |
|---|---|---|
id / task_id | string | 任务单号 |
status | string | queued(排队中) |
轮询产物
任务完成后通过GET /v1/tasks/{task_id}/artifacts 提取最终生成的 WAV 音频直链。