# Unreal 5 C++ gets a wav file from text-to-speech. This file is generated dynamically, so it is not a UE asset, but I want to play the sound file after it is generated.

**URL:** <https://forums.unrealengine.com/t/unreal-5-c-gets-a-wav-file-from-text-to-speech-this-file-is-generated-dynamically-so-it-is-not-a-ue-asset-but-i-want-to-play-the-sound-file-after-it-is-generated/794209>\
**Category:** Audio\
**Tags:** unreal-engine, CPP\
**Created:** [March 19, 2023, 3:58pm UTC](https://forums.unrealengine.com/t/unreal-5-c-gets-a-wav-file-from-text-to-speech-this-file-is-generated-dynamically-so-it-is-not-a-ue-asset-but-i-want-to-play-the-sound-file-after-it-is-generated/794209 "2023-03-19T15:58:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111163](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/111163/32/710746_2.png) [@111163](https://forums.unrealengine.com/u/111163)\
**Post date:** [March 19, 2023, 3:58pm UTC](https://forums.unrealengine.com/t/unreal-5-c-gets-a-wav-file-from-text-to-speech-this-file-is-generated-dynamically-so-it-is-not-a-ue-asset-but-i-want-to-play-the-sound-file-after-it-is-generated/794209/1 "2023-03-19T15:58:11Z")

</div>

I don’t know how to operate, because the wav file is generated after receiving, how do I get it, or play it? I already have the FILE class for this generated WAV file.

---

<div class="post-metadata">

**Author:** ![neofuturelabs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neofuturelabs/32/1194562_2.png) [@neofuturelabs](https://forums.unrealengine.com/u/neofuturelabs)\
**Post date:** [March 19, 2023, 4:25pm UTC](https://forums.unrealengine.com/t/unreal-5-c-gets-a-wav-file-from-text-to-speech-this-file-is-generated-dynamically-so-it-is-not-a-ue-asset-but-i-want-to-play-the-sound-file-after-it-is-generated/794209/2 "2023-03-19T16:25:05Z")

</div>

I haven’t personally tried this, but it looks like there are at least a couple plugins that allow you to play audio files from the disk. Maybe try one of these:

> **[Runtime Audio Importer in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/runtime-audio-importer)**
>
> Runtime Audio Importer plugin for Unreal Engine. Importing audio of various formats at runtime. Supports MP3, WAV, FLAC, OGG Vorbis, BINK and RAW formats

> [@\[PLUGIN\] Play Sound Files From Disk (OGG)](https://forums.unrealengine.com/t/plugin-play-sound-files-from-disk-ogg/9173):
>
> These nodes are all in Rama’s BP library now, check it out! [(39) Rama's Extra Blueprint Nodes for You as a Plugin, No C++ Required! - Blueprint - Unreal Engine Forums](https://forums.unrealengine.com/showthread.php?3851-(39)-Rama-s-Extra-Blueprint-Nodes-for-You-as-a-Plugin-No-C-Required!&p=118564&viewfull=1#post118564) Hey everyone! I was listening to an audiobook yesterday and thought it would be cool to build an immersive environment (campire w/ old man storyteller) for listening to audiobooks in VR. Seemed like a nice little side project to promote my game and get something finished and released early on. I looked around but didn’t find any…

---

<div class="post-metadata">

**Author:** ![111163](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/111163/32/710746_2.png) [@111163](https://forums.unrealengine.com/u/111163)\
**Post date:** [April 3, 2023, 3:43am UTC](https://forums.unrealengine.com/t/unreal-5-c-gets-a-wav-file-from-text-to-speech-this-file-is-generated-dynamically-so-it-is-not-a-ue-asset-but-i-want-to-play-the-sound-file-after-it-is-generated/794209/3 "2023-04-03T03:43:24Z")

</div>

Thank you for answering and for the information provided.
