# Store messages in files and load them again

**URL:** <https://discourse.nodered.org/t/store-messages-in-files-and-load-them-again/4346>\
**Category:** General\
**Created:** [27 October 2018 21:08 UTC](https://discourse.nodered.org/t/store-messages-in-files-and-load-them-again/4346 "2018-10-27T21:08:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [27 October 2018 22:56 UTC](https://discourse.nodered.org/t/store-messages-in-files-and-load-them-again/4346/4 "2018-10-27T22:56:52Z")

</div>

In case anybody is wondering why on earth storing messages in files could be useful:  
Well I'm currently developing streaming audio in the dashboard for another [discussion](https://discourse.nodered.org/t/play-sound-from-usb-microphone/2551/28).

I have now arrived at the point that it seems to be working fine with my own raspberry and usb microphone. However when @GChapo uses my dashboard fix to test with his raspberry and microphone, the sound is very bad. I have no clue what is going on over there, so I need to have access to his audio stream on my own Raspberry (to be able to debug it).

So I'm trying to use the [node-red-contrib-sequencer](https://github.com/tedstriker/node-red-contrib-sequencer) nodes to copy his audio stream:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/3c148e13738d77ae9f64839fe9b81f06ac1a5b96.png)

- Glenn would record all his audio related messages during e.g. 10 seconds, and store those messages (inclusive timestamps) into one big file.
- Glenn delivers me that file manually via Dropbox.
- I replay all the messages from that file, with the same delays in between (based on the timestamps) in my dashboard. So all audio samples (hopefully) arrive at the **same sample rate** in my own dashboard.

This way I hope to be able to have an exact copy of Glenn's audio stream available at my own Raspberry, so I could debug the dashboard to see what is going wrong ...

---

_[View the full topic](https://discourse.nodered.org/t/store-messages-in-files-and-load-them-again/4346)._
