Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nathom/audioconvert
A library that converts audio files to ALAC en masse for use with macOS & iOS music app.
https://github.com/nathom/audioconvert
alac converter discogs music
Last synced: 14 days ago
JSON representation
A library that converts audio files to ALAC en masse for use with macOS & iOS music app.
- Host: GitHub
- URL: https://github.com/nathom/audioconvert
- Owner: nathom
- Created: 2020-11-05T20:28:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-22T05:36:20.000Z (over 3 years ago)
- Last Synced: 2024-11-02T00:05:01.030Z (2 months ago)
- Topics: alac, converter, discogs, music
- Language: Python
- Homepage:
- Size: 2.81 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# audioconvert
**A scrappy library that tags and converts audio files to ALAC m4a. Written for those that use the macOS music app.**
### Quick start
1. Clone the repository
```bash
git clone https://github.com/pynathanthomas/audioconvert.git
```2. Install dependencies
```bash
cd audioconvert; pip3 install -r requirements.txt
```3. Open `convert_dir.py` and replace `dir` and `auto_folder` with your path to Automatically Add to Music.localized.
4. Now you can run
```bash
python3 ~/audioconvert/convert_dir.py
```to convert and move all the tracks.
5. Now the program will split cue files, convert everything to ALAC and sort it out in the Music app!
## Using `cueparser.py`
This is the machinery behind processing .cue files. It assumes there is artwork in the parent directory and loads it.
```python
from cueparser import Cue
my_cue = Cue('/path/to/cue/file.cue')# to change attributes, use like a dict
my_cue['artist'] = 'New Artist'
my_cue['tracklist'][0]['name'] = 'The first track'# this will split the large files and tag them
# it converts to ALAC by default
my_cue.split()
```