VoiceInsights Python SDK for Google Assistant
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 voicelabs-assistant
#from main public PIP repo
pip install -t ./ voicelabs-assistant
--------------------
--------------------
## SDK usage:
#import sdk
from voicelabs import VoiceInsights
#instantiate SDK object globally. You only need one object.
appToken = '<YOUR APP TOKEN>'
vi = VoiceInsights(appToken)
#track your events. Example Flask implementation
@app.route('/intent', methods = ['POST'])
def api_intent_handler():
req_json = request.get_json()
data = req_json['originalRequest']['data']
intentName = req_json['result']['metadata']['intentName']
...
#tts string could be plain text or a valid SSML
tts = "Here is my response to the user"
...
resp = vi.track( intentName, data, tts )
--------------------
--------------------
--------------------
# 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 voicelabs-assistant
#from main public PIP repo
pip install -t ./ voicelabs-assistant
--------------------
--------------------
## SDK usage:
#import sdk
from voicelabs import VoiceInsights
#instantiate SDK object globally. You only need one object.
appToken = '<YOUR APP TOKEN>'
vi = VoiceInsights(appToken)
#track your events. Example Flask implementation
@app.route('/intent', methods = ['POST'])
def api_intent_handler():
req_json = request.get_json()
data = req_json['originalRequest']['data']
intentName = req_json['result']['metadata']['intentName']
...
#tts string could be plain text or a valid SSML
tts = "Here is my response to the user"
...
resp = vi.track( intentName, data, tts )
--------------------
--------------------
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
Built Distribution
Close
Hashes for voicelabs-assistant-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7210c8c3d70820b97cde628f9947458bfe9ab6262e42b46a48e4d79552f43fd6 |
|
MD5 | 4f4d29670663ea21c089457ab2c8975d |
|
BLAKE2b-256 | 571782e979b26145d0183c152c936d76b1d596bc68adcaf166db199c9dba2155 |
Close
Hashes for voicelabs_assistant-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28e25a678d33012de50f959d0d1018689de6d8dbe62eb57f7f5dff6f1d220841 |
|
MD5 | 9f05b59843523b5a578faff495c383ac |
|
BLAKE2b-256 | 72e85b25d29cba9b103cc49a0986418b628a82a254e20c9a4f7487290ad8d1a4 |