# Best Tools for compiling audio for AudioSprite

**URL:** <https://phaser.discourse.group/t/best-tools-for-compiling-audio-for-audiosprite/2210>\
**Category:** Phaser 3\
**Created:** [April 22, 2019, 8:04pm UTC](https://phaser.discourse.group/t/best-tools-for-compiling-audio-for-audiosprite/2210 "2019-04-22T20:04:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oduvan](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/oduvan/32/441_2.png) [@oduvan](https://phaser.discourse.group/u/oduvan)\
**Post date:** [April 22, 2019, 8:04pm UTC](https://phaser.discourse.group/t/best-tools-for-compiling-audio-for-audiosprite/2210/1 "2019-04-22T20:04:01Z")

</div>

Hi all,

What is your bast tools (practices) for compiling multiple small audio files into one audio + one json for using in phaser AudioSprite.

Thank a lot for your feedback

---

<div class="post-metadata">

**Author:** ![jackfreak](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@jackfreak](https://phaser.discourse.group/u/jackfreak)\
**Post date:** [April 22, 2019, 9:07pm UTC](https://phaser.discourse.group/t/best-tools-for-compiling-audio-for-audiosprite/2210/2 "2019-04-22T21:07:32Z")

</div>

Hi @oduvan, I’m using gulp-audiosprite (that it’s just a gulp implementation of [https://github.com/tonistiigi/audiosprite/](https://github.com/tonistiigi/audiosprite/)). It works really well, I just add my wav files to a folder and the gulp task exports the audiosprite in the formats I need (ogg, mp3) and the json file.

This is the config object Im using:

```javascript
{
		format: 'jukebox', // jukebox format is compatible with Phaser 3

		output: 'soundfx',
		export: 'ogg,mp3',
		gap: 1, // In seconds
		bitrate: 128,
		vbr: 5,
		samplerate: 44100,
		channels: 2,
	}

```

---

<div class="post-metadata">

**Author:** ![oduvan](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/oduvan/32/441_2.png) [@oduvan](https://phaser.discourse.group/u/oduvan)\
**Post date:** [April 23, 2019, 8:32am UTC](https://phaser.discourse.group/t/best-tools-for-compiling-audio-for-audiosprite/2210/3 "2019-04-23T08:32:00Z")

</div>

Thanks. I’ll check it out
