Skip to main content

Python client SDK for Ultravox.

Project description

Ultravox client SDK for Python

Python client SDK for Ultravox.

pypi-v

Getting started

pip install ultravox-client

Usage

import asyncio
import signal

import ultravox_client as uv

session = uv.UltravoxSession()
done = asyncio.Event()

@session.on("status")
def on_status():
    if session.status == uv.UltravoxSessionStatus.DISCONNECTED:
        done.set()

await session.join_call(os.getenv("JOIN_URL", None))
loop = asyncio.get_running_loop()
loop.add_signal_handler(signal.SIGINT, lambda: done.set())
loop.add_signal_handler(signal.SIGTERM, lambda: done.set())
await done.wait()
await session.leave_call()

See the included example app for a more complete example. To get a joinUrl, you'll want to integrate your server with the Ultravox REST API.

Project details


Download files

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

Source Distribution

ultravox_client-0.0.3.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

ultravox_client-0.0.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file ultravox_client-0.0.3.tar.gz.

File metadata

  • Download URL: ultravox_client-0.0.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.9.3-76060903-generic

File hashes

Hashes for ultravox_client-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f4dfd64405b94652884e760a82ab817f461c7922fc69b925967e55e775134e9e
MD5 c8dfd79435eb1d51f153d5817cc782cd
BLAKE2b-256 18841815e999957f0ac960a71f8dfeb70143664467f243234bf76c4676f00d97

See more details on using hashes here.

File details

Details for the file ultravox_client-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ultravox_client-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.9.3-76060903-generic

File hashes

Hashes for ultravox_client-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a65aabd4378182c72a9aed22cc0c8290858bb202b8d35d33f7c2455e9099c81f
MD5 2f32ed38a2cc49b314d527e9a3f849b8
BLAKE2b-256 8bf8fa0a613594b4720294444cc0867372a29557f6dccd055e66f148ef3dae23

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page