Skip to main content

exposes the ondewo-vtsi endpoints in a user-friendly way

Project description

ONDEWO Logo

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

  1. install all the dependencies (make install)
  2. 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


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)

Uploaded Source

Built Distribution

ondewo_vtsi_client-3.5.0-py2.py3-none-any.whl (119.5 kB view hashes)

Uploaded Python 2 Python 3

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