Why Did Audacity Require LAME to Export MP3

For years, early Audacity users had to manually download and install a separate file called libmp3lame just to export their audio projects as MP3 files. This article explains the software patent and licensing issues that forced the open-source audio editor to exclude MP3 encoding out of the box, how the developers used a legal loophole to bypass these restrictions, and how the eventual expiration of these patents resolved the issue for modern users.

The MP3 Patent and Licensing Barrier

The primary reason early Audacity users had to download the LAME encoder separately was due to software patents. The MP3 format, created in the late 1980s, was protected by a complex web of patents held by various institutions, most notably the Fraunhofer Society and Technicolor (Thomson).

Any software developer who wanted to distribute a program capable of encoding MP3 files was legally required to pay licensing fees to the patent holders. Because Audacity is a free, open-source program distributed under the GNU General Public License (GPL), paying these royalties was both financially impossible and legally incompatible with the software’s open-source philosophy.

The Open-Source Loophole

To avoid patent infringement lawsuits while still allowing users to create MP3s, the Audacity developers utilized a legal workaround.

While distributing compiled MP3-encoding software was patented, distributing the source code for an encoder—or downloading an encoder separately as an end-user—occupied a legal gray area. The LAME (LAME Ain’t an MP3 Encoder) project developed an open-source MP3 encoder, but because of the patent issues, Audacity could not legally bundle LAME’s compiled binary files (.dll on Windows or .dylib on macOS) with their software installer.

By forcing users to track down and download the libmp3lame file from third-party websites, Audacity shifted the legal responsibility to the user. Audacity itself remained entirely free of patented MP3 code, serving only as a host that could hook into the external LAME library if the user chose to install it.

How the Issue Was Resolved

This inconvenient extra step remained a staple of the Audacity user experience for nearly two decades. However, software patents eventually expire.

In April 2017, the remaining patents on the MP3 format expired worldwide, officially making the MP3 technology public domain. With the threat of patent infringement eliminated, the Audacity developers were finally legally allowed to bundle the LAME MP3 encoder directly inside the application.

Starting with Audacity version 2.3.2, released in 2019, the LAME encoder was built directly into the software. Today, users can export MP3s immediately after installing Audacity without having to search for external files.