ShivanshSetia / Project-Lyrics-Generator

Generating Lyrics with markov chains and then converting it to speech with background music . Making a random bad song that can go with the taste of today's generation LOL .
1 stars 2 forks source link

SOS: Combined Background Music.ipynb #2

Open sajzz opened 3 years ago

sajzz commented 3 years ago

Your code is really helpful to us for our very important project. So, firstly thanks a lot for your help but we are facing an error in the file 'Combined Background Music.ipynb how to resolve the errors in this file this is the error:- FileNotFoundError Traceback (most recent call last)

in () 3 AudioSegment.converter = os.getcwd()+ "\\ffmpeg.exe" 4 AudioSegment.ffprobe = os.getcwd()+ "\\ffprobe.exe" ----> 5 sound1 = AudioSegment.from_mp3(os.getcwd()+"\\Desktop\\MusicGen\\Input\\song\\sound.mp3") 6 7 #sound1 = AudioSegment.converter(r'C:\\Users\\HP\\Desktop\\MusicGen\\Input\\song\\sound.mp3')
ShivanshSetia commented 3 years ago

@sajzz Just change the the file path to the path where sound.mp3 is saved in your pc

sajzz commented 3 years ago

@ShivanshSetia I did but still getting the same error

FileNotFoundError Traceback (most recent call last)

in () ----> 1 sound1 = AudioSegment.from_mp3('C:\\Users\\HP\\Desktop\\MusicGen\\Input\\song\\sound.mp3') 2 sound2 = AudioSegment.from_mp3('C:\\Users\\HP\\Desktop\\MusicGen\\Input\\Music\\barradeen-bedtime-after-a-coffee.mp3')