Ultravox client SDK for Python
Python client SDK for Ultravox.
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.
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.1.0.tar.gz
(10.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ultravox_client-0.1.0.tar.gz.
File metadata
- Download URL: ultravox_client-0.1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
043a33ceaea61da66f7b4140c06442ea945d15192007e99fb622620353e3dd48
|
|
| MD5 |
2b9c8c6bbcd682cf1c54faf374399c76
|
|
| BLAKE2b-256 |
21b270bce5743494f19d0bbb8680b2aa3b9d058d0b6cbafb583f90850328f8d5
|
File details
Details for the file ultravox_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ultravox_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25be38aed5e845fb936778083860e7bf2681df880a4ca383b307ff168c6741f6
|
|
| MD5 |
448b6a39e827d067187cc69a7f35baa9
|
|
| BLAKE2b-256 |
28610fa12e1caff94242a7a50695e6529161af5b635212757512a6811c5514d6
|