Skip to content

AvatarTalk

Modern .NET SDK for AvatarTalk generated from the provider's OpenAPI definition with AutoSDK.

Nuget package dotnet License: MIT Discord

Generated from the source spec

Built from AvatarTalk's OpenAPI definition so the SDK stays close to the upstream API surface.

Auto-updated

Designed for fast regeneration and low-friction updates when the upstream API changes without breaking compatibility.

Modern .NET

Targets current .NET practices including nullability, trimming, NativeAOT awareness, and source-generated serialization.

Docs from examples

Examples stay in sync between the README, MkDocs site, and integration tests through the AutoSDK docs pipeline.

Usage

1
2
3
using AvatarTalk;

using var client = new AvatarTalkClient(apiKey);

Video Generation

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

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);

MEAI Tools

Using AvatarTalk as AIFunction tools with any Microsoft.Extensions.AI IChatClient.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
using var client = new AvatarTalkClient(apiKey);

// Create AIFunction tools from the AvatarTalk client.
var generateVideoTool = client.AsGenerateVideoTool();
var createSessionTool = client.AsCreateLiveKitSessionTool();
var deleteSessionTool = client.AsDeleteLiveKitSessionTool();
var paymentStatusTool = client.AsGetPaymentStatusTool();

// Verify all tools are created with the expected names.

// These tools can be passed to any IChatClient for function calling.
var tools = new[] { generateVideoTool, createSessionTool, deleteSessionTool, paymentStatusTool };

Support

Bugs

Open an issue in tryAGI/AvatarTalk.

Ideas and questions

Use GitHub Discussions for design questions and usage help.

Community

Join the tryAGI Discord for broader discussion across SDKs.

Acknowledgments

JetBrains logo

This project is supported by JetBrains through the Open Source Support Program.