GithubHelp home page GithubHelp logo

soltrinox / assemblyai-webrtc-sample-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from assemblyai/assemblyai-webrtc-sample-project

0.0 1.0 0.0 62 KB

Official AssemblyAI sample project using WebRTC for real-time speech-to-text from the browser

CSS 1.89% HTML 8.45% JavaScript 89.66%

assemblyai-webrtc-sample-project's Introduction

AssemblyAI Sample WebRTC Project

This sample project uses the AssemblyAI WebRTC wrapper to stream audio from the browser to the AssemblyAI API for near real-time speech-to-text.

Only tested in Chrome and Firefox.

Getting started

  1. Clone this repo

  2. Fill in your API Token on line 2 in js/demo.js

    const API_TOKEN = "your-secret-api-token";
    
  3. Stand up a simple HTTP Server to serve the static files in this repo

    # This will start a static server on http://localhost:8000.
    # This server is insecure, and should only be used for demos
    # and testing.
    python -m SimpleHTTPServer
    
  4. Go to http://localhost:8000 to visit your local server. Click "Allow" when the browser asks for permission to use your microphone.

Note: WebRTC requires your website to be served on localhost or over SSL in order to access the microphone.

  1. Click the red "RECORD" button and start talking!

Details about the AssemblyAI wrapper library can be found at AssemblyAI Wrapper

assemblyai-webrtc-sample-project's People

Contributors

dylanbfox avatar

Watchers

 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.