Suno - 编辑修改
修改音乐片段
http
POST /generator/suno参数说明(task: "replace_section"):
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
taskId | string | 是 | CQTai 任务 ID |
clipId | string | 是 | 需要操作的音频 ID |
infillLyrics | string | 是 | 需要重新演唱的歌词 |
rangeStartS | number | 是 | 原歌曲开始时间(秒) |
rangeEndS | number | 是 | 原歌曲结束时间(秒) |
请求示例:
bash
curl --location --request POST 'https://neolink.com/api/generator/suno' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"task": "replace_section",
"taskId": "d649231618784ee4b9cfa059ac50be5e",
"clipId": "eb1c6c96-a102-4bbb-82c2-87c3b126a44e",
"tags": "Happy",
"title": "两只老虎(聪明)",
"infillLyrics": "两只老虎 两只老虎跑得快 跑得快一只没有耳朵一只没有尾巴真奇怪 真奇怪两只老虎 两只老虎跑得快 跑得快一只没有耳朵一只没有尾巴真奇怪 真奇怪",
"rangeStartS": 7.56,
"rangeEndS": 15.98
}'音乐片段合并
http
POST /generator/suno参数说明(task: "replace_merge"):
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
clipId | string | 是 | 需要替换的音频片段(来自 create 接口) |
editSessionId | string | 是 | 来自 replace_section 接口的片段音频 ID |
请求示例:
bash
curl --location --request POST 'https://neolink.com/api/generator/suno' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"task": "replace_merge",
"clipId": "214f6b75-81c9-46a4-9e68-2f8e496ce5c0",
"editSessionId": "2d2991ed-401e-4926-9e7e-9963108e850c"
}'