Skip to main content

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). 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

voiceblender-0.13.0.tar.gz (110.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

voiceblender-0.13.0-py3-none-any.whl (73.9 kB view details)

Uploaded Python 3

File details

Details for the file voiceblender-0.13.0.tar.gz.

File metadata

  • Download URL: voiceblender-0.13.0.tar.gz
  • Upload date:
  • Size: 110.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for voiceblender-0.13.0.tar.gz
Algorithm Hash digest
SHA256 a5ec2b3ea0a1ad8a6ef292eb0c49b53b9a162ad5c57b157808a69dafa5cf44c7
MD5 73fd94545b72f4b22643406c576471d7
BLAKE2b-256 ca67e78d9b97e9006e7fb228c1c9a524e54302a211d102722a511ed721ea3db2

See more details on using hashes here.

File details

Details for the file voiceblender-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: voiceblender-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 73.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for voiceblender-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af74891d89d134a8c6def9ac2e5c8c0566b1c9c40a5deb47e8f9961d2b435259
MD5 d229f4544646901d5fc96b36dd8ae1a9
BLAKE2b-256 b16bfd9ae3e17d55f45db82ddc52f13ec1223baf6f4f02914603b5109c50ec90

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.0

2 files

This release

0.13.0 This release

2 files

0.12.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page