SFML community forums

Help => Audio => Topic started by: dineshrumba on February 25, 2020, 11:45:37 am

Title: acquire audio from microphone live
Post 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 ?
Title: Re: acquire audio from microphone live
Post by: Laurent on February 25, 2020, 12:39:25 pm
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
Title: Re: acquire audio from microphone live
Post by: dineshrumba on February 26, 2020, 12:02:35 pm
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.
Title: Re: acquire audio from microphone live
Post by: Laurent on February 26, 2020, 12:54:45 pm
That's just an example, it's made for simplicity, not for robustness ;)