{
"contentType": "application/json",
"properties": {
"callback_url": {
"type": "string"
},
"external_task_id": {
"type": "string"
},
"face_choose": {
"description": "指定人脸对口型;包括人脸ID、口型参考等内容等;暂时仅支持指定单人对口型",
"items": {
"properties": {
"audio_id": {
"description": "通过试听接口生成的音频的ID仅支持使用30天内生成的、时长不短于2秒且不超过60秒的音频/audio_id、sound_file参数二选一,不能同时为空,也不能同时有值",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Audio ID from preview API. Only last-30-day audio lasting 2–60s. Exactly one of audio_id or sound_file"
}
}
},
"face_id": {
"description": "人脸ID由人脸识别接口返回",
"type": "string",
"x-i18n": {
"en-US": {
"description": "face ID returned by the face recognition API"
}
}
},
"original_audio_volume": {
"description": "原始视频音量大小;值越大,音量越大取值范围:[0, 2];原视频无声时,当前参数无效果",
"type": "integer",
"x-i18n": {
"en-US": {
"description": "Original video volume; higher=louder; range [0,2]; no effect if original is silent"
}
}
},
"sound_end_time": {
"description": "音频裁剪终点时间 终点时间不得晚于原始音频总时长",
"type": "integer",
"x-i18n": {
"en-US": {
"description": "audio clip end time end time must not exceed original audio duration"
}
}
},
"sound_file": {
"description": "音频文件 支持传入音频Base64编码或图音频URL(确保可访问) 音频文件支持.mp3/.wav/.m4a,文件大小不超过5MB,格式不匹配或文件过大会返回错误码等信息 仅支持使用时长不短于2秒且不长于60秒的音频 audio_id、sound_file参数二选一,不能同时为空,也不能同时有值 系统会校验音频内容,如有问题会返回错误码等信息",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Audio file. Base64 or reachable URL; .mp3/.wav/.m4a; ≤5MB; duration 2–60s. Exactly one of audio_id or sound_file. Invalid format/size or content issues return errors"
}
}
},
"sound_insert_time": {
"description": "裁剪后音频插入时间 插入音频的时间范围与该人脸可对口型时间区间至少重合2秒时长 插入音频的开始时间不得早于视频开始时间,插入音频的结束时间不得晚于视频结束时间",
"type": "integer",
"x-i18n": {
"en-US": {
"description": "insert time of the cropped audio insert range must overlap the lip-syncable face interval by ≥2s insert start must not be before video start, insert end must not be after video end"
}
}
},
"sound_start_time": {
"description": "音频裁剪起点时间;以原始音频开始时间为准,开始时间为0分0秒,单位ms;起点之前的音频会被裁剪,裁剪后音频不得短于2秒",
"type": "integer",
"x-i18n": {
"en-US": {
"description": "audio clip start time;relative to original audio start (0:00), unit: ms;audio before the start is trimmed, trimmed audio must be at least 2 seconds"
}
}
},
"sound_volume": {
"description": "音频音量大小;值越大,音量越大 取值范围:[0, 2]",
"type": "integer",
"x-i18n": {
"en-US": {
"description": "Audio volume; higher=louder; range [0, 2]"
}
}
}
},
"required": [
"face_id",
"sound_start_time",
"sound_end_time",
"sound_insert_time",
"sound_volume",
"original_audio_volume"
],
"type": "object"
},
"type": "array",
"x-i18n": {
"en-US": {
"description": "specify a face for lip-sync;includes face ID, lip-sync reference, etc.;currently only single-person lip-sync"
}
}
},
"session_id": {
"description": "会话ID,会基于对口型人脸识别接口生成",
"type": "string",
"x-i18n": {
"en-US": {
"description": "session ID from the lip-sync face recognition API"
}
}
}
},
"required": [
"session_id",
"face_choose"
]
}