Nodes/comfy-audio-tagger/Save FLAC with Tags 🎢
ComfyUI Node

Save FLAC with Tags 🎢

The One I'd Actually Archive With 🎢

By lakeconstance78Β·Created 7 days agoΒ·Updated 2 days agoΒ· 0
Save FLAC with Tags 🎢
  • audio
  • cover_image
  • audio
  • file_path
β—„filename_prefixaudio/ComfyUI_FLACβ–Ί
β—„titleMy Titleβ–Ί
β—„artistMy Artistβ–Ί
β—„albumMy Albumβ–Ί
β—„genreMy Genreβ–Ί
β—„year2026β–Ί
β—„publisherMy Publisherβ–Ί
β—„copyrightMy Copyrightβ–Ί
β—„composerMy Composerβ–Ί
β—„album_artistMy Album Artistβ–Ί
β—„bpm120β–Ί
β—„initial_keyC majβ–Ί
β—„isrcMy ISRCβ–Ί
β—„encoderComfyUI Audio Taggerβ–Ί
β—„track_number1β–Ί
β—„licenseCC-BY 4.0 (Attribution - Credit required)β–Ί
β—„commentGenerated with ComfyUIβ–Ί
β—„lyricsβ–Ί

If you generate music locally and keep any of it, Save FLAC with Tags 🎢 is the node from the comfy-audio-tagger pack you should actually build your workflow around. FLAC is lossless - the file is a bit-exact copy of what your model produced, no encoder deciding which frequencies to throw away - and its Vorbis-comment tagging is the standard every modern player reads. MP3 is for shipping to people; FLAC is for keeping the master.

Same wall of fields, different payoffs

The input schema is shared across all five save nodes in this pack: audio in, then the tag fields. Fill the ones that matter:

  • filename_prefix - default audio/ComfyUI_FLAC, subfolders auto-created under output/. This one writes output/audio/ComfyUI_FLAC_00001.flac.
  • comment and lyrics - both multiline, and this is the pair that makes the pack worth it. Drop your full generation prompt, seed, and settings into the comment. Two years from now the file still tells you exactly how it was made.
  • license - the CC dropdown. For music you might actually distribute, embedding "CC0 1.0" or "CC-BY 4.0" in the file itself beats hoping whoever you send it to reads the chat message.
  • cover_image - optional IMAGE input, JPEG-compressed and embedded as a proper FLAC picture block. Most players render it as the album art.

Outputs are audio (the original signal passed through untouched, so you can keep wiring into Preview Audio) and file_path, which feeds this pack's Read Audio Tags πŸ” or Send Audio to Telegram ✈️ nodes.

What happens under the hood

Encode with torchaudio.save(format="flac") - FLAC is natively supported by torchaudio, so unlike MP3 or M4A this one doesn't lean on an FFmpeg backend, and you won't hit the "silently passed through unsaved" failure those nodes have. Then mutagen opens the file and writes Vorbis comments (TITLE, ARTIST, BPM, INITIALKEY, LICENSE, LYRICS, the works). One nice detail in the source: torchaudio's FLAC writer can leave a stray ID3 header behind, so the node explicitly deletes that dirty tag before writing the clean Vorbis set. That's the kind of attention to format hygiene you'd expect from a tagging tool and usually don't get.

Because FLAC and OGG both use Vorbis comments, the tagging logic is nearly identical between them - but the cover-art embedding is different per container, and this node does it the standard way (a binary Picture block in the FLAC file, versus OGG's base64 metadata_block_picture).

The one real complaint

File size. Lossless on a multi-minute generated track is going to eat disk space at roughly 10 MB per minute of stereo music, and there's no way around that - it's the price of lossless. If you're batch-generating hundreds of tracks for a playlist you'll listen to on a phone, you may genuinely prefer the MP3 node. If you're keeping a library or sending a master into a video project, the disk cost is worth it.

Install

Same as every node in the pack - it's one small custom node set with a single dependency:

cd ComfyUI/custom_nodes
git clone https://github.com/lakeconstance78/comfy-audio-tagger
cd comfy-audio-tagger
pip install -r requirements.txt   # Windows portable: ..\..\..\python_embeded\python.exe -m pip install -r requirements.txt

or search "ComfyUI Audio Tagger" in ComfyUI Manager. Restart, and add audio β†’ Save FLAC with Tags to the end of your music workflow. For an archive you intend to keep, this is the node in the pack to reach for - the only reason to pick another format is if the destination demands it.

CategoryAudio Tagger

Inputs (20)

NameTypeDefaultDescription
audioAUDIOβ€”
filename_prefixSTRINGaudio/ComfyUI_FLACβ€”
titleSTRINGMy Titleβ€”
artistSTRINGMy Artistβ€”
albumSTRINGMy Albumβ€”
genreSTRINGMy Genreβ€”
yearSTRING2026β€”
publisherSTRINGMy Publisherβ€”
copyrightSTRINGMy Copyrightβ€”
composerSTRINGMy Composerβ€”
album_artistSTRINGMy Album Artistβ€”
bpmSTRING120β€”
initial_keySTRINGC majβ€”
isrcSTRINGMy ISRCβ€”
encoderSTRINGComfyUI Audio Taggerβ€”
track_numberSTRING1β€”
licenseCOMBOCC-BY 4.0 (Attribution - Credit required)8 options: CC-BY 4.0 (Attribution - Credit required), CC0 1.0 (Public Domain - Free for any use), CC-BY-SA 4.0 (ShareAlike - Credit + adapt under same license), CC-BY-NC 4.0 (NonCommercial - Credit + no commercial use), CC-BY-NC-SA 4.0 (NonCom + ShareAlike - No commercial + adapt under same), CC-BY-ND 4.0 (NoDerivs - Credit + no modifications), +2
commentSTRINGGenerated with ComfyUIβ€”
lyricsSTRINGβ€”
cover_imageoptIMAGEβ€”

Outputs (2)

NameTypeDescription
audioAUDIOβ€”
file_pathSTRINGβ€”