Coder Social home page Coder Social logo

vladyslavparashchenko / realtime-transcription-browser-js-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from assemblyai/realtime-transcription-browser-js-example

0.0 0.0 0.0 88 KB

Demo of AssemblyAI's Real-Time Websocket API (In Browser with JavaScript)

CSS 29.01% HTML 13.08% JavaScript 57.91%

realtime-transcription-browser-js-example's Introduction

AssemblyAI Real-Time Transcription Browser Example

Description

This open-source repo provided by AssemblyAI displays how to use our real-time API in the browser!

In this app, we grab an audio stream from the user's computer and then send that over a WebSocket to AssemblyAI for real-time transcription. Once AssemblyAI begins transcribing, we display the text in the browser. This is accomplished using Express for our backend and Vanilla JavaScript with the npm package recordrtc for our frontend.

How To Install and Run the Project

❗Important❗
  • Before running this app, you need to upgrade your AssemblyAI account. The real-time API is only available to upgraded accounts at this time.
  • Running the app before upgrading will cause an error with a 402 status code. ⚠️
  • To upgrade your account you need to add a card. You can do that in your dashboard here!
Instructions
  1. Clone the repo to your local machine.
  2. Open a terminal in the main directory housing the project. In this case realtime-transcription-browser-js-example.
  3. Run npm install to ensure all dependencies are installed.
  4. Add your AssemblyAI key to line 13 of server.js
  5. Start the server with the command npm run server (will run on port 8000).
  6. Open a second terminal in the main directory of the project and start the client side with npm run client (will run on port 3000).

Further Documentation

realtime-transcription-browser-js-example's People

Contributors

agalyanmann 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.