2

I am trying to make an application that use audio streaming through TCP connection, Using Delphi 7 and Indy9.

More clearly, How i can stream input from Client microphone and send it to (TCP or HTTP Server)? Consider real time.

Thank you

bestyasser
  • 103
  • 1
  • 11

1 Answers1

2

I never did this, but I think you can start with the basics ...

  • Set the frame rate to be used, 8000hz is a good choice

  • Choice a chunk size to capture from Microphone (1024, 2048, 4096,
    etc)

  • Capture the audio from Microphone in short int or float32 (RAW Audio)

  • Put this chunk in one socket buffer preferably UDP, and send to
    another side over UDP connection

  • If you make a loop with this process are you sending audio data by
    socket

  • Now The other side just need get the data from every UDP connection
    and play

This steps are a basic audio streaming :-)

In the future you might want to work with queuing, but that's another story

ederwander
  • 3,410
  • 1
  • 18
  • 23