Python client for the VoiceBlender API
Project description
voiceblender-python
[!IMPORTANT] This library is auto-generated. Models, request/response/event types, and method bindings are produced by
tools/generate.pyfrom the OpenAPI/AsyncAPI specs (see 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 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.
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
pip install voiceblender
Quick start (async)
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)
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
make generate # regenerate from openapi.yaml + asyncapi.yaml
make test # run pytest
make lint # ruff check
make typecheck # mypy --strict
License
MIT. See LICENSE.
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
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
File details
Details for the file voiceblender-1.0.0.tar.gz.
File metadata
- Download URL: voiceblender-1.0.0.tar.gz
- Upload date:
- Size: 87.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
857bfa76fd184c05d291aef2b3d7cb7b9b8faa2a7d4a260717c7e54b915024f6
|
|
| MD5 |
4404c6fa295b5a51d5d010b8e9c6c011
|
|
| BLAKE2b-256 |
f950b9c971c89e20da353afa07aef60ca2e8938e1423a33b38f28c000f50d15c
|
File details
Details for the file voiceblender-1.0.0-py3-none-any.whl.
File metadata
- Download URL: voiceblender-1.0.0-py3-none-any.whl
- Upload date:
- Size: 54.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd26a4a97245d79541c39b42d226c47a60113385deafcd8d2c182f01914ed12b
|
|
| MD5 |
79e460e31a88f037444983d4af54552a
|
|
| BLAKE2b-256 |
f60bc7ee428f3aad2642c138569b2b1ed7f01a5c3c5c6520e12383361ecbb249
|