# Loading and streaming a sound file

**URL:** <https://discourse.nodered.org/t/loading-and-streaming-a-sound-file/75005>\
**Category:** General\
**Created:** [10 February 2023 17:19 UTC](https://discourse.nodered.org/t/loading-and-streaming-a-sound-file/75005 "2023-02-10T17:19:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dh3jhz](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@dh3jhz](https://discourse.nodered.org/u/dh3jhz)\
**Post date:** [10 February 2023 17:19 UTC](https://discourse.nodered.org/t/loading-and-streaming-a-sound-file/75005/1 "2023-02-10T17:19:06Z")

</div>

Hi folks!

I have a wave file containing a sound in a-law format (8khz, 8-bit). I need to load this file and to stream this via UDP/RTP to a receiver.

I have absolutely no idea how to achive this. Any hints?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [11 February 2023 01:34 UTC](https://discourse.nodered.org/t/loading-and-streaming-a-sound-file/75005/2 "2023-02-11T01:34:55Z")

</div>

For a start, I would try:

inject -\> read file (return a buffer) -\> UDP out (or UDP request)

---

<div class="post-metadata">

**Author:** ![dh3jhz](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@dh3jhz](https://discourse.nodered.org/u/dh3jhz)\
**Post date:** [11 February 2023 07:29 UTC](https://discourse.nodered.org/t/loading-and-streaming-a-sound-file/75005/3 "2023-02-11T07:29:06Z")

</div>

sure, but the wav file has its own format, header etc. and I need the alaw coded data packed in a RTP Packet to send it out via UDP.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 April 2023 07:30 UTC](https://discourse.nodered.org/t/loading-and-streaming-a-sound-file/75005/4 "2023-04-12T07:30:00Z")

</div>

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