/plushcap/analysis/vonage/vonage-text-to-speech-voice-calls-with-go

Text-to-Speech Voice Calls With Go

What's this blog post about?

To make an outgoing text-to-speech phone call using Go and the Vonage Voice API, you need a Vonage API account and a virtual phone number. You create a new application under "Your Applications" in the Dashboard, toggle on Voice capabilities, and note your Application ID. Then, you set up a new file called `make-an-outbound-call-ncco.go` with the necessary code to make the call. The code uses the Vonage SDK for Go to authenticate and create a call request with the specified phone numbers and NCCO object. After running the command in the terminal window, you should see the call UUID output and receive an incoming call with the text-to-speech message.

Company
Vonage

Date published
Nov. 25, 2020

Author(s)
Greg Holmes

Word count
749

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.