Giter VIP home page Giter VIP logo

symblai / symbl-twilio-media-steam-adapter Goto Github PK

View Code? Open in Web Editor NEW
0.0 6.0 0.0 101 KB

Stream Server for connecting Twilio's Media Stream to Symbl over a WebSocket with an exposed RESTful API for triggering the delivery of Symbl’s real-time events to a Client server.

License: MIT License

JavaScript 99.47% Shell 0.53%
twilio streams media symbl websocket speaker-separation channel-separation messages topics insights

symbl-twilio-media-steam-adapter's Introduction

Symbl-Twilio-Media-Steam-Adapter

Symbl's APIs empower developers to enable:

  • Real-time analysis of free-flowing discussions to automatically surface highly relevant summary discussion topics, contextual insights, suggestive action items, follow-ups, decisions, and questions.
  • Voice APIs that makes it easy to add AI-powered conversation intelligence to either telephony or WebSocket interfaces.
  • Conversation APIs that provide a REST interface for managing and processing your conversation data.
  • Summary UI with a fully customizable and editable reference experience that indexes a searchable transcript and shows generated actionable insights, topics, timecodes, and speaker information.

Pre-requisites

  • Symbl appSecret and appId - If you don't have a Symbl account for signup look it up in this Link.
  • Twilio account - If you don't have a Twilio account for signup look it up in this Link.
  • Twilio purchaced phone number - If you don't have a Twilio purchaced phone number you can look for these steps Link.
  • ngrok installed with your account - If you dont have ngrok you can follow this Link.

Feature:

  • Stream Server that connect Twilio Media Stream to Symbl using WebSocket and exposes a REST API of Symbl’s real-time events to a Client server.
  • Up to 4 speaker can call to a Twilio number and start a conversation, so each phone stream get into a separate WebSocket channel that is directed to Symbl and once conversation transcripts messages, topics or insights are identified they are immediatly addressed in real-time to another clientServer that servers as a webhook point.

alt text

Setup and Deploy

  1. Open command line or terminal

  2. Download by using the command git clone https://github.com/symblai/Symbl-Twilio-Media-Steam-Adapter.

  3. Get into the downloaded folder using the command cd Symbl-Twilio-Media-Steam-Adapter.

  4. Run the command npm install.

  5. Open .env file and modify the following fields:

  6. Add SYMBL_APP_ID with your Symbl appId.

  7. Add SYMBL_APP_SECRET with your Symbl appSecret.

  8. Update CLIENT_WEBHOOK - For local testing from a terminal or command line run ngrok http 9000. Copy the secure forwarding value to CLIENT_WEBHOOK but remove the "https://" from it. For example if you got the value "https://dda80552256c.ngrok.io/" only use this value "dda80552256c.ngrok.io".

  9. Update TWILIO_WEBHOOK - To update your Twilio active phone number and the TWILIO_WEBHOOK in .env:

    • For local testing first run ngrok http 8000 and copy and save the full secure forwarding address from ngrok to your Twilio account --> Phone numbers --> Active Phone Numbers --> select the phone number you would like to update --> Under "Message and Fax" in the Voice "Webhook" value including '/' at the end and save this Twilio configuration. then copy the same fowarding address to TWILIO_WEBHOOK but remove the "https://" from it. For example for "https://127c7b383137.ngrok.io/" use only this value "127c7b383137.ngrok.io" in TWILIO_WEBHOOK.
  10. Save the .env file.

    Note: For real server testing - For step 3 and 4 modify CLIENT_WEBHOOK and TWILIO_WEBHOOK with your servers addresses similarly to ngrok steps above.

  11. In the folder location ./Symbl-Twilio-Media-Steam-Adapter run in your terminal or command line node clientServer.js.

  12. In the folder location ./Symbl-Twilio-Media-Steam-Adapter run in your terminal or command line node streamServer.js.

Conclusion

Now up to 4 people can call to your Twilio registered phone number to start a conversation and trasncript messages, topics and inights of the conversation will be shown in real-time in the clientServer terminal or command line.

Community

If you have any questions, feel free to reach out to us at [email protected] or through our Community Slack or our forum.

This guide is actively developed, and we love to hear from you! Please feel free to create an issue or open a pull request with your questions, comments, suggestions and feedback. If you liked our integration guide, please star our repo!

This library is released under the Apache License

symbl-twilio-media-steam-adapter's People

Contributors

eric-giannini avatar sapirguy avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.