开放平台
  1. 02 克隆声音
开放平台
  • 01 专业翻唱
    • 01-01 查找歌曲
      POST
    • 01-02 专业翻唱
      POST
    • 01-03 翻唱回调
      POST
  • 02 克隆声音
    • 02-01 生成提示词
      POST
    • 02-02 一句话克隆
      POST
    • 02-03 克隆声音回调
      POST
  • 03 UVR5
    • 03-01 UVR5统一接口
      POST
    • 03-02 UVR5回调
      POST
  • 04 下载短视频
    • 获取下载链接
      POST
  • 05 一句话翻唱
    • 05-01 一句话参考音频
      POST
    • 05-02 一句话翻唱
      POST
    • 05-03 回调
      POST
    • 05-04 查询订单
      GET
  1. 02 克隆声音

02-03 克隆声音回调

POST
https://third-company.com/api/callback

说明#

这个地址不能执行,用于说明回调接口参数,由第三方提供。#

克隆声音的时长由字数决定,字数小于100字需要约2分钟,处理完会把结果发送到这个地址。#

接口要求:#

使用POST接收,Headers的"Content-type"为"application/json",参数放在Body中。

返回#

audioUrl:变声后的音频

请求参数

Body 参数application/json
orderId
string 
本次请求的订单号
必需
userId
string 
用户ID
必需
cost
string 
本次消费金额
必需
audioUrl
string 
变声后的URL
必需
示例
{
    "orderId": "string",
    "userId": "string",
    "cost": "string",
    "audioUrl": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://third-company.com/api/callback' \
--header 'Content-Type: application/json' \
--data-raw '{
    "orderId": "string",
    "userId": "string",
    "cost": "string",
    "audioUrl": "string"
}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-08-07 04:46:58
上一页
02-02 一句话克隆
下一页
03-01 UVR5统一接口
Built with