Talking Avatar
Build Preview
Request Headers
Parameter | Required | Type | Description |
---|---|---|---|
Content-Type | true | string | Data Tranmission Type: multipart/form-data |
Request Attributes
1. Use Preset Voice
Parameter | Required | Type | Description |
---|---|---|---|
voice_id | true | string | ID of the voice list (voice_id is preferred) |
text | true | string | Text content |
2. Use Cloned Voice
Parameter | Required | Type | Description |
---|---|---|---|
lang | true | string | Language (Clone mode only supports English, Traditional Chinese, Korean, Japanese) |
file | false | file | Original audio uploaded (priority is given to this field). There are two methods supported to upload audios. |
file_url | false | string | Original audio address. There are two methods supported to upload audios. |
text | true | string | Text content |
Response Attributes
Parameter | Type | Description |
---|---|---|
code | int | 200 |
message | string | Task Remark |
data | obj | Task Object |
data.task_id | string | Task ID |
Example
Request Attributes
1. Use Preset Voice
2. Use Cloned Voice
Response Attributes
Next you can query the task status and get the task data through the task/detail interface.
Generate Talking Photo Video
Request Headers
Parameter | Required | Type | Description |
---|---|---|---|
Content-Type | true | string | Data Tranmission Type: multipart/form-data |
Request Attributes
1. Synthesizing Audio with Preset Voice
Parameter | Required | Type | Description |
---|---|---|---|
voice_id | true | string | ID of the voice list (voice_id is preferred) |
text | true | string | Text content |
type | true | int | 0:Preset voice |
avatar | false | file | Original avatar image uploaded (priority is given to this field). There are two methods supported to upload avatar images. Supported Format: JPG, PNG, JPEG, WebP |
avatar_url | false | string | Original avatar image uploaded. There are two methods supported to upload avatar image. Supported Format: JPG, PNG, JPEG, WebP |
2. Synthesizing Audio with Cloned Voice
Parameter | Required | Type | Description |
---|---|---|---|
text | true | string | Text content |
style | false | string | Emotion default normal |
lang | true | string | Text content |
avatar | false | file | Original avatar image uploaded (priority is given to this field). There are two methods supported to upload avatar images. Supported Format: JPG, PNG, JPEG, WebP |
avatar_url | false | string | Original avatar image uploaded. There are two methods supported to upload avatar image. Supported Format: JPG, PNG, JPEG, WebP |
type | true | int | 1:Cloned voice |
file | false | file | Original audio file uploaded (priority is given to this field). There are two methods supported to upload audio files. Supported Format: WAV,MP3,MP4,AAC,WebM Maximum 200M |
file_url | false | string | Original audio file uploaded. There are two methods supported to upload audio files. Supported Format: WAV ,MP3, MP4, AAC, WebM (Maximum 200M). |
3. Upload Audio Files Directly
Parameter | Required | Type | Description |
---|---|---|---|
avatar | false | file | Original avatar image uploaded (priority is given to this field). There are two methods supported to upload avatar images. Supported Format: JPG, PNG, JPEG, WebP |
avatar_url | false | string | Original avatar image uploaded. There are two methods supported to upload avatar image. Supported Format: JPG, PNG, JPEG, WebP |
type | true | int | 2:Upload audio |
file | false | file | Original audio file uploaded (priority is given to this field). There are two methods supported to upload audio files. Supported Format: WAV,MP3,MP4,AAC,WebM Maximum 200M |
file_url | false | string | Original audio file uploaded. There are two methods supported to upload audio files. Supported Format: WAV ,MP3, MP4, AAC, WebM (Maximum 200M). |
Response Attributes
Parameter | Type | Description |
---|---|---|
code | int | 200 |
message | string | Task Remark |
data | obj | Task Object |
data.task_id | string | Task ID |
Example
Request Attributes
1. Synthesizing Audio with Preset Voice
2. Synthesizing Audio with Cloned Voice
3. Upload Audio Files Directly
Response Attributes
Next you can query the task status and get the task data through the task/detail interface.
Get Official Voice List
Response Attributes
Parameter | Type | Description |
---|---|---|
voices | array | List of voices. |
voices.voice_id | string | Unique identifier for the voice. |
voices.name | string | Name of the voice. |
voices.country_name | string | Name of the country, |
voices.country_icon_url | string | URL for the country icon. |
voices.preview_audio_url | string | URL for the voice preview. |
voices.gender | string | Gender associated with the voice: male, female, unknown. |
voices.language | string | Language of the voice. |
voices.style_list | array | Available emotions list. |
voices.words_per_minute | string | Task ID |
Example
Response Attributes
Access to Task Detail
Request Attributes
Parameter | Required | Type | Description |
---|---|---|---|
id | true | string | Task ID |
Response Attributes
Parameter | Type | Description |
---|---|---|
id | int | Task ID |
message | int | Information of task. |
status | int | The current status of the task -1: not executed; -2: in execution. |
additional_data | json | Generate results; see details below. |
Example
Request Attributes
Response Attributes
1.ai_headshot
Response Attributes
Parameter | Type | Description |
---|---|---|
img_key | string | Key of generate file |
img_url | string | URL for the generate file. |
Example
2.Talking Photo Preview
Response Attributes
Parameter | Type | Description |
---|---|---|
key | int | Size of generate video. |
url | float | Length of generate video. |
subtitles | bool | Subtitled or not |
audio_size | string | Size of generate audio. |
audio_duration | float | Duration of generate audio. |
Example
3.Generate Videos
Response Attributes
Parameter | Type | Description |
---|---|---|
key | string | Key of generate video. |
url | string | URL of generate video. |
video_720p | obj | Generated 720p video info, or null if there is no video of that definition. |
video_720p.key | string | Generated 720p video info key. |
video_720p.url | string | Generated 720p video info URL. |
video_720p.video_size | int | Generated 720p video info size. |
video_720p.video_duration | float | Generated 720p video info duration. |
video_size | int | Generated video info size. |
video_duration | float | Generated video info duration. |
Example
4.text to image
Response Attributes
Parameter | Type | Description |
---|---|---|
images | array | Array of generate image. |
image_key | string | Key of generate image. |
image_url | string | URL of generate image. |
image_size | int | Size of generate image. |
Example