Skip to content

George-Freedland/wavtomp3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

WAV to MP3 Converter

A simple Python script that converts WAV audio files to MP3 format.

Prerequisites

  • Python 3.x
  • pydub library
  • ffmpeg (required by pydub)

Installation

  1. Install Python dependencies: bash pip install pydub

  2. Install ffmpeg:

    • Windows: Download from ffmpeg website
    • Mac: brew install ffmpeg
    • Linux: sudo apt-get install ffmpeg

Usage

Run the script from the command line, providing the path to your WAV file: bash python main.py path/to/your/file.wav

The script will create an MP3 file in the same directory as the input WAV file.

Features

  • Converts WAV files to MP3 format
  • Maintains the original filename with new extension
  • Provides detailed error messages and debugging information
  • Input path normalization for cross-platform compatibility

Error Handling

The script includes error handling for common issues:

  • Missing input file
  • Incorrect file format
  • Invalid file paths

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages