# Audio streaming

**URL:** <https://www.ruby-forum.com/t/audio-streaming/242605>\
**Category:** GNU Radio\
**Created:** [July 6, 2015, 6:13pm UTC](https://www.ruby-forum.com/t/audio-streaming/242605 "2015-07-06T18:13:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [July 6, 2015, 6:13pm UTC](https://www.ruby-forum.com/t/audio-streaming/242605/1 "2015-07-06T18:13:24Z")

</div>

I have an AM demodulator producing audio data. How do I stream that  
audio to another computer to play out the audio using VLC?

Mark.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [July 6, 2015, 6:18pm UTC](https://www.ruby-forum.com/t/audio-streaming/242605/2 "2015-07-06T18:18:40Z")

</div>

Dear Mark,

dozens of options – you could just use the ZMQ sinks/sources to send  
these samples to GNU Radio on the target PC, but you could also just  
take these float samples, and shuffle them into the UDP sink, and  
instruct that to send the packets to your target VLC’s port (watch all  
the firewall/networking problems that could happen underway). You will  
need to instruct your VLC that what is coming is raw float samples at  
the sampling rate you use.

Another, bandwidth-efficient approach would be writing these samples,  
using the file sink, into a FIFO. Under Linux, you can generate a FIFO  
with “mkfifo”, and open that FIFO with a local VLC; then you can use  
VLC’s versatile compression and streaming functionality.

Best regards,  
Marcus
