Reads and writes the metadata stored inside media files: tags and rating, embedded artwork, markers and chapters, and BEXT and iXML chunks. It is built on TagLib, through spfk-taglib, and Core Audio, and supports MP3, WAV, AIFF, FLAC, Ogg, Opus, MP4, M4A, Matroska and WebM.
- Tags under one key vocabulary across ID3, MP4, Xiph, APE, ASF, RIFF INFO and Matroska
- Ratings of 1 to 5 stars, written in each container's own convention
- Front cover artwork, read and written without changing the file's other pictures
- Markers and chapters
- BEXT and iXML in WAV chunks and FLAC APPLICATION blocks
- A stored XMP packet, kept, replaced or removed as bytes
MetaAudioFileDescriptionparses all of the above into oneCodablevalue and saves only the parts marked as changed
var tags = try TagProperties(url: url)
tags[.title] = "New Title"
try tags.save(to: url)var description = try await MetaAudioFileDescription(parsing: url)
description.tagProperties[.title] = "New Title"
try description.save(dirtyFlags: [.tags])- A save writes only what its dirty flags name. A part that could not be read is never written
back empty, and a save that left something out throws
MetadataError.incompleteSave. - Writing an empty marker set does not clear a file's markers. Use
EmbeddedAudioMarkers.removeAll(from:fileType:). - A save that has to move the audio may write the file to a sibling and swap it in, which gives the file a new file ID.
- The value types are in spfk-metadata-base, which this package re-exports.
Spongefork is the personal software projects of musician and developer Ryan Francesconi. Dedicated to creative sound manipulation, his first application, Spongefork, was released in 1999 for macOS 8. From 2026, Spongefork returns as his software container for more musical experimentation. In addition to software releases, open source components can be found on his GitHub page.
