Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

almightycouch/taglib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taglib bindings for Elixir

Travis Hex.pm Documentation Status GitHub license Github Issues

Cover image

This package contains a set of Elixir bindings for the Taglib library for reading metadata for popular audio formats. The bindings are for the C library, which only supports the limited abstract API of Taglib.

Documentation

See the online documentation for more information.

Installation

First, ensure you have the TagLib libraries installed on your system:

OSX

brew install taglib

Ubuntu

sudo apt-get install libtag1-dev

Next, add :taglib to your list of dependencies in mix.exs:

def deps do
  [{:taglib, "~> 0.2"}]
end

Usage

iex> {:ok, t} = Taglib.new("song.mp3")
{:ok, #Taglib<0.0.7.1219>}
iex> Taglib.title(t)
"Mi Mujer"
iex> Taglib.duration(t)
438