This is a sample implementation of using Twilio Flex as an inbound adapter for streaming audio to through Rammer's Websocket API
First update the .env file with the following:
- Your App Id that you can get from Platform
- Your App Secret that you can get from Platform
- Your Email Address
- Your First and Last name
- Configure your Twilio Flex flow using
Media Streams
- Follow this blog post for reference
- First, run
npm install
to download all the node modules - Second, run
node index.js
to start the websocket server
Finally in a new terminal, run ./ngrok http 3000
to create a http tunnel to allow Twilio to hit the websocket server. If you plan to deploy this server, then you don't need to use ngrok and instead just have to configure Twilio Media Streams endpoint to hit the deployed server.
Feel free to fork any of the projects here to use on your own and if you have any code improvements, make a pull request and the request will be reviewed by one of our admins.
For a sample reference implentation using Rammer, take a look at our Platform.
If you have questions, bugs to report or feature suggestions, join our Dev Community.