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.6.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

ultravox_client-0.0.6-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ultravox_client-0.0.6.tar.gz
Algorithm Hash digest
SHA256 543651fff125c915943fafd93b440776a3815d84b958aa2883c89784f49e32b8
MD5 c8941431e247b199265076869c3c569e
BLAKE2b-256 03c9e5829bca17e4ecaa8a1cc41d2ae0869c107a4bb5814924c28265384c09e2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ultravox_client-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d0d0b63e0cca9a97368b3602bfc434d7d366bf1be5af7c31e8edb78c4426d777
MD5 83de3690996dbee57e4b817cdc646424
BLAKE2b-256 40c6751f08a1f55443682a84a241184b161817e8f9cff2c9ff74d4f675faad61

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