How can I make Blender hear what I hear?

Hello!
I want to make a cube move according to the sounds of the room. I’ve watched a tutorial that show me how to create an audio visualizer, it’s exactly what I want but the sound have to be baked and I need it to be in real time. Someone have any clue on how to do this?

Here is the link for the audio visualizer tutorial:

Happy new year :wink: