Company
Date Published
Author
Aaron Bassett
Word count
1686
Language
English
Hacker News points
None

Summary

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.