SesliAI Python SDK - Turkish-first AI voice platform
Project description
sesli-ai
Turkish-first AI voice platform SDK. High-quality Turkish speech synthesis and real-time voice agents with KVKK-compliant data residency in Turkey.
Installation
pip install sesli-ai
For async support (requires httpx):
pip install sesli-ai[async]
Quick Start
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
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].
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
- Documentation: https://docs.sesli.ai
- License: Apache 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sesli_ai-1.0.0.tar.gz
(17.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
sesli_ai-1.0.0-py3-none-any.whl
(18.4 kB
view details)
File details
Details for the file sesli_ai-1.0.0.tar.gz.
File metadata
- Download URL: sesli_ai-1.0.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7eedbc6f04f6cb22b6a12b20843f669241c0bfd44e6e787e79557c2c5407ebe6
|
|
| MD5 |
eaac633833d48f985b6b5d65ea74d226
|
|
| BLAKE2b-256 |
2592b88717893f4a64ea2aee9bc775525146c21b53c72a34feb5844ba8a64d9a
|
File details
Details for the file sesli_ai-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sesli_ai-1.0.0-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a7515fe13f82f94fb39b8b1bba444ca888f5bb3f98b28b3faa94453b2816b95
|
|
| MD5 |
fa9699187252f4baf2ef34e150ae208f
|
|
| BLAKE2b-256 |
ed111cf980480dba578462fc809c30875b078b7be9476a3f85f7c99458d8d1ea
|