Metadata-Version: 2.4
Name: voiceblender
Version: 1.0.0
Summary: Python client for the VoiceBlender API
Project-URL: Homepage, https://voiceblender.com
Project-URL: Repository, https://github.com/VoiceBlender/voiceblender-python
Author: Messageroute Ltd
License: MIT License
        
        Copyright (c) 2026 Messageroute Ltd
        
        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
Keywords: sip,telephony,voice,voiceblender,webrtc
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT 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: Topic :: Communications :: Telephony
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Requires-Dist: pydantic>=2.6
Requires-Dist: websockets>=13
Provides-Extra: dev
Requires-Dist: mypy>=1.11; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruamel-yaml>=0.18; extra == 'dev'
Requires-Dist: ruff>=0.6; extra == 'dev'
Description-Content-Type: text/markdown

# voiceblender-python

> [!IMPORTANT]
> **This library is auto-generated.** Models, request/response/event types, and
> method bindings are produced by `tools/generate.py` from the OpenAPI/AsyncAPI
> specs (see [Code generation](#code-generation)). Do **not** edit the generated
> sources directly — your changes will be overwritten on the next run. Open pull
> requests against the generator (`tools/generate.py`) and/or the upstream specs
> only.

Python client for the [VoiceBlender](https://voiceblender.com) API.

VoiceBlender bridges SIP and WebRTC voice calls with multi-party audio mixing,
real-time speech-to-text, text-to-speech, AI agent integration, recording, and
webhook-based event delivery.

This is a Python port of [voiceblender-go](https://github.com/VoiceBlender/voiceblender-go).
Models, request types, response types, event types, and method bindings are
**code-generated** from `../VoiceBlender/openapi.yaml` + `asyncapi.yaml` by
`tools/generate.py` — the same spec-driven pattern as the Go SDK.

## Installation

```bash
pip install voiceblender
```

## Quick start (async)

```python
import asyncio
import voiceblender

async def main():
    async with voiceblender.Client(base_url="http://localhost:8080/v1") as c:
        leg = await c.create_leg(voiceblender.CreateLegRequest(
            type=voiceblender.LegType.SIP_OUTBOUND,
            to="sip:alice@example.com",
        ))
        print("Created leg:", leg.id)

asyncio.run(main())
```

## Quick start (sync)

```python
from voiceblender.sync import SyncClient
import voiceblender

with SyncClient(base_url="http://localhost:8080/v1") as c:
    leg = c.create_leg(voiceblender.CreateLegRequest(
        type=voiceblender.LegType.SIP_OUTBOUND,
        to="sip:alice@example.com",
    ))
    print("Created leg:", leg.id)
```

## Code generation

```bash
make generate   # regenerate from openapi.yaml + asyncapi.yaml
make test       # run pytest
make lint       # ruff check
make typecheck  # mypy --strict
```

## License

MIT. See [LICENSE](LICENSE).
