This topic describes how to integrate an avatar video into a timeline by using the text content, MediaId, and MediaURL.
Procedure
You can learn about avatars through the following topics:
Background information
You can use the methods described in this topic to integrate avatars into a timeline and generate videos.
You can use one of the following methods to configure avatars on the timeline based on specific scenarios and your business requirements:
Text specified by the Content parameter.
The ID of the audio file specified by the MediaId parameter.
The URL of the audio file specified by the MediaURL parameter.
Method 1: Generate an avatar video by using text
You only need to enter text content. The system generates a video in which the avatar reads the text. This process is similar to the process described in the Convert text into audio topic. You can specify the type, intonation, and speed of the voice to generate avatar videos of different speech styles.
In the following example, two video tracks are used. The first track has a global image, which is used as the background. The second track contains an avatar video generated based on text content.
In the avatar clip on the second track, Yunchen is specified as the avatar, and Zhitian is specified as the speaker. The text content for the avatar is configured in the Content field.
AI_ASR is specified to automatically generate subtitles.
Effect | Timeline example |
|
Method 2: Generate an avatar video by configuring the MediaId parameter
You can specify the ID of an audio file in the MediaId parameter to generate an avatar video. To obtain the audio file ID, upload or register the file in the Intelligent Media Services (IMS) console.
In the following example, two video tracks are used. The first track has a global image, which is used as the background. The second track contains an avatar video generated based on an audio file specified by MediaId.
In the avatar clip on the second track, Yunxin is specified as the avatar.
AI_ASR is specified to automatically generate subtitles.
Effect | Timeline example |
|
Method 3: Generate an avatar video by configuring the MediaURL parameter
If you store an audio file in an Object Storage Service (OSS) bucket, you can specify the URL of the audio file in the MediaURL parameter to generate an avatar video. This way, you do not need to register the audio file.
In the following example, two video tracks are used. The first track has a global image, which is used as the background. The second track contains an avatar video generated based on an audio file specified by MediaURL.
In the avatar clip on the second track, Yunxin is specified as the avatar.
AI_ASR is specified to automatically generate subtitles.
Effect | Timeline example |
|