Code Monkey home page Code Monkey logo

santy1422 / twilio-media-stream-live-transcription-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nokenwa/twilio-media-stream-live-transcription-node

0.0 0.0 0.0 225 KB

With Twilio Media Streams, you can now extend the capabilities of your Twilio-powered voice application with real time access to the raw audio stream of phone calls. This project transcribes speech from a phone call into text, live in the browser using Twilio and Google Speech-to-Text with Node.js.

License: MIT License

JavaScript 70.39% CSS 2.97% HTML 26.64%

twilio-media-stream-live-transcription-node's Introduction

Live Transcribing Phone Calls using Twilio Media Streams and Google Speech-to-Text

With Twilio Media Streams, you can now extend the capabilities of your Twilio-powered voice application with real time access to the raw audio stream of phone calls. For example, we can build tools that transcribe the speech from a phone call live into a browser window, run sentiment analysis of the speech on a phone call or even use voice biometrics to identify individuals.

Blog Post

If you prefer a step by step guide through building this yourself, this blog post will guide you through transcribing speech from a phone call into text, live in the browser using Twilio and Google Speech-to-Text using Node.js.

Visit the Blog Post here


Prerequisites

Before we can get started, you’ll need to make sure to have:


Setup

  1. Setup Google Project and retrieve service account key

    a. Install and initialize the Cloud SDK

    b. Setup a new GCP Project

    c. Enable the Google Speech-To-Text API for that project

    d. Create a service account.

    e. Download a private key as JSON.

  2. Modify the .env.sample file to include the path to your JSON service account key and save it as a .env file

  3. Run the following commands:

    Buy a Phone Number (I have used the GB country code to buy a mobile number, but feel free to change this for a number local to you.)

    $ twilio phone-numbers:buy:mobile --country-code GB

    Start ngrok:

    $ ngrok http 8080

    While this is running in a new window copy the forwarding HTTPS URL (https://xxxxx.ngrok.io) and set your Twilio number to this URL:

    $ twilio phone-numbers:update YOUR_TWILIO_NUMBER_HERE --voice-url https://xxxxxxxx.ngrok.io

    Install dependencies and start your server:

    $ npm install

    $ npm start


Contact me

If you have any questions, feedback or just want to show me what you build, feel free to reach out to me:

twilio-media-stream-live-transcription-node's People

Contributors

nokenwa avatar dependabot[bot] 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.