POST https://app-api.pixverseai.cn/openapi/v2/video/lip_sync/generateGET https://app-api.pixverseai.cn/openapi/v2/video/lip_sync/tts_listPOST https://app-api.pixverseai.cn/openapi/v2/video/tts_speakerDELETE https://app-api.pixverseai.cn/openapi/v2/video/tts_speaker/{speaker_id}Ai-Trace-Id自定义音色需要先上传样本音频,再调用创建自定义音色接口获得 speaker_id。样本音频的独立时长和大小限制以创建自定义音色接口的最新说明为准。
{
"ErrCode": 0,
"ErrMsg": "success",
"Resp": {
"media_id": 0,
"media_type": "video",
"url": "https://media.pixverseai.cn/111111.mp4"
}
}{
"ErrCode": 0,
"ErrMsg": "success",
"Resp": {
"media_id": 0,
"media_type": "audio",
"url": "https://media.pixverseai.cn/111111.mp3"
}
}| 参数名称 | 必需 | 类型 | 描述 |
|---|---|---|---|
| page_num | 可选 | int | 页码 |
| page_size | 可选 | int | 每页数量 |
| speaker_type | 可选 | string | system:系统音色;custom:自定义音色;all:全部音色,默认 all |
speaker_id 和 name。将选中的 speaker_id 传入生成请求的 lip_sync_tts_speaker_id。Resp.media_id。media_id 作为 audio_media_id 调用创建自定义音色接口:| 参数名称 | 必需 | 类型 | 描述 |
|---|---|---|---|
| name | 必填 | string | 自定义音色名称 |
| audio_media_id | 必填 | int | 上传样本音频后返回的 media_id |
{
"ErrCode": 0,
"ErrMsg": "success",
"Resp": {
"speaker_id": "your-custom-speaker-id"
}
}创建音色接口中的 audio_media_id表示克隆样本音频;Lipsync 生成接口中的audio_media_id表示最终配音音频。两者字段同名,但使用场景不同。
{
"source_video_id": 123456,
"audio_media_id": 234567
}{
"source_video_id": 123456,
"lip_sync_tts_speaker_id": "auto-or-custom-speaker-id",
"lip_sync_tts_content": "hello this is harry, where are you from?"
}{
"video_media_id": 123456,
"audio_media_id": 234567
}{
"video_media_id": 123456,
"lip_sync_tts_speaker_id": "auto-or-custom-speaker-id",
"lip_sync_tts_content": "hello this is harry, where are you from?"
}{
"ErrCode": 0,
"ErrMsg": "success",
"Resp": {
"video_id": 0,
"credits": 0
}
} {
"ErrCode": 0,
"ErrMsg": "string",
"Resp": {
"create_time": "string",
"id": 0,
"modify_time": "string",
"negative_prompt": "string",
"outputHeight": 0,
"outputWidth": 0,
"prompt": "string",
"resolution_ratio": 0,
"seed": 0,
"size": 0,
"status": 5,
"style": "string",
"url": "string"
}
} {
"ErrCode": 0,
"ErrMsg": "string",
"Resp": {
"create_time": "string",
"id": 0,
"modify_time": "string",
"negative_prompt": "string",
"outputHeight": 0,
"outputWidth": 0,
"prompt": "string",
"resolution_ratio": 0,
"seed": 0,
"size": 0,
"status": 1,
"style": "string",
"url": "string"
}
}