# Node-red-contrib-wav (beta)

**URL:** https://discourse.nodered.org/t/node-red-contrib-wav-beta/8586
**Category:** Share Your Nodes
**Created:** [4 March 2019 08:11 UTC](https://discourse.nodered.org/t/node-red-contrib-wav-beta/8586 "2019-03-04T08:11:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [4 March 2019 08:11 UTC](https://discourse.nodered.org/t/node-red-contrib-wav-beta/8586/1 "2019-03-04T08:11:08Z")

</div>

Hi folks,

We had an interesting [discussion](https://discourse.nodered.org/t/play-sound-from-usb-microphone/2551/39) some time ago, about raw audio samples in Node-RED. In that discussion we needed to add a WAV headers to the raw audio samples, to make sure that other nodes know what those bytes represent (number of channels, number of bytes per sample, ...).

Got a question last weekend to publish that node on NPM. There is now a beta version available, which you can install like this:

```auto
npm install node-red-contrib-wav@1.0.0-beta.1

```

I have extended the node to support 3 actions:

- **Get the WAV header** in a human readable format, in case you want to know which kind of audio you are dealing with.
- **Add your own WAV header** to raw audio samples (PCM), based on the input you have specified in the config screen.
- **Remove the WAV header** to convert a WAV chunk to raw audio samples (PCM).

There is quite some information available on the [readme](https://github.com/bartbutenaers/node-red-contrib-wav/) page.

As always al '_constructive_' feedback is welcome.

Have fun with it!  
Bart

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [8 March 2019 20:14 UTC](https://discourse.nodered.org/t/node-red-contrib-wav-beta/8586/2 "2019-03-08T20:14:22Z")

</div>

I managed to implement the massive amount of feedback, and have publish version **1.0.0** on NPM.
