SFML community forums
Help => Audio => Topic started by: dineshrumba on February 25, 2020, 11:45:37 am
-
How can i read the audio from built in microphone or external microphone instead of recording it. And how to send it using socket ?
-
You should start by searching a little bit. There's everything you need in tutorials, documentation and examples.
Especially:
https://www.sfml-dev.org/tutorials/2.5/audio-recording.php
https://github.com/SFML/SFML/tree/master/examples/voip
-
I tired that code i.e VoIP example. But when i run it both the server and client it looks like the example is not working properly. i.e after i run the server it plays the sound got from socket but the sound is too much noisy and has got lots of echo and delay in playback. Also after the socket is closed i.e server is closed intead of paying the 100 got audio Server stops directly.
-
That's just an example, it's made for simplicity, not for robustness ;)