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
You will need a few thins to get going with this app:
- A Nexmo Account
- A Nexmo Voice App [set one up here]
- To buy Phone Number for Voice App [set one up here]
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
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