CatFlac is a simple tool for splitting large audio files. It's currently in its initial stage - functional, but probably needs some improvements.
- CUE Support: Handles basic external and embedded CUE sheets.
- Experimental AI: A curious attempt at track identification (requires
AI_API_KEY).
First of all you need to install ffmpeg on your system.
sudo apt install ffmpegThen install the gem:
gem install CatFlacOr add this to your application's Gemfile:
gem 'CatFlac'Then run:
bundle installAnd if you use rbenv:
rbenv rehashUsing CatFlac is pretty straightforward.
Just point CatFlac to a folder containing your audio files:
catflac cat /path/to/your/music_folderIntegrating CatFlac into your project:
require 'CatFlac'
CatFlac.cat!('/path/to/your/music_folder')If you don't have a CUE sheet, you can try letting CatFlac guess the tracks. To do so, set perplexity api key as an environment variable:
export AI_API_KEY='api_key_here'
catflac cat /path/to/mysterious_albumBug reports and pull requests are welcome on GitHub at https://github.com/lxndr128/CatFlac
This gem is available as open source under the terms of the MIT License.
