Examples of Nexmo NCCO (Nexmo Call Control Object) to use in your Nexmo apps
Welcome! Here you will find some examples of NCCOs (Nexmo Call Control Objects) that you can use with the Vonage Voice API. We’ve split the examples into sections so have a browse and if you don’t find what you’re looking for, open an issue (pull requests are welcome too!).
These examples use the talk
action, producing text-to-speech output.
talk.json
for simple spoken wordstext-to-speech.json
also specifies a languagessml.json
has an example with some SSML (Synthesized Speech Markup Language) for expression.long-tts.json
specifies a language and a message that is repeated 10 times using the loop
property.connect-phone.json
to connect the answered call to another numberconnect-to-app.json
to connect the answered call to an application using our Conversation APIconference.json
to add every user to the same conferencedtmf-input.json
if you want to get the user to enter some digits with their telephone keypadasr-input.json
if you need to retrieve the caller’s speech in text formtransfer.json
to share a message when a transfer
action has finishedrecord.json
will record your call. Take a look at the code snippets for examples of how to authenticate and download the finished recording after the call.silent-loop.json
streams a mp3 file with no sound, on a loop. Useful for keeping a call active while waiting for another event to occur.Still looking for more? Try these: