Voice Websocket Echo
Voice Websocket Echo
1.0.6
Vonage
NodeJS
Build a voice echo server using WebSockets and the Vonage Voice API.
The Vonage Voice API is the easiest way to build high-quality voice applications in the Cloud. Using the Voice API, you can connect phone calls to WebSocket endpoints, which means that any application that hosts a WebSocket server can be a participant in a Vonage voice conversation.
In this project, you’ll use both the Voice API and WebSockets to receive raw audio from and play audio into a call in real time. This project uses Vonage Cloud Runtime, removing the need to manage servers and hosting. Visit the developer portal to view documentation on how it works.
Steps
-
To start, ensure you are signed into your Vonage developer account. If you do not have an account yet, you can create one here.
-
To immediately deploy the application, go to the ‘Deploy Code’ tab. Enter a name for your application in ‘Instance Name’, select your AWS region, and click the ‘Deploy Code’ button.
- You will see a pop up prompting you to assign your Vonage number to the application - you will be able to buy one here if you do not have one already.
- Click ‘Assign a number’ to select your number from the list, then continue to create the application.
- You will then see your new application under ‘Deployed Instances’. Click ‘Launch’ to run it, then call your Vonage number to use your echo server.
-
To view the code and edit the application, go to ‘Get Code’ and click ‘Create a new development environment’.
- You will see a pop up prompting you to choose a region, enter a workspace name and assign your Vonage number to the application - you will be able to buy one here if you do not have one already.
- Click ‘Assign a number’ to select your number from the list, then continue to launch the workspace.
- When the workspace opens, you will see a README detailing how to edit, debug, run and deploy the project.
- Once your project is deployed, you can use the URL in the terminal output to access your application.