Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: acquire audio from microphone live  (Read 3249 times)

0 Members and 1 Guest are viewing this topic.

dineshrumba

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
acquire audio from microphone live
« 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 ?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: acquire audio from microphone live
« Reply #1 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
Laurent Gomila - SFML developer

dineshrumba

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: acquire audio from microphone live
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: acquire audio from microphone live
« Reply #3 on: February 26, 2020, 12:54:45 pm »
That's just an example, it's made for simplicity, not for robustness ;)
Laurent Gomila - SFML developer

 

anything