Writes properties from a given JSON file into the ID3 tags of a given audio file
- Title (string)
- Artist (string)
- Album (string)
- Year (int)
- Track Number (int)
- Genre (string)
- Artwork (string) (path to PNG file)
- taglib
brew install taglib
- taglib-ruby
gem install taglib-ruby
- json
gem install json
$ ruby jsontag.rb jsonfile.json audiofile.mp3
$ ruby jsontag.rb
> Location of JSON file to read from:
-> sample.json
> Location of audio file to save to:
-> sample.mp3