Coder Social home page Coder Social logo

audioforwarder's Introduction

AudioForwarder

Forward user voice from Discord to be accessible on web

enter image description here Dependencies
js-semistandard-style

Limitation/Known Issue ⚠

Important ❗

Please read notes/README.txt

Features 📜

  1. Capture whitelisted users or entire voice channel (anyone) voice
  2. Realtime Audio Processing using FFMPEG
  3. Raw/Processed audio stream exposed on endpoints
  4. HTTP, HTTPS server using Express
  5. WebSocket using Socket.IO

Tests 🔧

Found at src/test

Script Description
audio_getter.js Get audio stream from HTTP endpoint
client_stresser.js Stress test the server by spamming request for audio data
ws_client.js WebSocket client example

Stress Test Results 🧪

  • Audio delay will change depending on client count
  • Tested on Windows 10 Pro, Ryzen 5 3500X, NVIDIA GTX 1660 Super

Client side 💻

  • Client Count is approximated
Client Count Symptoms
0 - 1999 Not noticeable - None
1200 Small amount of short stutter
1500 Much longer and more frequent stutter
1800+ Very frequent stutter, audio alternation (speed up)

Server side 🔗

  • Client Count is approximated
  • CPU usage 18-20% (Not affected by client count)
Client Count Memory Used (MB)
0 (START) 50
500 100
1000 165
1500 220
1750 310
2000 405
2200 425
2350 480
2500 520
0 (END) 110

License 📰

This project is using MIT license © Edqe14
Click here to read LICENSE.

audioforwarder's People

Contributors

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