Skip to content

Video Generation

Basic example showing how to create a client and generate an avatar video from text.

This example assumes using AvatarTalk; is in scope and apiKey contains your AvatarTalk API key.

1
2
3
4
5
6
7
8
9
// Create an AvatarTalk client using your API key.
using var client = new AvatarTalkClient(apiKey);

// Generate a lip-synced avatar video from text.
var response = await client.GenerateVideoAsync(
    text: "Hello, welcome to AvatarTalk!",
    avatar: AvatarName.EuropeanMan,
    emotion: Emotion.Happy,
    language: Language.En);