DEV Community

Cover image for Create simple voice chat app with nodejs

Create simple voice chat app with nodejs

Hossein Mobarakian on June 13, 2021

Hi, I'm Hossein in this article we will build a simple voice chat web application with nodejs and socketIo. In the first step, we will create a sim...
Collapse
 
airplanegobrr profile image
AirplaneGoBrr • Edited

OK I would like to add a few suggestions

  1. use newData.join("") for the server or you could just do "data:audio/ogg;"+data and that would work as well
  2. Check if navigator AND navigator.mediaDevices exists ( Just a simple if check )
  3. Post the code on Github
  4. Tell the client what other clients status are EX if someone is muted or their mic is off

But thank you very much for all the code! It's very helpful! However the 1 second delay is kindaa... ehh but I tried to change it to <1000ms and it didn't seam to work without cutting out sadly

Collapse
 
judgegodwins profile image
Judgegodwins

Is there a GitHub repo for this?

Collapse
 
hosseinmobarakian profile image
Hossein Mobarakian

No

Collapse
 
akash4919 profile image
Akash4919

Friend I am developing a backend server of a game where players can communicate with each other with real time audio and chat message can you help me a little with it......Thankyou and your this code helped me alot

Collapse
 
itsfuad profile image
Fuad Hasan

Would be nice if there was a running demo app.

Collapse
 
lylest profile image
wackyizzy

looking forward to try this

Collapse
 
itsfuad profile image
Fuad Hasan

Someone upload the structured code to github. I've become too lazy to structure this code🙃

Collapse
 
buglessir profile image
Mohammad

If you upload your codes on somewhere like GitHub, it will help others to use it more easily

Collapse
 
perrut profile image
Matheus Perrut

Thank you for that!!!

Collapse
 
robbelroot profile image
Robert S.

Hmm i'm getting a data.split error, that i cant read split of null, so data seems to be null.

Collapse
 
itsfuad profile image
Fuad Hasan

use default values like

data ||= [];
Enter fullscreen mode Exit fullscreen mode
Collapse
 
harry_moon_96c23379521e3a profile image
Harry Moon

Is anyone here successfully installed this code. Can you share?

Collapse
 
cpninjaru profile image
cpninjaru

really working! Thx

Collapse
 
disalprabhath profile image
Disal Prabhath

i need more help to build this software