Metadata-Version: 2.4
Name: pipecat-awaazai
Version: 0.1.0
Summary: AwaazAI WebSocket frame serializer for Pipecat for hosting agents on telephony
Project-URL: Homepage, https://github.com/awaazde/pipecat-awaazai
Project-URL: Repository, https://github.com/awaazde/pipecat-awaazai
Project-URL: Issues, https://github.com/awaazde/pipecat-awaazai/issues
Author: AwaazAI Team
License: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Requires-Dist: deepgram-sdk<4.0.0
Requires-Dist: pipecat-ai[silero,websocket]
Requires-Dist: pydantic
Requires-Dist: python-dotenv
Requires-Dist: uvicorn[standard]
Description-Content-Type: text/markdown

# Pipecat AwaazAI TTS Integration

Host your Pipecat agents with [AwaazAI](https://www.awaaz.ai/) telephony stack.

**Maintainer:** AwaazAI

## Installation

```bash
pip install pipecat-awaazai
```

## Prerequisites

- Purchase a Phone number from AwaazAI  

## Usage with Pipecat Pipeline

`AwaazAIFrameSerializer` convert between frames and media streams, enabling real-time communication over a websocket to host agent over AwaazAI's telephony stack over an indian phone number

```python
from pipecat import AwaazAIFrameSerializer

    transport = FastAPIWebsocketTransport(
        websocket=websocket_client,
        params=FastAPIWebsocketParams(
            audio_out_enabled=True,
            add_wav_header=True,
            vad_enabled=True,
            vad_analyzer=SileroVADAnalyzer(sample_rate=8000),
            vad_audio_passthrough=True,
            serializer=AwaazAIFrameSerializer(stream_id),
            audio_out_sample_rate=8000
        ),
    )
```

See [`example.py`](example.py) for a complete working example including event handlers and transport setup.

## Running the Example

1. Install dependencies:
    ```bash
    uv sync
    ```

2. Set up your environment

   ```bash
   cp env.example .env
   ```

3. Run:
    ```bash
    uv run python example.py
    ```

The bot will create a websocket that will accept connections from AwaazAI assigned phone number. Once websocket is running, call AwaazAI assigned phone number and it will provide agent over call

## Compatibility

**Tested with Pipecat v0.0.98**

- Python 3.9+

## License

BSD-2-Clause - see [LICENSE](LICENSE)

## Support

- Docs: https://docs.awaaz.de/voice-hosting/custom (refer to API docs for message formats)
- Pipecat Discord: https://discord.gg/pipecat (`#community-integrations`)