Metadata-Version: 2.5
Name: livekit-plugins-talksign
Version: 0.1.0
Summary: Agent Framework plugin for Talksign sign language avatars
Project-URL: Homepage, https://talksign.co
Project-URL: Documentation, https://github.com/talksign/livekit-plugins-talksign#readme
Project-URL: Repository, https://github.com/talksign/livekit-plugins-talksign
Project-URL: Issues, https://github.com/talksign/livekit-plugins-talksign/issues
Project-URL: Changelog, https://github.com/talksign/livekit-plugins-talksign/blob/main/CHANGELOG.md
Author: Talksign
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: ai,asl,audio,avatar,livekit,realtime,sign language,video,voice,webrtc
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Multimedia :: Sound/Audio
Classifier: Topic :: Multimedia :: Video
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10.0
Requires-Dist: livekit-agents>=1.9.0
Requires-Dist: talksign[video]>=0.2.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: respx>=0.21; extra == 'dev'
Requires-Dist: ruff>=0.6; extra == 'dev'
Description-Content-Type: text/markdown

# Talksign plugin for LiveKit Agents

Support for [Talksign](https://talksign.co) sign language avatars: an **Echo 2.0** avatar signs your agent's replies
in ASL as a video track in the room, while the agent's voice still plays.

```bash
pip install livekit-plugins-talksign   # then: await talksign.AvatarSession().start(session, room=ctx.room)
```

## Pre-requisites

You'll need an API key from the [Talksign Developer Console](https://developer.talksign.co).
It can be set as an environment variable: `TALKSIGN_API_KEY`

## Usage

```python
from livekit.agents import Agent, AgentSession, JobContext
from livekit.plugins import talksign


async def entrypoint(ctx: JobContext):
    session = AgentSession(stt=..., llm=..., tts=...)

    avatar = talksign.AvatarSession(avatar_id="arthur", sign_language="asl")
    await avatar.start(session, room=ctx.room)

    await session.start(agent=Agent(instructions="You are a helpful assistant."), room=ctx.room)
```

What it does:

- publishes a `talksign_avatar` camera track from the agent's own participant (1280x720, 30 FPS by default),
  showing the avatar's idle loop between answers;
- takes the agent's reply text from the session's transcription output and streams it to Echo 2.0, sentence by
  sentence (the transcription itself is forwarded unchanged);
- leaves the agent's audio untouched;
- stops signing and returns to idle when the user interrupts the agent.

Sign → text (Palm) is coming soon.

| Argument | Default | |
|---|---|---|
| `avatar_id` | `"arthur"` | Talksign avatar |
| `sign_language` | `"asl"` | Sign language |
| `api_key` | `TALKSIGN_API_KEY` | Talksign API key |
| `width`, `height`, `fps` | `1280`, `720`, `30` | Video track |
| `client` | new client | Reuse a `talksign.AsyncTalksign` |
| `source_options` | `{}` | Extra `talksign.video.EchoFrameSource` options (`crossfade_ms`, `background`, ...) |

Example agent: [`examples/signing_agent.py`](examples/signing_agent.py). Tested with livekit-agents 1.9.0.

## Development

```bash
pip install -e ../talksign-python[video] -e ".[dev]"
pytest   # offline: a fake Talksign API, a fake room, the real AgentSession
```
