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
--------------------
--------------------
--------------------
# 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
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
voicelabs-0.0.9.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for voicelabs-0.0.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 550d1d173472a2e52bb00c0189e3b98275cc8b3e94836ca5dd46ecb381261dfa |
|
MD5 | 9af5418d45586b0f11876d30c445e544 |
|
BLAKE2b-256 | fb7c3c953804ab9bb90641135078451296732df7c82fcd799df4116b44ab86c1 |