Giter Club home page Giter Club logo

webmic's Introduction

Screen capture
Turn any device into a wireless microphone
WebRTC IPFS Alpine.js

๐ŸŽ™ What is this?

Web Microphone is a small web app that allows you to stream your microphone to another browser with very small latency and decent quality. It's a great tool when you need a wireless microphone for streaming or just want to monitor another room.

๐Ÿ”Š How does it work?

Once you open it on the device you want to use as a microphone, click/tap the big microphone button and the app will start looking for another app that is set to be "a speaker".

Then you can the app on another device/browser/tab, select speaker and then click/tap the big speaker button. The two apps will try to find each other and once they do, the status below the button will say:

Streaming to Browser(OS)

or

Listening from Browser(OS)

to confirm that both apps are connected to each other. Of course Browser will be the name of the web browser and OS the operating system of the microphone/speaker.

๐Ÿ‘‚ Is it safe? Can anyone listen to my microphone? Are you recording anything?

Yes/No/NO!

Communication between the microphone and speaker is encrypted and goes straight from device to device, without any servers in between, so there's no way to record it or listen in on the conversation.

That being said, currently the way the microphone finds the speaker and vice versa is quite simple and in case of many users at once, it could connect to the wrong microphone/speaker. This is by design to make it very simple and not to require any codes, passwords etc. but might need to change in the future. For now I recommend making sure if you're connected to the mic/speaker that you wanted and if not, try connecting again.

๐Ÿ‘ฉโ€๐Ÿ’ป How does it work under the hood?

There are two main parts in play here:

  • WebRTC that takes care of connecting the peers and handling the audio stream
  • IPFS PubSub that acts as the signaling/discovery server to allow the mic and speaker find each other and negotiate connection

Go ahead and explore the source to see how it works.

The UI is done using Alpine.js a lightweight library, great for small prototypes.

๐Ÿ™‡ Credits

  • ๐ŸŽจ Maria Muรฑoz for the amazing Neumorphic Components design and code
  • ๐Ÿ“š Chad Retz for PoC of using IPFS PubSub as a signaling server

webmic's People

Contributors

suda avatar dependabot[bot] 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.