Taglib
Taglib bindings for Elixir.
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.1"}]
end
Usage
iex> {:ok, ref} = Taglib.new("song.mp3")
{:ok, ""}
iex> Taglib.tag_title(ref)
"Mi Mujer"
iex> Taglib.audio_length(ref)
438