Capturing PC Audio With Unity

I’m making an audio visualizer, but it’s obviously not effective for the purpose I want if you have to upload your own audio file every time you want to play something. I want to capture what is playing on someone’s computer while the program is open (like Spotify, a YouTube video, another game, etc.) and translate that audio into the waves that Unity can use. I know I’ve seen programs do it, I just don’t know how. I realize that I might have to venture outside of Unity to achieve this, but if someone can point me to somewhere I can learn about this more, let me know. Thank you.

You can try to create a Virtual Microphone with Virtual Audio Cable

I can’t tell you how to use microphone input to interact with Unity but I’m pretty sure it’s possible.

I should just be able to add a C# script without Unity namespaces and assembly references (I’m pretty sure), if not, there is 100% a way :slight_smile: Thanks!