Vonage / vonage-go-sdk

A lightweight library to help Go users everywhere integrate with the Vonage APIs. Issues and PRs all really welcome!!
https://vonage.github.io/vonage-go-sdk/
Apache License 2.0
51 stars 32 forks source link

Add support for sending NCCO with an outbound call #20

Closed weekaung closed 3 years ago

weekaung commented 4 years ago

I wonder if this functionality has been implemented or not. Or do someone have a code snippet on how to send a "text-to-speech" using NCCO. Very much appreciate your help.

lornajane commented 4 years ago

Thanks for mentioning this, you're correct that we don't have support for the new NCCO feature yet in this library (but hey, now it's on our todo list!). For now, the best thing to do is to make a call (example here https://github.com/nexmo-community/nexmo-go#make-a-phone-call ) and serve the NCCO from your answer_url.

Hope that helps, please let us know if you have more questions?

lornajane commented 3 years ago

The library now has support for making a call with NCCO - take a look at https://vonage.github.io/vonage-go-sdk/examples/voice#make-a-phone-call for an example of how to do this. Also beware that we did some major changes to the library so you won't be able to upgrade to the newer version without updating your code as well, sorry. Do let us know how you get on!