DEV Community

Idris Soyinka
Idris Soyinka

Posted on

My first program!

https://github.com/IdrisSoyinka/novice


WAV to MP3 Converter
Description
WAV to MP3 Converter is a simple, user-friendly desktop application that allows users to convert WAV audio files to MP3 format using a drag-and-drop interface.
Features

Drag-and-drop interface for easy file selection
Batch conversion of multiple WAV files
Automatic saving of converted files to a dedicated folder in Downloads
Simple and intuitive GUI

Requirements

Python 3.x
tkinter
tkinterdnd2
pydub

Installation

Ensure you have Python 3.x installed on your system.
Install the required libraries:
Copypip install tkinterdnd2 pydub

Download the script to your local machine.

Usage

Run the script:
Copypython wav_to_mp3_converter.py

A window will appear with the text "Drag and drop WAV files here".
Drag and drop one or more WAV files onto this window.
The program will convert the files and save them in the "Downloads/Converted" folder.
Once conversion is complete, the window will display a completion message.

Note

The program only converts WAV files. Other file types will be ignored.
Converted files are saved in the "Downloads/Converted" folder with the same name as the original file, but with a .mp3 extension.

Error Handling

If no WAV files are dropped, the program will display a message asking the user to try again.
Any errors during conversion will be printed to the console.

Top comments (0)