Metadata-Version: 2.4
Name: sesli-ai
Version: 1.0.0
Summary: SesliAI Python SDK - Turkish-first AI voice platform
Home-page: https://github.com/MetaTechSoftwareCorp/sesli-ai
Author: MetaTech Software / SesliAI
Author-email: mehmet.yildiz@metatech.com.tr
License: Apache-2.0
Keywords: sdk async voice-cloning marketplace tts text-to-speech turkish sesli ai voice synthesis
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software 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
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.28.0
Requires-Dist: websocket-client>=1.6.0
Provides-Extra: async
Requires-Dist: httpx>=0.24.0; extra == "async"
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-timeout>=2.1; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# sesli-ai

[![PyPI version](https://img.shields.io/pypi/v/sesli-ai.svg)](https://pypi.org/project/sesli-ai/)
[![Python versions](https://img.shields.io/pypi/pyversions/sesli-ai.svg)](https://pypi.org/project/sesli-ai/)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)

Turkish-first AI voice platform SDK. High-quality Turkish speech synthesis and real-time voice agents with KVKK-compliant data residency in Turkey.

## Installation

```bash
pip install sesli-ai
```

For async support (requires [httpx](https://www.python-httpx.org/)):

```bash
pip install sesli-ai[async]
```

## Quick Start

```python
from sesli_ai import SesliAI

client = SesliAI(api_key="your-api-key", base_url="https://api.sesli.ai")

# Text-to-speech
audio = client.tts.synthesize(text="Merhaba dunya", voice_id="default-tr")
with open("output.wav", "wb") as f:
    f.write(audio)
```

## Streaming

```python
from sesli_ai import StreamingClient

streamer = StreamingClient(api_key="your-api-key")
for chunk in streamer.stream("Merhaba dunya!", voice_id="tr-female-01"):
    play(chunk)  # raw PCM int16 LE bytes
```

## Async Usage

Requires `pip install sesli-ai[async]`.

```python
import asyncio
from sesli_ai import AsyncSesliAI

async def main():
    async with AsyncSesliAI(api_key="your-api-key", base_url="https://api.sesli.ai") as client:
        audio = await client.tts.synthesize(text="Merhaba dunya", voice_id="default-tr")
        with open("output.wav", "wb") as f:
            f.write(audio)

asyncio.run(main())
```

## Links

- **GitHub:** [github.com/AhmetHTTP/sesliapi](https://github.com/AhmetHTTP/sesliapi)
- **Documentation:** https://docs.sesli.ai
- **License:** Apache 2.0
