Giter Club home page Giter Club logo

echo.js's Introduction

echo.js

This lib (or demo) does the following things to simulate a chat between a browser and a server:

  1. Browser detects any voice activity, records and sends speech s1 to Server;
  2. Server receives speech s1;
  3. Server constructs and sends speech s2 to Browser;
  4. Browser receives and plays speech s2.

Notice Browser won't record and play at the same time, thus there is a queue.

Notice Server should save all speeches with userId and timestamp.

Start

Install

$ npm install

Run Server

$ npm start

Test in Browser

Open 127.0.0.1:3883.

Thanks

Great work from:

  1. browser-pcm-stream
  2. vad.js
  3. socket.io
  4. binary.js

License

MIT

echo.js's People

Contributors

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