Skip to content

TagLibIOS is a wrapper for the TagLib Audio Meta-Data Library.

License

Notifications You must be signed in to change notification settings

lemonhead94/TagLibIOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TagLibIOS

Version License Platform

TagLib Audio Meta-Data Library

http://taglib.org/

TagLib is a library for reading and editing the meta-data of several popular audio formats. Currently it supports both ID3v1 and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC, Speex, WavPack, TrueAudio, WAV, AIFF, MP4 and ASF files.

Credits

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Swift Example:

let audio = TLAudio(fileAtPath: audioFilePath.path)!
audio.title = "exampleTitle"
audio.artist = "exampleArtist"
audio.album = "exampleAlbum"
audio.comment = "exampleComment"
audio.genre = "exampleGenre"
audio.year = 2001
audio.track = 1
audio.frontCoverPicture = imageData
audio.artistPicture = imageData
audio.save()

Currently only a Flac and MPEG/MP3 wrapper are included...

Installation

TagLibIOS is available through CocoaPods. In order to compile this correctly one has to add use_frameworks! to the Podfile! To install it, simply add the following lines to your Podfile:

use_frameworks!
target 'MyApp' do
  pod 'TagLibIOS'
end

License

TagLib is distributed under the GNU Lesser General Public License (LGPL) and Mozilla Public License (MPL). Essentially that means that it may be used in proprietary applications, but if changes are made to TagLib they must be contributed back to the project. Please review the licenses if you are considering using TagLib in your project.