Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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()
```