You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
588 B
Python

#!/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()