GithubHelp home page GithubHelp logo

ycace / webrtc-speech-to-text Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rviscarra/webrtc-speech-to-text

0.0 0.0 0.0 282 KB

Speech transcription on the browser using WebRTC and Google Speech

License: MIT License

Makefile 0.59% Go 64.37% CSS 0.53% HTML 7.00% JavaScript 27.51%

webrtc-speech-to-text's Introduction

WebRTC speech to text server

Dependencies

The speech to text server only depends on Go 1.12.

Disclaimer

This project is only a proof of concept and SHOULDN'T be deployed on a production environment as it lacks even the most basic security measures.

Build the project

The project includes a Makefile, to build execute:

make

This should generate a transcribe-server binary.

Running the server

The server receives the following flags through the command line:

--google.cred (Required)

Path to a Google Cloud credential's file. The project must have Google Speech activated.

--http.port (Optional)

Specifies the port where the HTTP server should listen, by default the port 9000 is used.

--stun.server (Optional)

Allows to speficy a different STUN server, by default a Google STUN server is used.

Demo page

The demo works on Chrome 75, Firefox 67 and Safari 12.1.1

Demo screenshot

To run the demo execute the server and navigate to http://localhost:9000.

After pressing the Start button a dialog asking for permission to access the microphone should appear. After grating access a WebRTC connection is made to the local server, where audio data is decoded and streamed to Google Speech (streaming recognition).

Say something and press the Stop button, the results (if any) should appear on screen.

Architecture

Architecture and data flow

Coming soon

  • Unit tests.
  • Be able to specify the desired language.
  • Support for interim results.

License

MIT - see LICENSE for the full text.

webrtc-speech-to-text's People

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.