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.

20 lines
526 B
Python

#! /home/lain/virtualenvs/radioactive/bin/python3
# Import the package and create an audio effects chain function.
import pydub
from pydub import AudioSegment
from pysndfx import AudioEffectsChain
import sys
# print (sys.argv[1])
mp3_audio = AudioSegment.from_file(sys.argv[1], format="mp3")
# mp3_audio = AudioSegment.from_file('page_echo.mp3', format="mp3")
mp3_audio.export("temp.wav", format="wav")
infile = 'temp.wav'
# infile = sys.argv[1]
outfile = sys.argv[1]+'.wav'
AudioEffectsChain().reverb()(infile, outfile)