Skip to main content

Synthesia plugin for LiveKit Agents

Attach a Synthesia interactive avatar to a LiveKit voice agent. The avatar joins the room and lip-syncs the agent's speech in real time.

See the Synthesia integration docs for more information.

Installation

pip install livekit-plugins-synthesia

Pre-requisites

You'll need an API key from Synthesia. It can be set as an environment variable: SYNTHESIA_API_KEY

Usage

from livekit.plugins import synthesia

avatar = synthesia.AvatarSession(
    synthesia.AvatarConfig(
        avatar_ids=["03cee7ec-ac90-45ec-8c20-74a399cf3dc4"]
    ),  # SYNTHESIA_API_KEY from env
)
await avatar.start(session, room=ctx.room)  # before session.start
await session.start(agent=Agent(...), room=ctx.room)

Set your Synthesia workspace API key in SYNTHESIA_API_KEY, or pass api_key=. avatar_ids takes one to five gallery ids of avatars available to your workspace. The first is the active avatar; the rest are precomputed by the worker so swap_avatar() can switch to them mid-session. An id your workspace cannot access raises synthesia.SynthesiaError with type=synthesia.ErrorType.UNKNOWN_AVATAR.

await avatar.swap_avatar("<another-id-from-avatar-ids>")  # switch mid-session
await avatar.swap_avatar("default")  # back to the first id

Parameters

Parameter Default Description
avatar_participant_identity "synthesia-avatar-agent" The LiveKit identity the avatar joins under. Must be unique per concurrent avatar in a room: LiveKit evicts an existing participant when a second joins with the same identity, so give each avatar its own identity to run several in one room.
avatar_participant_name "Synthesia avatar" The LiveKit display name the avatar joins under.
avatar = synthesia.AvatarSession(
    synthesia.AvatarConfig(avatar_ids=["03cee7ec-ac90-45ec-8c20-74a399cf3dc4"]),
    avatar_participant_identity="avatar-host",
)

Metadata

Release files for livekit-plugins-synthesia 1.8.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livekit-plugins-synthesia 1.8.7
File Size Uploaded
livekit_plugins_synthesia-1.8.7.tar.gz 13.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for livekit-plugins-synthesia 1.8.7
File Interpreter ABI Platform
livekit_plugins_synthesia-1.8.7-py3-none-any.whl Python 3 none any Details

Total release size: 29.6 kB

Release files / livekit_plugins_synthesia-1.8.7.tar.gz

Download URL livekit_plugins_synthesia-1.8.7.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
487422e3f200729b7e48f0e1cd26ec749d7eff58d221c1b7f7b7377d23b6eba8
BLAKE2b-256 checksum
How to use checksums
aa6a50c5bf4781a64333c7725443a21910dbb9e3618c04e2908ee0d9a2c40912
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / livekit_plugins_synthesia-1.8.7-py3-none-any.whl

Download URL livekit_plugins_synthesia-1.8.7-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
959bcb3cef11b03047efc5a6fc13ca1a74c9fe80410e5c3b83d917ac6354f68c
BLAKE2b-256 checksum
How to use checksums
5a6a6c83370001a5d1136fb31c80c8f5127f65a7f2ac9e5be71e0b2f2ca6a247
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release history Release notifications | RSS feed

1.8.8

2 release files

This release

1.8.7 This release

2 release files

1.8.6

2 release files

1.8.5

2 release files

1.8.4

2 release files

1.8.3

2 release files

1.8.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page