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.
See the online documentation for more information.
First, ensure you have the TagLib libraries installed on your system:
brew install taglib
sudo apt-get install libtag1-dev
Next, add :taglib
to your list of dependencies in mix.exs
:
def deps do
[{:taglib, "~> 0.2"}]
end
iex> {:ok, t} = Taglib.new("song.mp3")
{:ok, #Taglib<0.0.7.1219>}
iex> Taglib.title(t)
"Mi Mujer"
iex> Taglib.duration(t)
438