# How to get the compressed size of an audio file via FMOD Studio Script?

**URL:** https://qa.fmod.com/t/how-to-get-the-compressed-size-of-an-audio-file-via-fmod-studio-script/15206
**Category:** FMOD Studio
**Created:** [November 11, 2019, 4:20am UTC](https://qa.fmod.com/t/how-to-get-the-compressed-size-of-an-audio-file-via-fmod-studio-script/15206 "2019-11-11T04:20:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gemini2015](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gemini2015](https://qa.fmod.com/u/gemini2015)
#### Post date: [November 11, 2019, 4:20am UTC](https://qa.fmod.com/t/how-to-get-the-compressed-size-of-an-audio-file-via-fmod-studio-script/15206/1 "2019-11-11T04:20:39Z")

</div>

Hello,

I want to split a big bank into small banks according to the audio file size.  
I can get the original file size of an audio file, but what I need is the compress size.  
Can you add some APIs to FMOD Studio Script.

eg.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/6cecfd9b6e571460a02a01a431ca5a8780c0b2af.png)

PS.  
I found that there is a folder named ‘fsbcache’, which contains the compressed audio file cache, but I don’t known the connection between the original audio file and the compressed audio file.

---

<div class="post-metadata">

### Author: ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)
#### Post date: [November 12, 2019, 12:24am UTC](https://qa.fmod.com/t/how-to-get-the-compressed-size-of-an-audio-file-via-fmod-studio-script/15206/2 "2019-11-12T00:24:16Z")

</div>

That’s an interesting suggestion! I’ll add it to our feature/improvement tracker.

Incidentally, the compressed size figure is obtained by actually compressing the asset in the specified format and measuring the result. This isn’t a problem when dealing with only one file at a time (and is necessary for auditioning with compression in any case), but means that any script that measures the compressed size of every file in your project will take as long to run as building all of those files into banks.

---

<div class="post-metadata">

### Author: ![gemini2015](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gemini2015](https://qa.fmod.com/u/gemini2015)
#### Post date: [November 14, 2019, 2:17am UTC](https://qa.fmod.com/t/how-to-get-the-compressed-size-of-an-audio-file-via-fmod-studio-script/15206/3 "2019-11-14T02:17:20Z")

</div>

Thank you.
