import subprocess
defconvert_mp3(input_filepath:str, output_filepath:str):#FFmpeg command to convert the input MP3 file
ffmpeg_cmd = [
'ffmpeg',
'-i', input_filepath,
'-ar', '48000', # Set the sample rate to 48000Hz'-b:a', '320k', # Set the audio bitrate to 320kbps'-vn', # Disable video stream'-codec:a', 'libmp3lame', # Use LAME MP3 codec'-f', 'mp3', # Specify the output file format as MP3
output_filepath
]
subprocess.run(ffmpeg_cmd, check=True)