Skip to main content

VoiceInsights Python SDK

Project description

--------------------
--------------------

# Install the package

you can install the package locally in the current folder by using the following command:

#from test PIP repo
pip install -t ./ -i https://testpypi.python.org/pypi VoiceInsights

#from main public PIP repo
pip install -t ./ VoiceInsights

--------------------
--------------------

## SDK usage:


from voicelabs import VoiceInsights

appToken = '<YOUR APP TOKEN>'
vi = VoiceInsights()

def on_session_started(session_started_request, session):
# Called when the session starts """
vi.initialize(appToken, session)

def on_intent(intent_request, session):
intent = intent_request['intent']
intent_name = intent_request['intent']['name']

response = None
#Logic to populate response goes here

#invoke SDK track method like follows
vi.track(intent_name, intent_request, response)

return response


--------------------
--------------------

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for voicelabs, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size voicelabs-0.0.10-py2.py3-none-any.whl (4.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size voicelabs-0.0.10.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page