Metadata-Version: 2.5
Name: pipecat-talksign
Version: 0.1.0
Summary: Talksign sign language avatar for Pipecat: an Echo 2.0 avatar signs your bot's replies.
Project-URL: Homepage, https://talksign.co
Project-URL: Documentation, https://github.com/talksign/pipecat-talksign#readme
Project-URL: Repository, https://github.com/talksign/pipecat-talksign
Project-URL: Issues, https://github.com/talksign/pipecat-talksign/issues
Project-URL: Changelog, https://github.com/talksign/pipecat-talksign/blob/main/CHANGELOG.md
Author: Talksign
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: accessibility,asl,avatar,pipecat,sign language,talksign,voice agent
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Multimedia :: Video
Requires-Python: >=3.10
Requires-Dist: pipecat-ai<2,>=1.17
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

# pipecat-talksign

A [Talksign](https://talksign.co) sign language avatar for [Pipecat](https://github.com/pipecat-ai/pipecat).
Your bot's replies are signed in ASL by an **Echo 2.0** avatar while its voice still plays.

```sh
pip install pipecat-talksign   # then add TalksignVideoService() after your TTS
```

**Maintainer:** Talksign &middot; **Tested with:** Pipecat 1.17.0 &middot; Python 3.10+

## What it does

`TalksignVideoService` is a frame processor that goes right after the TTS service:

- reads the text the bot speaks (`TTSTextFrame`) and streams it to Echo 2.0, sentence by sentence;
- pushes the avatar video as `OutputImageRawFrame` (RGB) at 30 FPS, with the avatar's idle loop between answers;
- on `InterruptionFrame` (the user barges in) stops signing at once and returns to idle;
- passes every frame through unchanged, so audio and text reach the transport as before.

Sign → text (Palm) is **coming soon**.

## Usage

Get an API key in the [Developer Console](https://developer.talksign.co) and set `TALKSIGN_API_KEY`.

```python
from pipecat_talksign import TalksignVideoService

signer = TalksignVideoService(avatar="arthur", language="asl", width=1280, height=720)

pipeline = Pipeline(
    [
        transport.input(),
        stt,
        user_aggregator,
        llm,
        tts,
        signer,  # after TTS
        transport.output(),
        assistant_aggregator,
    ]
)
```

Enable video on the output transport with the same size:
`video_out_enabled=True, video_out_is_live=True, video_out_width=1280, video_out_height=720`.

| Argument | Default | |
|---|---|---|
| `api_key` | `TALKSIGN_API_KEY` | Talksign API key |
| `avatar` | `"arthur"` | Avatar id |
| `language` | `"asl"` | Sign language |
| `width`, `height`, `fps` | `1280`, `720`, `30` | Output video |
| `text_source` | `"tts"` | `"tts"`: sign spoken text (`TTSTextFrame`). `"llm"`: sign `LLMTextFrame` (place after the LLM; lower latency) |
| `client` | new client | Reuse a `talksign.AsyncTalksign` |
| `source_options` | `{}` | Extra `talksign.video.EchoFrameSource` options (`crossfade_ms`, `background`, …) |

## Example

[`examples/signing_bot.py`](examples/signing_bot.py): Deepgram + OpenAI + Cartesia voice bot with a signing avatar,
run with the Pipecat development runner (`python examples/signing_bot.py -t daily`).

## Development

```sh
pip install -e ../talksign-python[video] -e ".[dev]"
pytest   # offline: a fake Talksign API serves tiny ffmpeg-made clips
```

## License

Apache-2.0
