Img Open
  1. 音频工具
Img Open
  • CV任务状态码信息附录
  • 绘图信息
    • sd 文生图-v2
      POST
    • sd 文生图-v3
      POST
    • sd 图生图-v2
      POST
    • sd 图生图-v3
      POST
    • sd 局部重绘-v1
      POST
    • sd controlnet 生图
      POST
    • 查询模型列表
      POST
    • 查询lora列表
      POST
    • 查询vae列表
      POST
    • 查询Embedding列表
      POST
  • 绘图任务
    • 查询归档任务详情
      POST
    • 查询任务实时状态 (百分比/进度条/中间图)
      POST
    • 绘图工具任务查询
      POST
  • 模型训练
    • 提交训练任务
      POST
    • 训练结果回调
      POST
  • 绘图工具
    • Flux文生图
      POST
    • 个性化写真
      POST
    • 高级换脸
      POST
    • 超级换脸 faceFusion
      POST
    • 面部检测(脸部提取) faceDetection
      POST
    • 换发型
      POST
    • 提示词扩写
      POST
    • sd prompts优化
      POST
    • 提示词扩写优化
      POST
    • 图转文
      POST
    • 超分辨
      POST
    • 换脸 roop
      POST
    • 面部修复
      POST
    • 智能擦除
      POST
    • 风格识别
      POST
    • 图片外扩
      POST
    • CNT预览
      POST
    • 背景去除
      POST
    • 图片扩大
      POST
    • 给图片加水印
      POST
    • 图片去水印
      POST
    • 图生视频
      POST
  • 图片检测
    • 异步图片检测
  • 视频工具
    • 视频加水印
    • 移除视频背景
    • 视频比例调整
    • 扩大视频图像
    • 视频补帧
    • 视频格式转换
  • 音频工具
    • 人声分离
      POST
    • 文生音乐
      POST
    • 文字配音
      POST
    • 生成歌词
      POST
  • 翻译
    • 翻译
  1. 音频工具

文字配音

开发中
POST
/AIGCImgOpenServ/saas/vocal/synthesize

请求参数

Header 参数
X-Request-req-accessKeyId
string 
可选
X-Request-req-accessKeySecret
string 
可选
Body 参数application/json
ssml
string 
可选
使用微软语音合成必传
businessTaskId
string 
必需
audioUrl
string 
必需
audioText
string 
必需
ttsText
array[string]
必需
pauseTime
array[number]
必需
ext
string 
必需
crossLingual
boolean 
可选
speed
integer 
可选
示例
{
    "ssml": "string",
    "businessTaskId": "string",
    "audioUrl": "string",
    "audioText": "string",
    "ttsText": [
        "string"
    ],
    "pauseTime": [
        0
    ],
    "ext": "string",
    "crossLingual": true,
    "speed": 0
}

示例代码

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://api.zhiqite.com/AIGCImgOpenServ/saas/vocal/synthesize' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ssml": "string",
    "businessTaskId": "string",
    "audioUrl": "string",
    "audioText": "string",
    "ttsText": [
        "string"
    ],
    "pauseTime": [
        0
    ],
    "ext": "string",
    "crossLingual": true,
    "speed": 0
}'

返回响应

🟢200成功
application/json
Body
code
string 
必需
data
object 
必需
businessTaskId
string 
必需
errorCode
integer 
必需
errorMessage
string 
必需
outputVideoUrl
string 
必需
status
integer 
必需
taskId
string 
必需
msg
string 
必需
示例
{
    "code": "200",
    "data": {
        "businessTaskId": "2222",
        "errorCode": 200000,
        "errorMessage": "success",
        "outputVideoUrl": "https://aigcoss.zhiqiteai.cn/Output-Img2/tool/AudioClone/pre1728962156185425568645_cloned.wav",
        "status": 2,
        "taskId": "pre1728962156185425568645"
    },
    "msg": "success"
}
修改于 2024-10-15 03:17:50
上一页
文生音乐
下一页
生成歌词
Built with