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

Uploaded Source

Built Distribution

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

ultravox_client-0.0.9-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ultravox_client-0.0.9.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/6.9.3-76060903-generic

File hashes

Hashes for ultravox_client-0.0.9.tar.gz
Algorithm Hash digest
SHA256 9e40652969642af9a735fba1863500e8cbee1a4804232ec3e98c714f7b661d0f
MD5 7dc9a51090e3587f2dd487746dd2cdfa
BLAKE2b-256 629f7a1c21d3908164c24e12042214c0c7d4521a114666b95ae36e3139323bff

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ultravox_client-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 192f3498b51a45d406b04b4e75c6d7ea20519418e9b6ea3ad247b363c7fa3a82
MD5 d6424567437c329dcadf20eb34405820
BLAKE2b-256 226d0ea85fd0a70d0d51a428fdbac1439d0c0ab22a17672f821596e23d30d9a5

See more details on using hashes here.

Supported by

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