Giter Site home page Giter Site logo

martinseiter / geluid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kulek1/geluid

0.0 1.0 0.0 3.32 MB

Made with Electron. Streams audio from your soundcard to a browser in an easy way

License: GNU General Public License v3.0

JavaScript 80.09% HTML 1.79% CSS 16.79% Python 1.32%

geluid's Introduction

Geluid


Low latency streaming audio from soundcard directly to the browser.

Use on any desktop or mobile device.


Application based on Electron, React, React-Router, Webpack, Socket.io (WebSockets), PortAudio and Lame. It combines advantages of those packages to create a nice looking application.

Usage

โš ๏ธ This application is still under development and it's not a stable version.

Developing

Build the client web app:

yarn build-client

Then build Electron app:

yarn dev

It will run Electron application and browser client (React) on two different ports.

Client: (http://localhost:9000)

How it works?

It creates two instances of applications - client & server. Server is based on Electron also with React and uses node module (C++) called naudiodon-lame to stream mp3 audio from soundcard to Node.js app and then from Node.js to Browser via WebSocket (Socket.io).

Client is based on React and it uses WebWorkers for buffering audio to get low latency sound. Despite complicated steps, latency of audio is at the level of ~1 second!

Windows users might have something like "Stereo mix" in an audio control panel which picks up exactly what you hear from your speakers. Unfortunately, that device isn't available in macOS out of the box. The solution is to install open source kernel extension called Soundflower

Features to do:

  • Code refactoring
  • Add tests
  • Improve stability
  • Make production build for Windows & Mac
  • Improve scalability
  • Update Babel 6 to 7
  • Replace Flow with Typescript
  • Add missing features...

Issues

  • You may encounter an error:
App threw an error during load
Error: The module '/Users/username/Geluid/node_modules/naudiodon-lame/build/Release/naudiodon-lame.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 59. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing

To resolve this, run in your terminal: $(npm bin)/electron-rebuild.

  • as this application uses MediaSource, iOS isn't supported yet. (Why Apple?)

geluid's People

Contributors

kulek1 avatar dependabot[bot] avatar

Watchers

James Cloos 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.