Skip to main content

LiveAvatar plugin for Vision Agents

Project description

LiveAvatar Plugin for Vision Agents

Real-time interactive avatar via LiveAvatar (by HeyGen). Uses LITE mode with the custom-agent integration path.

Features

  • Real-time avatar video synchronized with TTS audio
  • Works with any TTS provider (Cartesia, ElevenLabs, Deepgram, etc.)
  • Supports both standard and Realtime LLMs

Installation

uv add "vision-agents[liveavatar]"
# or directly
uv add vision-agents-plugins-liveavatar

Quick Start

import asyncio
from uuid import uuid4
from dotenv import load_dotenv

from vision_agents.core import Agent, User
from vision_agents.plugins import deepgram, gemini, getstream, liveavatar

load_dotenv()


async def start_avatar_agent():
    agent = Agent(
        edge=getstream.Edge(),
        agent_user=User(name="AI Assistant with Avatar", id="agent"),
        instructions="You're a friendly AI assistant.",

        llm=gemini.LLM(),
        tts=deepgram.TTS(),
        stt=deepgram.STT(),

        avatar=liveavatar.Avatar(),
    )

    call = await agent.create_call("default", str(uuid4()))

    async with agent.join(call):
        await agent.simple_response("Hello! I'm your AI assistant with an avatar.")
        await agent.finish()


if __name__ == "__main__":
    asyncio.run(start_avatar_agent())

Configuration

Environment Variables

LIVEAVATAR_API_KEY=your_liveavatar_api_key
LIVEAVATAR_AVATAR_ID=your_avatar_uuid

Avatar Options

liveavatar.Avatar(
    avatar_id="...",                # LiveAvatar avatar UUID (or set LIVEAVATAR_AVATAR_ID)
    api_key="...",                  # (or set LIVEAVATAR_API_KEY)
    base_url=None,                  # Override https://api.liveavatar.com if needed
    is_sandbox=True,                # Sandbox sessions don't burn credits but are duration-capped. Set False in production.
    max_session_duration=None,      # Seconds; None means LiveAvatar's default
    video_quality="high",           # "low" | "medium" | "high" | "very_high"
    video_encoding="H264",          # "H264" | "VP8"
    width=1920,
    height=1080,
)

Requirements

  • Python 3.10+
  • LiveAvatar API key — see docs.liveavatar.com
  • GetStream account for the user-facing call
  • TTS provider or Realtime LLM

License

MIT

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vision_agents_plugins_liveavatar-0.6.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file vision_agents_plugins_liveavatar-0.6.2.tar.gz.

File metadata

  • Download URL: vision_agents_plugins_liveavatar-0.6.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vision_agents_plugins_liveavatar-0.6.2.tar.gz
Algorithm Hash digest
SHA256 eba7beb749e79d18b8713290f6b5b91b184fb490f3a8d8be8de31b3760a24126
MD5 d0ed75ccc24e4c6d860251dc1defd6e6
BLAKE2b-256 ad293e402e492383d6e4e008ff33fae811836e3de4e6a1aeab1011475ddba971

See more details on using hashes here.

File details

Details for the file vision_agents_plugins_liveavatar-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: vision_agents_plugins_liveavatar-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vision_agents_plugins_liveavatar-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f0fc9a6dda4c63139b9094a480e21486660dea471058f5a5c120c819415ecd8a
MD5 bf30cc3955de06fd5c36ac13cbbc1306
BLAKE2b-256 acd50571b1c024c5ac65e860deb4b2c36811f58a8f0300f4a250bf0c47fc2bda

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page