Using Audio Source as Voice
create avatar video by uploading audio.
Introduction
You can create Avatar videos using your custom audio.
Additionally, you can adjust the Avatar using avatar_id
and modify the voice with voice_id
.
Upload Audio
You can upload audio to obtain your asset_id.
Please refer to the Upload Media for more details.
Obtain the Signed URL
Before uploading a file, you need to obtain a signed URL via an API request. Here’s an example response:
sign_url: Use this URL to upload the file.
Use cURL to Upload the File
Use the following cURL command to upload the file to the server. Make sure to replace <file-binary-data> with the actual binary data of the file.
Create Talking Avatar Video
Please refer to the Create Talking Avatar Videos for more details.
Response example:
Get the generated video
Use the project_id obtained from the “Generate Video from Product Information” step to retrieve details about the video generation, including status and duration. Access the generated video using the video_url.
Please refer to the GetGeneratedVideo for the full options of enums.
Response example: