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.10.tar.gz
(3.6 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 voicelabs-0.0.10.tar.gz.
File metadata
- Download URL: voicelabs-0.0.10.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51f1e1b055543053c72ed01bd1186754154e1bf8505f818aebfbf6e2d50591f4
|
|
| MD5 |
0f34f9db83473412f824c4457e25f0e1
|
|
| BLAKE2b-256 |
f3c164afba0ae68d30f8b36279b398854fc31de0316cf8dafa56cc0574eb4b44
|
File details
Details for the file voicelabs-0.0.10-py2.py3-none-any.whl.
File metadata
- Download URL: voicelabs-0.0.10-py2.py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d234c0d7558b007a21baefd7adcf3961946fc9549d7747aa0ce5ac89d77c5029
|
|
| MD5 |
7839bfc0e517cf3539154b2a7e5df5aa
|
|
| BLAKE2b-256 |
dca86323c10c076b2c7d67ea2396c202d0043e81fcc4990147625a08b12dd831
|