#!/home/lain/virtualenvs/radioactive/bin/python3 import cgi,cgitb cgitb.enable() import pydub from pydub import AudioSegment from pysndfx import AudioEffectsChain import sys # print (sys.argv[1]) mp3_audio = AudioSegment.from_file("../../uploads/5/nainai_echo.mp3", format="mp3") # mp3_audio = AudioSegment.from_file('page_echo.mp3', format="mp3") mp3_audio.export("../../uploads/5/nainai_echo.wav", format="wav") infile = '../../uploads/5/nainai_echo.wav' outfile = '../../uploads/5/nainai_echo_output.wav' AudioEffectsChain().reverb()(infile, outfile) form = cgi.FieldStorage()