Extensions/ComfyUI-SaveAudioMP3
ComfyUI Extension

ComfyUI-SaveAudioMP3

quick Comfy Node to convert input waveform audio to MP3

By SanDiegoDude·Created about a year ago·Updated about a year ago· 5
SanDiegoDude/ComfyUI-SaveAudioMP3
Nodes
On cloudLocal install
Stars5
Updatedabout a year ago
Readme

Save Audio MP3 for ComfyUI

A custom node for ComfyUI to save audio as MP3 files.

image

What It Does

  • Saves audio from an upstream node into an MP3 file.
  • Lets you choose the MP3 bitrate (defaults to 320k).
  • You can set a filename_prefix (e.g., audio_outputs/my_project/) to organize your files.
  • An optional song_name input will be added to your filename (spaces are turned into underscores).

Installation

1. Using ComfyUI Manager (Recommended):

  • In ComfyUI, open the Manager.
  • Click "Install Custom Nodes".
  • Search for this node (e.g., "SaveAudioMP3" or by its repository name).
  • Click "Install" and restart ComfyUI.

2. Manual Installation (Git Clone):

  • Go to your ComfyUI/custom_nodes/ directory in a terminal.
  • Run:
    git clone https://github.com/your_username/ComfyUI-SaveAudioMP3.git 
    
    (Make sure to use your actual repository URL here.)
  • Restart ComfyUI.

Dependencies

You'll need to install these manually for the node to work:

  • pydub (Python library): Open your terminal (and activate your ComfyUI Python environment if you use one) and run:

    pip install pydub
    
  • ffmpeg (System utility): pydub needs ffmpeg to do its work.

    • Windows: Download from ffmpeg.org. Extract it, and add the bin folder inside to your system's PATH.
    • macOS: brew install ffmpeg
    • Linux: sudo apt update && sudo apt install ffmpeg (or your distro's equivalent). Make sure you can run ffmpeg -version in your terminal.