Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Sending Audio stream on UDP
Qt 6.11 is out! See what's new in the release blog

Sending Audio stream on UDP

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 874 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KaanFresh
    wrote on last edited by
    #1

    Hello,

    I have a simple UDP application. What it does is basically sending "1" every second (QTimer), nothing different than the examples. Is it possible to send Audio with QAudioInput and receiver to play incoming stream in real time?

    My first thought was to implement something like Whatsapp, where you hold the button to record your message, then save it to somewhere and send it through UDP. But it would be better to send the stream directly. Can anyone help?

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      First, there is no such thing as real-time in IP, regardless of what QOS is used. Second, you MUST fill a cache with samples on the recieving end and keep that cache from running empty if you don't want gaps in your audio. audio over UDP is not only possible, but is the usual way to do it...but, you MUST consider latency and non uniform time delay in the arrival of sample packets, and compensate by caching some samples.

      Looks like you are dending discrete short audio messages. Don't attempt to play the message until it has been completely received...and it won't be in real-time (per definition).

      The dystopian literature that served as a warning in my youth has become an instruction manual in my elder years.

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved