• Image
  • Image
  • Image
  • Current Version: 1.1: 2022-10-02T21:17:13Z
  • First Published: 2021-11-08T16:54:20Z
  • Size: 3772544
  • Supported Unity Versions: 2020.3.32
tools audio

Simple Audio Library (WAV, MP3, OGG)

No rating !(2 Votes)
$29.93 $29.93

Simple Audio Library is a simple solution for managing audio in Unity at runtime.

Runtime features:
● Loading audio to audio clips (UnityEngine.AudioClip)
● Saving audio clips to WAV and MP3
● Cutting & trimming audio clips
● Changing frequency, speed and forcing to mono
● Reading meta (ID3 tags) from audio files
● Creating audio histograms

Supported formats:
● WAV (loading/saving)
● MP3 (loading/saving)
● OGG (loading only)

Supported platforms:
● Android (full support)
● iOS (full support)
● Windows (full support)
● UWP (doesn't support saving to MP3)
● Mac (doesn't support saving to MP3)

Supported Unity versions:
● Unity 2019 (tested)
● Unity 2020 (tested)
● Unity 2021 (tested)
● Unity 2022 (tested)

API Compatibility Level:
● .NET 4.x (Player Settings/Other Settings)

AudioClipManager methods:
Load - (Overloaded) Synchronously loads an audio clip from the specified path and returns AudioClip instance. On large files code execution may freeze, consider using LoadAsync().
LoadAsync - (Overloaded) Asynchronously loads an audio clip from the specified path and returns AudioClip instance in callback. Should be started as a coroutine with StartCoroutine().
SaveToWav - (Overloaded) Saves AudioClip as Waveform Audio File (WAV) and returns a byte array.
SaveToMp3 - (Overloaded) Saves AudioClip as MP3 and returns a byte array.
Copy - Copies AudioClip and returns a new AudioClip instance.
Cut - Cuts AudioClip by start and end time given (in seconds) and returns a new AudioClip instance.
TrimSilence - Removes silence (empty samples) from the beginning and from the end of AudioClip and returns a new AudioClip instance.
ToMono - Forces AudioClip (with 2 channels) to mono and returns a new AudioClip instance. Halves stereo AudioClip size.
SetSampleRate - Changes AudioClip frequency and returns a new AudioClip instance.
SetSpeed - Changes AudioClip playback speed and returns a new AudioClip instance [NEW].
ReadMeta - Reads ID3 tags from audio files.
CreateHistogramTexture - Creates a histogram for AudioClip and returns a Texture2D instance.
CreateHistogramSprite - Creates a sprite for AudioClip and returns a Sprite instance.

3rd party components used:
Lame under The MIT License (MIT)
TagLib# under GNU Lesser General Public License v2.1 (LGPL-2.1)

Support:
Discord - questions, live chat with developers

The asset icon was made by Wahyu Adam.

It would be super awesome if you rate ★★★★★ my asset and leave your feedback! Your reviews inspire me for creating and improving my assets, thanks!


Add to cart
This site contains affiliate links, which means that we can receive a commission if you click on a link and buy something that we have recommended.
Although clicking on these links will not cost you anything, they will help us finance our development projects while recommending good products!