Node.js
Create the project
Make a directory for your application, cd into the directory and then use the Node.js package manager npm to create a package.json file for your application's dependencies:
mkdir myapp cd myapp npm init
Press [Enter] to accept each of the defaults.
Then, install the express web application framework, express-ws and WaveFile packages:
npm install express express-ws wavefile
Play Audio into a WebSocket
Learn how to connect an inbound Voice API call to a WebSocket, then play audio with JavaScript.
Available on:
Steps
1
Introduction to this task2
Prerequisites3
Buy a Vonage number4
Create a Voice Application5
Link a Vonage number6
Create the project7
Write your answer webhook8
Write your event webhook9
Create the WebSocket10
Test your application11
What's next?