Python client SDK for Ultravox.
Project description
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.
Project details
Release history Release notifications | RSS feed
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.7.tar.gz
(10.2 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.0.7.tar.gz.
File metadata
- Download URL: ultravox_client-0.0.7.tar.gz
- Upload date:
- Size: 10.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82779cf56ec54431473d7a611c6f7b9685222dff4de0ba2f3f597e5c79848d9f
|
|
| MD5 |
906d795f43cba6e64d6553e1209bdd49
|
|
| BLAKE2b-256 |
d2e8717d434afaf72ac054a27875e608075323db84203e8c47fbed18916ff95b
|
File details
Details for the file ultravox_client-0.0.7-py3-none-any.whl.
File metadata
- Download URL: ultravox_client-0.0.7-py3-none-any.whl
- Upload date:
- Size: 12.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e94b0aa031d61c073796f3f631c92226025bc686b32086ba92f49416d82434d
|
|
| MD5 |
c3cdd0e017a3f39495acfba0eee50971
|
|
| BLAKE2b-256 |
85a68a926b53339a61ef1666c3e701c92c2e98489ea7b4c6bc063edca61acbd1
|