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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ultravox_client-0.0.4.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.9 Darwin/24.0.0

File hashes

Hashes for ultravox_client-0.0.4.tar.gz
Algorithm Hash digest
SHA256 08081d0f56b73d357f8745c59ec6259049005b21622826c84c7160a4afe771f9
MD5 6024f994601e06302a3ad57c4ac5f42d
BLAKE2b-256 a78f7d895ab3df9b50612545e938c17601571affb9827e799d1380a39907cf0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ultravox_client-0.0.4-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.11.9 Darwin/24.0.0

File hashes

Hashes for ultravox_client-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a560cda7e514270d6107b3a029c6d37803c92895e8fbce02fbf6ff3fa87b68dc
MD5 503d5676ebd76e10fcf1fb78944be63d
BLAKE2b-256 2896544d1e8592f77d609a972ed0632e4c2ae15638d4b492e376fd2d1da04bec

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