Skip to main content

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 )

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

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

voicelabs-assistant-1.0.4.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

voicelabs_assistant-1.0.4-py2.py3-none-any.whl (5.7 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