When running the code snippet, I get the error seen in the title.
I have re-installed the package pydub
,and pip3 install ffprobe
.
from pydub.playback import play
from pydub import AudioSegment
def change_volume(file_name, alteration):
song = AudioSegment.from_mp3(file_name)
new_song = song + alteration
new_title = ("_%s") % (file_name)
new_song.export(new_title, format='mp3')
change_volume("test_sample.mp3", 3)
The output of the code should be a new mp3 file in the directory with slightly risen volume levels (test.mp3
--> _test.mp3
), instead I get the error:
FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe': 'ffprobe'