Gstreamer audio latency

I’m trying the below pipeline as follows:

gst-launch-1.0 -v alsasrc device=plughw:2,0 buffer-time=7000 ! volume volume=8 ! opusenc bitrate-type=vbr bitrate=160000 hard-resync=true ! oggmux max-delay=0 ! tcpclientsink host=localhost port=9055

The above pipeline works fine on an NPM server. Unfortunately, the pipeline has a latency of 2s to reach the browser.

Is there any other method to mitigate this latency?

Thanks in advance !

Please try UDP and see if the latency is less. There is a discussion about video streaming through TCP:
Gstreamer TCPserversink 2-3 seconds latency

There is improvement in UDP. It may be same for audio. Please give it a try.

Definitely, i will try and let you know.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.