自定义音色
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/kling/v1/general/custom-voices:
post:
summary: 自定义音色
deprecated: false
description: ''
tags:
- 可灵 Kling 平台/自定义音色
parameters:
- name: Content-Type
in: header
description: ''
required: false
example: application/json
schema:
type: string
- name: Authorization
in: header
description: ''
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
voice_name:
type: string
description: 音色名称
voice_url:
type: string
description: |-
音色数据文件获取链接
支持.mp3/.wav/.mp4/.mov格式的音视频文件
音频中人生需干净无杂音,有且只能有一种人声,时长不短于5秒且不长于30秒
video_id:
type: string
description: |-
历史作品ID,可通过引用历史作品提供音频素材
仅满足以下条件的视频可以用于定制音色:
使用V2.6版本模型生成且开启sound参数值为on的视频
通过数字人API生成的视频
通过对口型API生成的视频
音频中人生需干净无杂音,有且只能有一种人声,时长不短于5秒且不长于30秒
callback_url:
type: string
external_task_id:
type: string
required:
- voice_name
x-apifox-orders:
- voice_name
- voice_url
- video_id
- callback_url
- external_task_id
examples: {}
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
example:
voice_name: 测试音色
voice_url: ''
video_id: '830460928805724256'
callback_url: ''
external_task_id: ''
headers: {}
x-apifox-name: 成功
security:
- bearer: []
x-apifox-folder: 可灵 Kling 平台/自定义音色
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-393212449-run
components:
schemas: {}
securitySchemes:
bearer:
type: http
scheme: bearer
servers:
- url: https://www.anyapi.vip
description: 正式环境
security:
- bearer: []