Text-to-Speech Voice Calls with PHP
You've built an app that triggers outbound phone calls using the Nexmo PHP client, utilizing voice calls as an excellent communication method for immediate messages. The code uses a virtual phone number, ngrok to expose the app to the public, and Vonage API account credentials. You've created a simple NCCO with a talk action, generating a text-to-speech message. The app also handles incoming calls by returning a JSON response in the correct format. Additionally, you've made an outbound call using the Nexmo client and added dynamic NCCOs to fetch jokes from the Chuck Norris Database for customized responses.
Company
Vonage
Date published
Nov. 12, 2020
Author(s)
Michael Heap
Word count
1610
Language
English
Hacker News points
None found.