When using uploaded video, avatarSourceFrom and videoFileId are required.
2.
When using a public avatar, avatarSourceFrom and aiAvatarId are required.
3.
When using uploaded audio, audioSourceFrom and audioFileId are required.
4.
When using TTS, audioSourceFrom and ttsText are required. 4.1. When using a public avatar, voiceoverId can be omitted to use the digital human's default tone. 4.2. In all other TTS scenarios, voiceoverId is required.
Request
Header Params
Topview-Uid
string
required
Authorization
string
required
Body Params application/json
avatarSourceFrom
enum<integer>
required
The sources of avatars: 0- User uploaded video file; 1- avatar list;
Allowed values:
01
videoFileId
string
optional
File id you uploaded video via the upload api. When avatarSourceFrom equals 1, this field must be provided.
aiAvatarId
string
optional
avatar id. When avatarSourceFrom equals 0, this field must be provided.
audioSourceFrom
enum<integer>
required
The sources of audio: 0-user uploaded audio file; 1- text to speech.
Allowed values:
01
audioFileId
string
optional
File id via the upload api. When audioSourceFrom equals 0, this field must be provided.
ttsText
string
optional
User input content. When audioSourceFrom equals 1, this field must be provided.
voiceoverId
string
optional
Voice over id. When audioSourceFrom equals 1, and avatarSourceFrom equals 0, this field must be provided. When audioSourceFrom equals 1 and avatarSourceFrom equals 1, voiceoverId is null means use the default voiceover id of the avatar.