mmiyazawa7 / tts-call-sample-py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TTS-Call-Sample-py

This is sample Nexmo Voice App demo how to make Voice Call and Play TTS Voice with SSML using Nexmo Voice API

This app is built using Flask framework and require Python3

Prerequisite

You will need a few thins to get going with this app:

To install the Python client library using pip:

pip install nexmo

To upgrade your installed client library using pip:

pip install nexmo --upgrade

To rename .env-sample to .env and set parameter

Running the demo

For demo, to run ngrok for webhook

$ ngrok http 3000

Forwarding                    https://xxxxxx.ngrok.io -> localhost:3000

Please set "https://xxxxxx.ngrok.io" to "WEBHOOK_URL" in .env file

WEBHOOK_URL = "Your Base Webhook URL"

To run application

$ python3 tts-call-sample.py

About

License:MIT License


Languages

Language:Python 100.0%