Making a text-to-speech phone call with Django
This tutorial demonstrates how to use Nexmo's text-to-speech API to make outbound calls with Python and Django, using a Vonage API account and a virtual phone number. The process involves creating a new Nexmo application, generating a private key, and setting up a Django server that can be reached by the Nexmo API. The tutorial then shows how to create an NCCO (Nexmo Call Control Object) file that defines the actions to be taken during the call, such as playing audio files or sending SMS messages. The code also demonstrates how to integrate with external APIs, such as the Marvel API, to provide dynamic data for the voice message. Finally, a Django management command is created to make an outbound call to any number, allowing for easy testing and deployment of the text-to-speech functionality.
Company
Vonage
Date published
Aug. 14, 2017
Author(s)
Aaron Bassett
Word count
1686
Language
English
Hacker News points
None found.