# Embedded .wav files

**URL:** <https://forum.inductiveautomation.com/t/embedded-wav-files/52874>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [November 9, 2021, 2:06pm UTC](https://forum.inductiveautomation.com/t/embedded-wav-files/52874 "2021-11-09T14:06:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJ\_Woodfield](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@DJ\_Woodfield](https://forum.inductiveautomation.com/u/DJ_Woodfield)\
**Post date:** [November 9, 2021, 2:06pm UTC](https://forum.inductiveautomation.com/t/embedded-wav-files/52874/1 "2021-11-09T14:06:13Z")

</div>

Is there a way to extract or view an embedded .wav file in a window?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [November 9, 2021, 2:31pm UTC](https://forum.inductiveautomation.com/t/embedded-wav-files/52874/2 "2021-11-09T14:31:54Z")

</div>

how would you view a sound file? xd  
Do you want it to display the “sound waves” like a graph?

vision has an sound player compoennt tho

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 9, 2021, 3:36pm UTC](https://forum.inductiveautomation.com/t/embedded-wav-files/52874/3 "2021-11-09T15:36:13Z")

</div>

Under the assumption you have a Sound Player component on the window and you want to extract the data it contains, you can (in scripting) ask for `referenceToSoundPlayer.getSoundData()`, which will return a byte array. You can then pair that byte array with a system function (e.g. `system.file.writeFile`) to write it back out to disk.

---

<div class="post-metadata">

**Author:** ![DJ\_Woodfield](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@DJ\_Woodfield](https://forum.inductiveautomation.com/u/DJ_Woodfield)\
**Post date:** [November 9, 2021, 4:24pm UTC](https://forum.inductiveautomation.com/t/embedded-wav-files/52874/4 "2021-11-09T16:24:11Z")

</div>

Thanks PGriffith that’s what I was needing.
