Metadata-Version: 2.5
Name: livekit-plugins-addisai
Version: 0.1.0
Summary: AddisAI STT and TTS plugin for LiveKit Agents
Project-URL: Homepage, https://github.com/DagmawiSolomon/livekit-plugins-addisai.git
License: MIT License
        
        Copyright (c) 2026 Dagmawi Solomon Bedane
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Requires-Python: <3.15,>=3.10
Requires-Dist: httpx>=0.28.1
Requires-Dist: livekit-agents>=1.5.1
Requires-Dist: miniaudio>=1.2
Description-Content-Type: text/markdown

# AddisAI LiveKit Plugins

> [!CAUTION]
> **This project is currently under active development.**
> It is not yet optimized for performance or hardened for production use. Expect potential bugs and lack of fault tolerance.

This repository provides LiveKit plugins for [AddisAI](https://addisai.ch/)'s STT (Speech-to-Text) and TTS (Text-to-Speech)

## Setup Guide

Follow these steps to set up the AddisAI plugin with a LiveKit.

### 1. Prerequisites

- [Python 3.10+](https://www.python.org/downloads/)
- [uv](https://github.com/astral-sh/uv) (recommended for fast package management)
### 2. Clone the Repositories

First, clone this plugin repository:

```bash
git clone https://github.com/DagmawiSolomon/livekit-plugins-addisai
```

Then, clone the LiveKit Agent Starter (Python) repository into a separate folder:

```bash
git clone https://github.com/livekit-examples/agent-starter-python
```

### 3. Environment Setup

Navigate to the `agent-starter-python` directory

```bash
cd agent-starter-python
```

Install the dependencies:

```bash
uv sync
```

### 4. Plugin Installation

Add the `livekit-plugins-addisai` package to your project by providing the path to your local clone:

```bash
uv add ../livekit-plugins-addisai
```

### 5. Configuration

Create a `.env.local` file in the `agent-starter-python` directory and add your credentials:

> [!IMPORTANT]
> Use `.env.local` as the filename or ensure you update the `load_dotenv` call in `src/agent.py`, as the starter repo is configured to load `.env.local` by default.

```env
LIVEKIT_URL=<your-livekit-url>
LIVEKIT_API_KEY=<your-api-key>
LIVEKIT_API_SECRET=<your-api-secret>

# AddisAI Credentials
ADDISAI_API_KEY=<your-addisai-api-key>
```

### 6. Quick Start Example

You can use the AddisAI plugin in your agent by importing it and configuring it within your `AgentSession`:

```python
from livekit.plugins import addisai
from livekit.agents import AgentSession

# ... inside your agent worker (e.g., my_agent function) ...
async def my_agent(ctx: JobContext):
    # Set up the AgentSession with AddisAI components for Amharic
    session = AgentSession(
        # AddisAI STT for Amharic
        stt=addisai.STT(language="am"),
        llm=inference.LLM(model="openai/gpt-4.1-mini"),
        # AddisAI TTS for Amharic
        tts=addisai.TTS(language="am"),
    )

    # Start the session with your Assistant agent
    await session.start(agent=Assistant(), room=ctx.room)
```

Run your agent:

```bash
uv run .\src\agent.py console
```
