I realize that this is a very, very basic question but I started learning Python yesterday so I can make a program I've had the idea for and I'm unable to find any information that would help me in over two hours of Google searches and forum seeking.
For the program that I'm making, I need some of Pydub's functionality, and I can't for the life of me figure out how to import files into my code.
I have Pydub and Pyaudio installed, and "song.mp3" is in the same folder as my project. I made a small script to figure out Pydub's capabilities while isolated from the rest of the project, which looks like this:
from pydub import AudioSegment
from pydub.playback import play
music = AudioSegment.from_mp3("song.mp3")
play(music)
It gives me the error: FileNotFoundError: [WinError 2] The system cannot find the file specified
I appreciate any help, I know this is a really elementary question but I don't know where else to go with it.
Edit: I tried the same thing with a .wav file, because Pydub natively supports them, and I heard a weird, glitchy scratching sound for a second from my speakers before my Youtube tab in Chrome stopped the video player and said "Audio rendering error, please restart your computer."
I closed the program and refreshed the page and everything is fine again, but seriously- wtf?