exposes the ondewo-vtsi endpoints in a user-friendly way
Project description
ONDEWO Voice Client
Ondewo VTSI Client Python
The vtsi client allows for easy control of the ONDEWO VTSI server. With it, you can configure the connection to text-to-speech, speech-to-text, conversational-ai etc. It allows for making large numbers of voip-calls in parallel, and returns detailed logs regarding the status of the calls.
Quickstart
- install all the dependencies (
make install
) - set up ssh tunnel to the voip-server machine (
ssh -fNL 40045:localhost:40045 <machine ip>
)
Ipython example
from ondewo.vtsi.voip_server_client import VtsiServerClient
voip_host = 'localhost'
voip_port = '40045'
client = VtsiServerClient.get_minimal_client(voip_host=voip_host, voip_port=voip_port)
ids = client.get_call_ids()
for id in ids:
status = client.get_instance_status(id)
try:
health = status.helth
except:
health = None
try:
log = status.last_log
except:
log = None
print(f"call: {id}, health: {health}, last_log: {log}")
Script example
python script.py
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
ondewo-vtsi-client-3.5.0.tar.gz
(102.8 kB
view hashes)
Built Distribution
Close
Hashes for ondewo_vtsi_client-3.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69cf35fe06f0c9572f0241735fd3aad2eeb350f4a5511402f61af3efdcfadaef |
|
MD5 | 71204e7425de9f42bff8eb35ee05c486 |
|
BLAKE2b-256 | 29b1722b4966344dcaca6f71d43432669c0e5712adccc202ef047231b1472250 |