Skip to content

chumphrey-cmd/Audio-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Audio Format Converter

A lightweight command-line tool for converting audio files between popular formats:

Supported Input/Output Formats
MP3
WAV
OGG
M4A
FLAC
AAC
WMA

Installation

1. Python Setup

git clone https://github.com/chumphrey-cmd/Audio-Converter.git

Install required Python packages

pip install -r requirements.txt

2. Install ffmpeg Globally as PowerShell Administrator

Windows (Recommended Method)

  1. Install Chocolatey package manager:

    • Open PowerShell as Administrator
    • Follow installation instructions from Chocolatey's website HERE
  2. Install FFmpeg using Chocolatey:

choco install ffmpeg

NOTE: FFmpeg must be installed globally, not in a virtual environment. Using FFmpeg in a virtual environment may result in a "Win2 File not found error".

Alternative FFmpeg Setup

You can also:

  • Add FFmpeg to system PATH, or
  • Place ffmpeg.exe in the same directory as the script

Usage

python audio-converter.py --input INPUT_FILE --output_format FORMAT [--output OUTPUT_PATH]

Arguments:

  • --input: Path to the input audio file
  • --output_format: Desired output format (mp3, wav, ogg, etc.)
  • --output: Optional output path (file or directory)

Examples

Convert MP3 to WAV in the same directory:

python audio-converter.py --input song.mp3 --output_format wav

Convert with specific output path:

python audio-converter.py --input song.mp3 --output_format flac --output /music/converted/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages