finds.dev

BeatUpir/Unity3D-save-audioClip-to-MP3

by using this package you can save an audioclip to mp3 in unity3d

View on GitHub

★ 67CGPL-3.0updated Jun 2022

// the take

A small Unity3D plugin that encodes an AudioClip to an MP3 file using a vendored copy of libmp3lame, wrapped in NAudio-derived C# stream classes. It's for Unity developers who need offline MP3 export (voice recordings, in-game audio capture) without pulling in a full audio library.

Ships a working native libmp3lame integration for both Windows and Android (prebuilt .so included), so you don't have to compile the encoder yourself. The API surface is a single static call (EncodeMP3.convert), which is as low-friction as it gets for a drop-in Unity asset. Including a full example project with a sample wav and scene makes it easy to verify the thing actually works before wiring it into a real project.

No iOS or desktop-standalone-Mac/Linux build of the native lib, so cross-platform games need their own encoder path for those targets. Requires dropping Unity's API Compatibility Level to .NET 2.0 to work around missing APIs, which is a legacy setting that conflicts with most modern Unity packages and can't be done in newer Unity versions at all. Distributed as a .unitypackage with a vendored, unmodified copy of lame's C source rather than a UPM package or git dependency, so there's no clean way to pull updates or patch the encoder without hand-editing vendored code. Last commit is from 2022 with no activity since, and the README gives no indication of thread-safety, memory/performance characteristics for long clips, or how errors are reported back to the caller.

We read the README, the directory tree and a key source file in November 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
67
Forks
24
Language
C
License
GPL-3.0
Last commit
4 Jun 2022

// nearby

If Unity3D-save-audioClip-to-MP3 isn't quite it.

All repos →