Hello. I am working on a project that uses a microphone to listen to sound and sends the input from analogRead() to the rest of code to perform a series of actions on the information. I am wondering if there is an easy way to change the input from being a microphone to a file that is played on my computer.
For example, originally I was playing a song from my phone right next to the speaker so that the speaker could pick up the noise, but the problem is that if this occurs in an environment that has a lot of background noise there will be tremendous interference in the information that the speaker collects. So I am looking for a way for that song to be played on my computer and sent directly to the arduino with the same output from analogRead() while also playing from the speakers. I need to finish this as soon as possible so thanks in advance for the help!