Desigined a simple Audio editor in python
Use the package manager pip to install the required libraries.
pip install pydub
import pydub
from pydub import Audiosegment
we used pydub module for audio maipulation and to perform actions like merging and cutting audios
pip install pygame
import pygame
pygame to play sound although playsound can also be used for playing audios
pip install mutagen
from mutagen.mp3 import MP3
Muta gen to get the favourable format for our audios
pip install time
import time
to sync the song with its lenght and to precisely cut the song on the basis of time elapsed
pip install tk
from tkinter import *
import tkinter.ttk as ttk
from tkinter import messagebox
from tkinter import filedialog
Used tkinter to design the GUI of the app and to run various functions.
Sample code(demonstrating how to pause/unpause the audio)
#pause/unpause
global paused
paused = False
def pause(is_paused):
global paused
paused = is_paused
if paused:
pygame.mixer.music.unpause()
paused= False
else:
pygame.mixer.music.pause()
paused=True
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
##Thankyou